Lines Matching refs:ifindex
293 struct snmp_value ifindex; in link_trap() local
295 ifindex.var = oid_ifIndex; in link_trap()
296 ifindex.var.subs[ifindex.var.len++] = ifp->index; in link_trap()
297 ifindex.syntax = SNMP_SYNTAX_INTEGER; in link_trap()
298 ifindex.v.integer = ifp->index; in link_trap()
300 snmp_send_trap(up ? &oid_linkUp : &oid_linkDown, &ifindex, in link_trap()
595 if (ifp->index == ifa->ifindex) in mib_first_ififa()
607 if (ifa->ifindex == ifa0->ifindex) in mib_next_ififa()
616 alloc_ifa(u_int ifindex, struct in_addr addr) in alloc_ifa() argument
626 ifa->ifindex = ifindex; in alloc_ifa()
784 if (ifa->ifindex == ifp->index) in mibif_free()
793 if (rcv->ifindex == ifp->index) in mibif_free()
844 ifp->index = map->ifindex; in mibif_create()
862 map->ifindex = next_if_index++; in mibif_create()
871 ifp->index = map->ifindex; in mibif_create()
1518 if ((ifp = mib_find_if(ifa->ifindex)) == NULL) in mib_undestroy_ifa()
1537 if ((ifp = mib_find_if(ifa->ifindex)) == NULL) { in mib_destroy_ifa()
1561 if ((ifp = mib_find_if(ifa->ifindex)) == NULL) { in mib_unmodify_ifa()
1582 if ((ifp = mib_find_if(ifa->ifindex)) == NULL) { in mib_modify_ifa()
1612 if ((ifp = mib_find_if(ifa->ifindex)) == NULL) { in mib_uncreate_ifa()
1630 mib_create_ifa(u_int ifindex, struct in_addr addr, struct in_addr mask, in mib_create_ifa() argument
1636 if ((ifp = mib_find_if(ifindex)) == NULL) in mib_create_ifa()
1638 if ((ifa = alloc_ifa(ifindex, addr)) == NULL) in mib_create_ifa()