Lines Matching refs:sub

83     uint32_t sub, uint32_t iidx __unused, enum snmp_op op)  in op_snmp_target()  argument
87 if (val->var.subs[sub - 1] == LEAF_snmpTargetSpinLock) { in op_snmp_target()
113 switch (val->var.subs[sub - 1]) { in op_snmp_target()
130 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_snmp_target_addrs() argument
137 if ((addrs = target_get_address(&val->var, sub)) == NULL) in op_snmp_target_addrs()
142 if ((addrs = target_get_next_address(&val->var, sub)) == NULL) in op_snmp_target_addrs()
144 target_append_index(&val->var, sub, addrs->name); in op_snmp_target_addrs()
148 if ((addrs = target_get_address(&val->var, sub)) == NULL && in op_snmp_target_addrs()
149 (val->var.subs[sub - 1] != LEAF_snmpTargetAddrRowStatus || in op_snmp_target_addrs()
162 switch (val->var.subs[sub - 1]) { in op_snmp_target_addrs()
233 target_decode_index(&val->var, sub, aname) < 0) in op_snmp_target_addrs()
247 switch (val->var.subs[sub - 1]) { in op_snmp_target_addrs()
254 if ((addrs = target_get_address(&val->var, sub)) == NULL) in op_snmp_target_addrs()
267 if ((addrs = target_get_address(&val->var, sub)) == NULL) in op_snmp_target_addrs()
270 switch (val->var.subs[sub - 1]) { in op_snmp_target_addrs()
310 switch (val->var.subs[sub - 1]) { in op_snmp_target_addrs()
340 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_snmp_target_params() argument
347 if ((param = target_get_param(&val->var, sub)) == NULL) in op_snmp_target_params()
352 if ((param = target_get_next_param(&val->var, sub)) == NULL) in op_snmp_target_params()
354 target_append_index(&val->var, sub, param->name); in op_snmp_target_params()
358 if ((param = target_get_param(&val->var, sub)) == NULL && in op_snmp_target_params()
359 (val->var.subs[sub - 1] != LEAF_snmpTargetParamsRowStatus || in op_snmp_target_params()
372 switch (val->var.subs[sub - 1]) { in op_snmp_target_params()
432 target_decode_index(&val->var, sub, pname) < 0) in op_snmp_target_params()
446 switch (val->var.subs[sub - 1]) { in op_snmp_target_params()
451 if ((param = target_get_param(&val->var, sub)) == NULL) in op_snmp_target_params()
462 if ((param = target_get_param(&val->var, sub)) == NULL && in op_snmp_target_params()
463 (val->var.subs[sub - 1] != LEAF_snmpTargetParamsRowStatus || in op_snmp_target_params()
466 switch (val->var.subs[sub - 1]) { in op_snmp_target_params()
495 switch (val->var.subs[sub - 1]) { in op_snmp_target_params()
522 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_snmp_notify() argument
529 if ((notify = target_get_notify(&val->var, sub)) == NULL) in op_snmp_notify()
534 if ((notify = target_get_next_notify(&val->var, sub)) == NULL) in op_snmp_notify()
536 target_append_index(&val->var, sub, notify->name); in op_snmp_notify()
540 if ((notify = target_get_notify(&val->var, sub)) == NULL && in op_snmp_notify()
541 (val->var.subs[sub - 1] != LEAF_snmpNotifyRowStatus || in op_snmp_notify()
551 switch (val->var.subs[sub - 1]) { in op_snmp_notify()
580 target_decode_index(&val->var, sub, nname) < 0) in op_snmp_notify()
594 switch (val->var.subs[sub - 1]) { in op_snmp_notify()
599 notify = target_get_notify(&val->var, sub); in op_snmp_notify()
613 if ((notify = target_get_notify(&val->var, sub)) == NULL) in op_snmp_notify()
616 switch (val->var.subs[sub - 1]) { in op_snmp_notify()
636 switch (val->var.subs[sub - 1]) { in op_snmp_notify()
656 target_append_index(struct asn_oid *oid, uint sub, const char *name) in target_append_index() argument
660 oid->len = sub + strlen(name); in target_append_index()
662 oid->subs[sub + i] = name[i]; in target_append_index()
666 target_decode_index(const struct asn_oid *oid, uint sub, char *name) in target_decode_index() argument
670 if (oid->len - sub != oid->subs[sub] + 1 || oid->subs[sub] >= in target_decode_index()
674 for (i = 0; i < oid->subs[sub]; i++) in target_decode_index()
675 name[i] = oid->subs[sub + i + 1]; in target_decode_index()
682 target_get_address(const struct asn_oid *oid, uint sub) in target_get_address() argument
687 if (target_decode_index(oid, sub, aname) < 0) in target_get_address()
699 target_get_next_address(const struct asn_oid * oid, uint sub) in target_get_next_address() argument
704 if (oid->len - sub == 0) in target_get_next_address()
707 if (target_decode_index(oid, sub, aname) < 0) in target_get_next_address()
719 target_get_param(const struct asn_oid *oid, uint sub) in target_get_param() argument
724 if (target_decode_index(oid, sub, pname) < 0) in target_get_param()
736 target_get_next_param(const struct asn_oid *oid, uint sub) in target_get_next_param() argument
741 if (oid->len - sub == 0) in target_get_next_param()
744 if (target_decode_index(oid, sub, pname) < 0) in target_get_next_param()
756 target_get_notify(const struct asn_oid *oid, uint sub) in target_get_notify() argument
761 if (target_decode_index(oid, sub, nname) < 0) in target_get_notify()
773 target_get_next_notify(const struct asn_oid *oid, uint sub) in target_get_next_notify() argument
778 if (oid->len - sub == 0) in target_get_next_notify()
781 if (target_decode_index(oid, sub, nname) < 0) in target_get_next_notify()