Home
last modified time | relevance | path

Searched refs:if_index (Results 1 – 25 of 67) sorted by relevance

123

/freebsd/sys/netinet6/
H A Dscope6.c104 sid->s6id_list[IPV6_ADDR_SCOPE_INTFACELOCAL] = ifp->if_index; in scope6_ifattach()
105 sid->s6id_list[IPV6_ADDR_SCOPE_LINKLOCAL] = ifp->if_index; in scope6_ifattach()
173 idlist->s6id_list[i] != ifp->if_index) { in scope6_set()
270 ifp->if_index; in scope6_setdefault()
272 ifp->if_index; in scope6_setdefault()
426 zoneid = ifp->if_index; in in6_setscope()
490 return (ifp->if_index); in in6_get_unicast_scopeid()
521 return (ifp->if_index); in in6_getscopezone()
H A Dnd6.h124 u_short if_index; member
137 u_short if_index; member
H A Dip6_mroute.c207 out[i].m6_ifp = mif6table[i].m6_ifp->if_index; in sysctl_mif6table()
711 mifcp->mif6c_pifi = ifp->if_index; in add_m6if()
1079 ip6_sprintf(ip6bufd, &ip6->ip6_dst), ifp->if_index); in X_ip6_mforward()
1378 "wrong if: ifid %d mifi %d mififid %x", ifp->if_index, in ip6_mdq()
1379 mifi, mif6table[mifi].m6_ifp->if_index); in ip6_mdq()
/freebsd/contrib/wpa/src/ap/
H A Dvlan_full.c138 int if_index; in br_delif() local
150 if_index = if_nametoindex(if_name); in br_delif()
152 if (if_index == 0) { in br_delif()
161 args[1] = if_index; in br_delif()
193 int if_index; in br_addif() local
210 if_index = if_nametoindex(if_name); in br_addif()
212 if (if_index == 0) { in br_addif()
221 args[1] = if_index; in br_addif()
/freebsd/lib/libc/net/
H A Dif_nameindex.c124 ifni2->if_index = in if_nameindex()
135 ifni2->if_index = 0; in if_nameindex()
/freebsd/sys/ofed/include/rdma/
H A Dib_addr_freebsd.h94 dev_get_by_index(struct vnet *vnet, int if_index) in dev_get_by_index() argument
101 retval = ifnet_byindex_ref(if_index); in dev_get_by_index()
/freebsd/sys/net/
H A Drtsock.c977 rtm->rtm_index = ifp->if_index; in update_rtm_from_rc()
983 rtm->rtm_index = ifp->if_index; in update_rtm_from_rc()
1153 rtm->rtm_index = nh->nh_ifp->if_index; in rts_send()
1956 ifm->ifm_index = ifp->if_index; in rtsock_ifmsg()
1994 ifam->ifam_index = ifp->if_index; in rtsock_addrmsg()
2068 rtm->rtm_index = info->rti_ifp->if_index; in rtsock_routemsg_info()
2115 ifmam->ifmam_index = ifp->if_index; in rt_newmaddrmsg()
2133 ifan->ifan_index = ifp->if_index; in rt_makeifannouncemsg()
2290 rtm->rtm_index = nh->nh_ifp->if_index; in sysctl_dumpnhop()
2314 ifm32->ifm_index = ifp->if_index; in sysctl_iflist_ifml()
[all …]
H A Dif.c313 static int if_index; variable
329 for (int i = 1; i <= if_index; i++) in sysctl_ifcount()
372 if (__predict_false(idx > if_index)) in ifnet_byindex()
403 if (__predict_false(idx > if_index)) in ifnet_byindexgen()
581 for (idx = 1; idx <= if_index; idx++) { in if_alloc_domain()
600 if (idx > if_index) in if_alloc_domain()
601 if_index = idx; in if_alloc_domain()
603 ifp->if_index = idx; in if_alloc_domain()
680 MPASS(ifindex_table[ifp->if_index].ife_ifnet == ifp); in if_free()
681 ck_pr_store_ptr(&ifindex_table[ifp->if_index].ife_ifnet, NULL); in if_free()
[all …]
H A Dif_private.h53 u_short if_index; /* numeric abbreviation for this if */ member
/freebsd/contrib/tcpdump/
H A Dprint-sll.c412 uint32_t if_index; in sll2_if_print() local
421 if_index = GET_BE_U_4(sllp->sll2_if_index); in sll2_if_print()
422 if (!if_indextoname(if_index, ifname)) in sll2_if_print()
/freebsd/sys/dev/usb/gadget/
H A Dg_audio.c169 .if_index = 1,
181 .if_index = 1,
193 .if_index = 2,
205 .if_index = 2,
H A Dg_modem.c164 .if_index = 0,
176 .if_index = 1,
188 .if_index = 1,
/freebsd/sys/netpfil/ipfw/
H A Dip_fw_iface.c115 handle_ifattach(ch, iif, ifp->if_index); in ipfw_kifhandler()
117 handle_ifdetach(ch, iif, ifp->if_index); in ipfw_kifhandler()
192 ifindex = ifp->if_index; in ipfw_kiflookup()
H A Dip_dn_io.c793 ifp = ifnet_byindexgen(pkt->if_index, pkt->if_idxgen); in dummynet_send()
885 dt->if_index = fwa->ifp->if_index; in tag_mbuf()
/freebsd/sys/netinet/
H A Dsctp_bsd_addr.c250 ifn->if_index, in sctp_init_ifns_for_vrf()
337 ifa->ifa_ifp->if_index, ifa->ifa_ifp->if_type, ifa->ifa_ifp->if_xname, in sctp_addr_change()
342 ifa->ifa_ifp->if_index); in sctp_addr_change()
/freebsd/sys/netgraph/bluetooth/drivers/ubt/
H A Dng_ubt.c296 .if_index = 0,
306 .if_index = 0,
316 .if_index = 0,
326 .if_index = 0,
341 .if_index = 1,
352 .if_index = 1,
363 .if_index = 1,
374 .if_index = 1,
/freebsd/sys/netpfil/pf/
H A Dpf_mtag.h57 u_int16_t if_index; /* For ROUTE_TO */ member
/freebsd/contrib/ntp/sntp/libevent/
H A Devutil.c997 unsigned int if_index; in evutil_getaddrinfo_common_() local
1072 AF_INET6, nodename, &sin6.sin6_addr, &if_index)) { in evutil_getaddrinfo_common_()
1076 sin6.sin6_scope_id = if_index; in evutil_getaddrinfo_common_()
1995 unsigned if_index; in evutil_inet_pton_scope() local
2010 if_index = if_nametoindex(cp + 1); in evutil_inet_pton_scope()
2011 if (if_index == 0) { in evutil_inet_pton_scope()
2013 if_index = strtoul(cp + 1, &check, 10); in evutil_inet_pton_scope()
2017 *indexp = if_index; in evutil_inet_pton_scope()
2142 unsigned int if_index; in evutil_parse_sockaddr_port() local
2213 AF_INET6, addr_part, &sin6.sin6_addr, &if_index)) { in evutil_parse_sockaddr_port()
[all …]
/freebsd/contrib/libevent/
H A Devutil.c997 unsigned int if_index; in evutil_getaddrinfo_common_() local
1072 AF_INET6, nodename, &sin6.sin6_addr, &if_index)) { in evutil_getaddrinfo_common_()
1076 sin6.sin6_scope_id = if_index; in evutil_getaddrinfo_common_()
1995 unsigned if_index; in evutil_inet_pton_scope() local
2010 if_index = if_nametoindex(cp + 1); in evutil_inet_pton_scope()
2011 if (if_index == 0) { in evutil_inet_pton_scope()
2013 if_index = strtoul(cp + 1, &check, 10); in evutil_inet_pton_scope()
2017 *indexp = if_index; in evutil_inet_pton_scope()
2142 unsigned int if_index; in evutil_parse_sockaddr_port() local
2213 AF_INET6, addr_part, &sin6.sin6_addr, &if_index)) { in evutil_parse_sockaddr_port()
[all …]
/freebsd/sys/netgraph/bluetooth/drivers/ubtbcmfw/
H A Dubtbcmfw.c134 .if_index = UBTBCMFW_IFACE_IDX,
145 .if_index = UBTBCMFW_IFACE_IDX,
/freebsd/sys/dev/usb/net/
H A Dif_cdce.c139 .if_index = 0,
152 .if_index = 0,
165 .if_index = 1,
177 .if_index = 1,
192 .if_index = 0,
205 .if_index = 0,
218 .if_index = 1,
230 .if_index = 1,
H A Dif_urndis.c108 .if_index = 0,
121 .if_index = 0,
136 .if_index = 1,
/freebsd/sys/dev/usb/serial/
H A Dumodem.c237 .if_index = 0,
248 .if_index = 0,
259 .if_index = 1,
270 .if_index = 1,
H A Duplcom.c218 .if_index = 0,
228 .if_index = 0,
238 .if_index = 1,
/freebsd/usr.sbin/arp/
H A Darp.c635 for (p = ifnameindex; p && p->if_index && p->if_name; p++) { in print_entry()
636 if (p->if_index == sdl->sdl_index) { in print_entry()

123