/freebsd-9.3-release/sbin/ifconfig/ |
H A D | af_nd6.c | 98 int ifindex; local 106 /* ifindex = 0 means to remove default if */ 107 ifindex = 0; 110 } else if ((ifindex = if_nametoindex(ndifreq.ifname)) == 0) { 115 ndifreq.ifindex = ifindex; 125 unsigned int ifindex; local 131 ifindex = if_nametoindex(ndifreq.ifname); 137 return (ndifreq.ifindex == ifindex); [all...] |
/freebsd-9.3-release/lib/libc/net/ |
H A D | if_indextoname.c | 48 * char *if_indextoname(unsigned int ifindex, char *ifname); 62 if_indextoname(unsigned int ifindex, char *ifname) argument 73 ifindex == ((struct sockaddr_dl*)ifa->ifa_addr)->sdl_index)
|
H A D | sourcefilter.c | 88 int ifindex; local 94 ifindex = 0; 99 * supplied IPv4 address. We should really use the ifindex 123 ifindex = psu->sdl.sdl_index; 127 assert(ifindex != 0); 131 return (ifindex); 151 uint32_t ifindex; local 163 ifindex = __inaddr_to_index(interface.s_addr); 164 if (ifindex == 0) { 190 err = setsourcefilter(s, ifindex, (struc 220 uint32_t ifindex, onumsrc; local [all...] |
H A D | getnameinfo.c | 342 unsigned int ifindex; local 346 ifindex = (unsigned int)sa6->sin6_scope_id; 362 char *p = if_indextoname(ifindex, buf);
|
/freebsd-9.3-release/usr.sbin/rtsold/ |
H A D | probe.c | 108 int ifindex = ifinfo->sdl->sdl_index; local 123 if (ifindex && dr.defrouter[i].if_index == ifindex) { 149 u_int32_t ifindex = ifinfo->sdl->sdl_index; local 169 pi->ipi6_ifindex = ifindex; 180 if_indextoname(ifindex, ifnamebuf)); 184 if_indextoname(ifindex, ifnamebuf), strerror(errno));
|
/freebsd-9.3-release/usr.sbin/mtest/ |
H A D | mtest.c | 155 __ifindex_to_primary_ip(const uint32_t ifindex, struct in_addr *pina) argument 163 assert(ifindex != 0); 166 if (if_indextoname(ifindex, ifname) == NULL) 282 * Return the ifindex of ifname, or 0 if any parse element failed. 290 uint32_t ifindex; local 299 ifindex = if_nametoindex(str2); 300 if (ifindex == 0) 331 ifindex = 0; 335 ifindex = 0; 342 return (ifindex); 387 uint32_t fmode, ifindex; local [all...] |
/freebsd-9.3-release/contrib/bsnmp/snmp_mibII/ |
H A D | mibII_rcvaddr.c | 40 mib_find_rcvaddr(u_int ifindex, const u_char *addr, size_t addrlen) argument 45 if (rcv->ifindex == ifindex && 66 rcv->ifindex = ifp->index;
|
H A D | mibII_ipaddr.c | 53 u_int ifindex; member in struct:update 92 if ((ifa = mib_create_ifa(upd->ifindex, upd->addr, upd->mask, bcast)) 101 * Modify the netmask or broadcast address. The ifindex cannot be 109 if ((ifp = mib_find_if(ifa->ifindex)) == NULL) 111 if ((upd->set & UPD_IFINDEX) && upd->ifindex != ifa->ifindex) 168 /* non existing entry - must have ifindex */ 174 if ((upd->set & UPD_IFINDEX) && upd->ifindex == 0) { 272 if (ifa->ifindex != (u_int)value->v.integer && 277 upd->ifindex [all...] |
H A D | snmp_mibII.h | 47 * Interfaces are indexed by ifindex. This is not the same as the index 49 * RFC requires, that an ifindex is not to be re-used for ANOTHER dynamically 50 * interfaces once the interface was deleted. The system's ifindex is in 56 u_int index; /* the logical ifindex */ 96 u_int ifindex; member in struct:mibifa 107 u_int ifindex; member in struct:mibrcvaddr
|
H A D | mibII.c | 293 struct snmp_value ifindex; local 295 ifindex.var = oid_ifIndex; 296 ifindex.var.subs[ifindex.var.len++] = ifp->index; 297 ifindex.syntax = SNMP_SYNTAX_INTEGER; 298 ifindex.v.integer = ifp->index; 300 snmp_send_trap(up ? &oid_linkUp : &oid_linkDown, &ifindex, 528 if (ifp->index == ifa->ifindex) 540 if (ifa->ifindex == ifa0->ifindex) 549 alloc_ifa(u_int ifindex, struct in_addr addr) argument 1564 mib_create_ifa(u_int ifindex, struct in_addr addr, struct in_addr mask, struct in_addr bcast) argument [all...] |
H A D | mibII.h | 119 u_int ifindex; member in struct:mibindexmap 142 struct asn_oid index; /* contains both the ifindex and addr */ 241 struct mibifa * mib_create_ifa(u_int ifindex, struct in_addr addr, struct in_addr mask, struct in_addr bcast);
|
H A D | mibII_route.c | 46 uint32_t ifindex; member in struct:sroute 187 r->ifindex = (ifp == NULL) ? 0 : ifp->index; 207 r1->ifindex = r->ifindex; 441 value->v.integer = r->ifindex;
|
H A D | mibII_interfaces.c | 42 u_int ifindex; member in struct:ifchange 74 if ((ifp = mib_find_if(ifc->ifindex)) == NULL) 232 ifc->ifindex = ifp->index; 407 ifc->ifindex = ifp->index;
|
/freebsd-9.3-release/usr.sbin/rtadvd/ |
H A D | if.c | 162 get_next_msg(char *buf, char *lim, int ifindex, size_t *lenp, int filter) argument 208 if (ifindex && SDL(gw)->sdl_index != ifindex) 235 if (ifindex && ifam->ifam_index != ifindex) 340 int ifindex; local 343 ifindex = if_nametoindex(ifname); 345 if (ifindex != 0) { 346 if (ifindex == ifi->ifi_ifindex) 408 update_ifinfo(struct ifilist_head_t *ifi_head, int ifindex) argument 639 sock_mc_join(struct sockinfo *s, int ifindex) argument 676 sock_mc_leave(struct sockinfo *s, int ifindex) argument [all...] |
H A D | rrenum.c | 142 struct in6_rrenumreq *irr, int ifindex) 212 ifi = if_indextoifinfo(ifindex); 255 int ifindex = 0; local 277 while (if_indextoname(++ifindex, irr.irr_name)) { 278 ifi = if_indextoifinfo(ifindex); 280 syslog(LOG_ERR, "<%s> ifindex not found.", 292 do_use_prefix(len, rpm, &irr, ifindex); 141 do_use_prefix(int len, struct rr_pco_match *rpm, struct in6_rrenumreq *irr, int ifindex) argument
|
/freebsd-9.3-release/usr.sbin/rpcbind/ |
H A D | util.c | 89 u_int16_t ifindex; local 92 ifindex = ntohs(*(u_int16_t *)&sin6->sin6_addr.s6_addr[2]); 93 if (sin6->sin6_scope_id == 0 && ifindex != 0) { 94 sin6->sin6_scope_id = ifindex; 291 unsigned int ifindex; local 346 ifindex = if_nametoindex(ifap->ifa_name); 347 if (ifindex == mreq6.ipv6mr_interface) 352 mreq6.ipv6mr_interface = ifindex;
|
/freebsd-9.3-release/contrib/ntp/lib/isc/include/isc/ |
H A D | interfaceiter.h | 59 unsigned int ifindex; /*%< Interface index for IP(V6)_MULTICAST_IF. */ member in struct:isc_interface
|
/freebsd-9.3-release/contrib/ntp/lib/isc/unix/ |
H A D | interfaceiter.c | 193 unsigned int ifindex; local 208 address, &ifindex, &prefix, &scope, &flags, name); 241 iter->current.ifindex = ifindex; 244 (isc_uint32_t)ifindex);
|
/freebsd-9.3-release/usr.sbin/mld6query/ |
H A D | mld6.c | 82 u_short ifindex; variable 124 ifindex = (u_short)if_nametoindex(argv[0]); 125 if (ifindex == 0) 138 mreq.ipv6mr_interface = ifindex; 151 make_msg(ifindex, &maddr, type); 235 /* remove embedded ifindex */ 340 mreq.ipv6mr_interface = ifindex;
|
/freebsd-9.3-release/contrib/libpcap/ |
H A D | pcap-bt-linux.c | 211 handle->md.ifindex = dev_id; 256 addr.hci_dev = handle->md.ifindex; 262 "Can't attach to device %d: %s", handle->md.ifindex, 380 dev_info.dev_id = handle->md.ifindex;
|
H A D | pcap-can-linux.c | 175 handle->md.ifindex = ifr.ifr_ifindex; 189 addr.can_ifindex = handle->md.ifindex; 193 handle->md.ifindex, errno, strerror(errno));
|
H A D | pcap-usb-linux.c | 347 if (sscanf(handle->opt.source, USB_IFACE"%d", &handle->md.ifindex) != 1) 355 snprintf(full_path, USB_LINE_LEN, LINUX_USB_MON_DEV"%d", handle->md.ifindex); 373 probe_devices(handle->md.ifindex); 386 probe_devices(handle->md.ifindex); 390 snprintf(full_path, USB_LINE_LEN, USB_TEXT_DIR"/%dt", handle->md.ifindex); 400 snprintf(full_path, USB_LINE_LEN, USB_TEXT_DIR_OLD"/%dt", handle->md.ifindex); 503 uhdr->bus_id = handle->md.ifindex; 666 snprintf(string, USB_LINE_LEN, USB_TEXT_DIR"/%ds", handle->md.ifindex); 676 snprintf(string, USB_LINE_LEN, USB_TEXT_DIR_OLD"/%ds", handle->md.ifindex);
|
/freebsd-9.3-release/contrib/bind9/lib/isc/unix/ |
H A D | interfaceiter.c | 189 int ifindex, prefix, flag3, flag4; local 203 address, &ifindex, &prefix, &flag3, &flag4, name); 229 (isc_uint32_t)ifindex);
|
/freebsd-9.3-release/usr.sbin/ifmcstat/ |
H A D | ifmcstat.c | 111 uint32_t ifindex = 0; variable 206 if ((ifindex = if_nametoindex(optarg)) == 0) { 354 if (ifindex && ifindex != ifnet.if_index) 803 inm_print_sources_sysctl(uint32_t ifindex, struct in_addr gina) argument 826 mib[5] = ifindex; 896 * a.b.c.d.e.ifindex.g[0].g[1].g[2].g[3] 901 in6m_print_sources_sysctl(uint32_t ifindex, struct in6_addr *pgroup) argument 927 mib[5] = ifindex; 1040 if (ifindex ! [all...] |
/freebsd-9.3-release/sys/netinet6/ |
H A D | in6_mcast.c | 2105 uint32_t ifindex; local 2113 ifindex = 0; 2141 ifindex = mreq.ipv6mr_interface; 2176 ifindex = gsr.gsr_interface; 2196 if (ifindex != 0) { 2197 if (ifindex < 0 || V_if_index < ifindex) 2199 ifp = ifnet_byindex(ifindex); 2208 * Some badly behaved applications don't pass an ifindex 2217 ifindex 2343 u_int ifindex; local 2671 uint32_t fmode, ifindex; local [all...] |