/freebsd-9.3-release/usr.sbin/ndp/ |
H A D | ndp.c | 796 getnbrinfo(addr, ifindex, warning) 798 int ifindex; 808 if_indextoname(ifindex, nbi.ifname); 1539 unsigned int ifindex; local 1542 ifindex = 0; 1544 if ((ifindex = if_nametoindex(ifname)) == 0) 1552 ndifreq.ifindex = ifindex; 1575 if (ndifreq.ifindex == 0) 1578 if ((if_indextoname(ndifreq.ifindex, ifnam [all...] |
/freebsd-9.3-release/contrib/tcpdump/missing/ |
H A D | getnameinfo.c | 232 unsigned int ifindex = local 236 if ((if_indextoname(ifindex, ep + 1)) == NULL)
|
/freebsd-9.3-release/sbin/ifconfig/ |
H A D | ifconfig.c | 147 int ifindex; local 220 ifindex = 0; 242 ifindex = if_nametoindex(ifname); 243 if (ifindex == 0) { 285 ifindex = 0; 337 ifindex++; 338 if (ifindex > 1) 343 ifindex++;
|
/freebsd-9.3-release/usr.sbin/wpa/hostapd/ |
H A D | driver_freebsd.c | 44 unsigned int ifindex; /* interface index */ member in struct:bsd_driver_data 535 if (ifan->ifan_index != drv->ifindex) { 538 ifan->ifan_index, drv->ifindex); 706 drv->ifindex = if_nametoindex(drv->ifname); 707 if (drv->ifindex == 0) {
|
/freebsd-9.3-release/contrib/libpcap/ |
H A D | pcap-linux.c | 336 static int iface_bind(int fd, int ifindex, char *ebuf); 574 int ifindex; local 578 ifindex = iface_get_id(sock_fd, device, handle->errbuf); 579 if (ifindex == -1) 591 NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, ifindex); 670 int ifindex; local 674 ifindex = iface_get_id(sock_fd, mondevice, handle->errbuf); 675 if (ifindex == -1) 687 NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, ifindex); 1476 if (handle->md.ifindex ! 4075 iface_bind(int fd, int ifindex, char *ebuf) argument [all...] |
H A D | pcap-int.h | 140 int ifindex; /* interface index of device we're bound to */ member in struct:pcap_md
|
/freebsd-9.3-release/usr.sbin/rtadvd/ |
H A D | rtadvd.c | 469 int n, type, ifindex = 0, plen; local 524 ifindex = get_rtm_ifindex(next); 528 ifindex = (int)((struct ifa_msghdr *)next)->ifam_index; 531 ifindex = (int)((struct if_msghdr *)next)->ifm_index; 579 if_indextoname(ifindex, ifname)); 582 ifi = if_indextoifinfo(ifindex); 586 __func__, ifindex); 600 update_ifinfo(&ifilist, ifindex); 638 make_prefix(rai, ifindex, addr, plen); 678 if_indextoname(ifindex, ifnam 729 int ifindex = 0; local [all...] |
/freebsd-9.3-release/contrib/wpa/src/ap/ |
H A D | iapp.c | 395 int ifindex; local 424 ifindex = ifr.ifr_ifindex; 484 addr.sll_ifindex = ifindex;
|
H A D | preauth_auth.c | 43 int ifindex; member in struct:rsn_preauth_interface
|
/freebsd-9.3-release/sys/dev/cxgbe/tom/ |
H A D | t4_tom_l2t.c | 68 l2_hash(struct l2t_data *d, const struct sockaddr *sa, int ifindex) argument 92 hash = fnv_32_buf(&ifindex, sizeof(ifindex), hash);
|
/freebsd-9.3-release/usr.sbin/wpa/wpa_supplicant/ |
H A D | driver_freebsd.c | 41 unsigned int ifindex; /* interface index */ member in struct:wpa_driver_bsd_data 581 if (ifan->ifan_index != drv->ifindex) 599 if (ifan->ifan_index != drv->ifindex) 632 if (ifm->ifm_index != drv->ifindex) 808 drv->ifindex = if_nametoindex(ifname); 809 if (drv->ifindex == 0) {
|
/freebsd-9.3-release/tools/regression/netinet/ipmulticast/ |
H A D | ipmulticast.c | 100 static uint32_t ifindex = 0; variable 494 ifindex = if_nametoindex(ifname); 495 if (ifindex == 0)
|
/freebsd-9.3-release/contrib/ngatm/snmp_atm/ |
H A D | snmp_atm.c | 87 atm_find_if(u_int ifindex) argument 92 if (aif->index == ifindex)
|
/freebsd-9.3-release/contrib/wpa/src/drivers/ |
H A D | driver_wired.c | 87 static int wired_multicast_membership(int sock, int ifindex, argument 97 mreq.mr_ifindex = ifindex; 233 wpa_printf(MSG_DEBUG, "Opening raw packet socket for ifindex %d",
|
/freebsd-9.3-release/sys/dev/cxgb/ulp/tom/ |
H A D | cxgb_l2t.c | 71 arp_hash(u32 key, int ifindex, const struct l2t_data *d) argument 73 return jhash_2words(key, ifindex, 0) & (d->nentries - 1);
|
/freebsd-9.3-release/contrib/pf/pfctl/ |
H A D | pfctl_parser.h | 120 u_int32_t ifindex; /* link-local IPv6 addrs */ member in struct:node_host
|
H A D | pfctl_parser.c | 1190 n->ifindex = 0; 1221 n->ifindex = ((struct sockaddr_in6 *) 1342 if ((flags & PFI_AFLAG_NETWORK) && p->ifindex > 0) 1382 n->ifindex = p->ifindex; 1561 h->ifindex = 1627 n->ifindex =
|
/freebsd-9.3-release/contrib/ntp/lib/isc/unix/ |
H A D | ifiter_getifaddrs.c | 235 iter->current.ifindex = if_nametoindex(iter->current.name);
|
H A D | ifiter_ioctl.c | 596 iter->current.ifindex = if_nametoindex(iter->current.name); 675 iter->current.ifindex = if_nametoindex(iter->current.name); 857 iter->current.ifindex = if_nametoindex(iter->current.name); 882 iter->current.ifindex = if_nametoindex(iter->current.name);
|
H A D | ifiter_sysctl.c | 173 iter->current.ifindex = sdl->sdl_index;
|
/freebsd-9.3-release/sys/netinet6/ |
H A D | nd6_rtr.c | 2179 nd6_setdefaultiface(int ifindex) argument 2183 if (ifindex < 0 || V_if_index < ifindex) 2185 if (ifindex != 0 && !ifnet_byindex(ifindex)) 2188 if (V_nd6_defifindex != ifindex) { 2189 V_nd6_defifindex = ifindex;
|
/freebsd-9.3-release/contrib/tcpdump/ |
H A D | print-sflow.c | 243 u_int8_t ifindex[4]; member in struct:sflow_generic_counter_t 316 printf("\n\t ifindex %u, iftype %u, ifspeed %" PRIu64 ", ifdirection %u (%s)", 317 EXTRACT_32BITS(sflow_gen_counter->ifindex),
|
/freebsd-9.3-release/usr.sbin/rtsold/ |
H A D | rtsold.c | 557 find_ifinfo(int ifindex) argument 562 if (ifi->sdl->sdl_index == ifindex)
|
H A D | rtsol.c | 241 int l, ifindex = 0, *hlimp = NULL; local 279 ifindex = pi->ipi6_ifindex; 287 if (ifindex == 0) {
|
/freebsd-9.3-release/usr.sbin/route6d/ |
H A D | route6d.c | 179 int rrt_index; /* ifindex from which this route got */ 427 fprintf(stderr, "No ifindex found at %s " 1684 ifremove(int ifindex) argument 1690 if (ifcp->ifc_index == ifindex) 2439 getifmtu(int ifindex) argument 2452 mib[5] = ifindex; 2467 if (ifindex != ifm->ifm_index) { 2468 fatal("ifindex does not match with ifm_index"); 2687 int ifindex; local 2802 ifindex [all...] |