Lines Matching refs:sub
69 sroute_index_append(struct asn_oid *oid, u_int sub, const struct sroute *s) in sroute_index_append() argument
73 oid->len = sub + 13; in sroute_index_append()
75 oid->subs[sub + i] = s->index[i]; in sroute_index_append()
285 sroute_get(const struct asn_oid *oid, u_int sub) in sroute_get() argument
290 if (oid->len - sub != 13) in sroute_get()
293 key.index[i] = oid->subs[sub + i]; in sroute_get()
302 sroute_getnext(struct asn_oid *oid, u_int sub) in sroute_getnext() argument
314 if (oid->len == sub) in sroute_getnext()
321 if (oid->len < sub + 13) { in sroute_getnext()
322 for (i = sub; i < oid->len; i++) in sroute_getnext()
333 for (i = oid->len; i < sub + 13; i++) in sroute_getnext()
336 for (i = sub + 13 - 1; i >= sub; i--) { in sroute_getnext()
343 oid->len = sub + 13; in sroute_getnext()
347 for (i = sub; i < sub + 13; i++) in sroute_getnext()
348 key.index[i - sub] = oid->subs[i]; in sroute_getnext()
379 u_int sub, u_int iidx __unused, enum snmp_op op) in op_route_table() argument
389 if ((r = sroute_getnext(&value->var, sub)) == NULL) in op_route_table()
391 sroute_index_append(&value->var, sub, r); in op_route_table()
395 if ((r = sroute_get(&value->var, sub)) == NULL) in op_route_table()
400 if ((r = sroute_get(&value->var, sub)) == NULL) in op_route_table()
412 switch (value->var.subs[sub - 1]) { in op_route_table()
483 u_int sub, u_int iidx __unused, enum snmp_op op) in op_route() argument
504 switch (value->var.subs[sub - 1]) { in op_route()