• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/bsnmp/lib/

Lines Matching refs:tp

117 	struct snmp_node *tp;
128 for (tp = tree; tp < tree + tree_size; tp++) {
129 if (asn_is_suboid(&tp->oid, &value->var))
131 if (asn_compare_oid(&tp->oid, &value->var) >= 0)
142 if (tp->type == SNMP_NODE_LEAF &&
143 (value->var.len != tp->oid.len + 1 ||
144 value->var.subs[tp->oid.len] != 0)) {
153 return (tp);
159 struct snmp_node *tp;
161 for (tp = tree; tp < tree + tree_size; tp++) {
162 if (asn_is_suboid(&value->var, &tp->oid))
163 return (tp);
207 struct snmp_node *tp;
223 if ((tp = find_node(&pdu->bindings[i], &except)) == NULL) {
238 resp->bindings[i].syntax = tp->syntax;
239 ret = (*tp->op)(&context.ctx, &resp->bindings[i],
240 tp->oid.len, tp->index, SNMP_OP_GET);
293 struct snmp_node *tp;
300 for (tp = tree; tp < tree + tree_size; tp++) {
301 if (asn_is_suboid(&tp->oid, &value->var)) {
303 if (tp->type == SNMP_NODE_LEAF) {
304 if (tp->oid.len == value->var.len) {
308 asn_oid2str_r(&tp->oid, oidbuf));
309 return (tp);
315 asn_oid2str_r(&tp->oid, oidbuf));
316 return (tp);
318 } else if (asn_is_suboid(&value->var, &tp->oid) ||
319 asn_compare_oid(&tp->oid, &value->var) >= 0) {
322 asn_oid2str_r(&tp->oid, oidbuf));
324 return (tp);
338 const struct snmp_node *tp;
341 if ((tp = next_node(inb, &next)) == NULL)
346 if (tp->type == SNMP_NODE_LEAF || next)
347 outb->var = tp->oid;
352 outb->syntax = tp->syntax;
353 if (tp->type == SNMP_NODE_LEAF) {
356 ret = (*tp->op)(&context->ctx, outb, tp->oid.len,
357 tp->index, SNMP_OP_GET);
360 ret = (*tp->op)(&context->ctx, outb, tp->oid.len,
361 tp->index, SNMP_OP_GETNEXT);
372 if (++tp == tree + tree_size)
377 asn_oid2str(&tp->oid));
379 outb->var = tp->oid;