Home
last modified time | relevance | path

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

123

/dragonfly/sys/netinet6/
HDscope6.c84 sid->s6id_list[IPV6_ADDR_SCOPE_INTFACELOCAL] = ifp->if_index; in scope6_ifattach()
85 sid->s6id_list[IPV6_ADDR_SCOPE_LINKLOCAL] = ifp->if_index; in scope6_ifattach()
132 idlist->s6id_list[i] != ifp->if_index) { in scope6_set()
138 idlist->s6id_list[i] > if_index) { in scope6_set()
314 ifp->if_index; in scope6_setdefault()
316 ifp->if_index; in scope6_setdefault()
HDmld6.c148 htons(in6m->in6m_ifp->if_index); /* XXX */ in mld6_start_listening()
167 htons(in6m->in6m_ifp->if_index); /* XXX */ in mld6_stop_listening()
169 htons(in6m->in6m_ifp->if_index); /* XXX: necessary when mrouting */ in mld6_stop_listening()
243 htons(ifp->if_index); /* XXX */ in mld6_input()
270 htons(ifp->if_index); /* XXX */ in mld6_input()
349 htons(ifp->if_index); /* XXX */ in mld6_input()
HDnd6.c824 if (nd6_defifindex == ifp->if_index) in nd6_purge()
851 if (sdl->sdl_index == ifp->if_index) in nd6_purge()
993 ntohs(*(u_int16_t *)&addr->sin6_addr.s6_addr[2]) == ifp->if_index) in nd6_is_addr_neighbor()
1232 SDL(gate)->sdl_index = ifp->if_index; in nd6_rtrequest()
1285 SDL(gate)->sdl_index = ifp->if_index; in nd6_rtrequest()
1372 llsol.s6_addr16[1] = htons(ifp->if_index); in nd6_rtrequest()
1400 llsol.s6_addr16[1] = htons(ifp->if_index); in nd6_rtrequest()
1456 drl->defrouter[i].if_index = dr->ifp->if_index; in nd6_ioctl()
1484 prl->prefix[i].if_index = pr->ndpr_ifp->if_index; in nd6_ioctl()
1644 *idp = htons(ifp->if_index); in nd6_ioctl()
[all …]
HDnd6.h136 u_short if_index; member
145 u_short if_index; member
158 u_short if_index; member
174 u_short if_index; member
HDin6_src.c208 if_index < dstsock->sin6_scope_id) { in in6_selectsrc()
574 in6->s6_addr16[1] = htons(ifp->if_index); in in6_embedscope()
577 if (scopeid < 0 || if_index < scopeid) in in6_embedscope()
623 if (zoneid < 0 || if_index < zoneid) in in6_recoverscope()
625 if (ifp && ifp->if_index != zoneid) in in6_recoverscope()
HDin6_ifattach.c419 ifra.ifra_addr.sin6_addr.s6_addr16[1] = htons(ifp->if_index); /* XXX */ in in6_ifattach_linklocal()
623 in6->s6_addr16[1] = htons(ifp->if_index); in in6_nigroup()
656 mltaddr.sin6_addr.s6_addr16[1] = htons(ifp->if_index); in in6_nigroup_attach_dispatch()
703 mltaddr.sin6_addr.s6_addr16[1] = htons(ifp->if_index); in in6_nigroup_detach_dispatch()
843 sin6.sin6_addr.s6_addr16[1] = htons(ifp->if_index); in in6_ifdetach_dispatch()
HDip6_input.c232 ip6stat.ip6s_m2m[loif->if_index]++; /* XXX */ in ip6_input()
233 } else if (m->m_pkthdr.rcvif->if_index < M2MMAX) in ip6_input()
234 ip6stat.ip6s_m2m[m->m_pkthdr.rcvif->if_index]++; in ip6_input()
399 = htons(m->m_pkthdr.rcvif->if_index); in ip6_input()
402 = htons(m->m_pkthdr.rcvif->if_index); in ip6_input()
1086 m->m_pkthdr.rcvif->if_index : 0; in ip6_savecontrol()
HDnd6_nbr.c187 taddr6.s6_addr16[1] = htons(ifp->if_index); in nd6_ns_input()
374 saddr6.s6_addr16[1] = htons(cmpifp->if_index); in nd6_ns_input()
467 ip6->ip6_dst.s6_addr16[1] = htons(ifp->if_index); in nd6_ns_output()
621 taddr6.s6_addr16[1] = htons(ifp->if_index); in nd6_na_input()
945 ip6->ip6_dst.s6_addr16[1] = htons(ifp->if_index); in nd6_na_output()
HDraw_ip6.c354 ip6->ip6_dst.s6_addr16[1] = htons(oifp->if_index); in rip6_output()
358 if_index < dstsock->sin6_scope_id) { in rip6_output()
382 oifp = ifindex2ifnet[in6p->in6p_route.ro_rt->rt_ifp->if_index]; in rip6_output()
/dragonfly/sys/netproto/mpls/
HDmpls_demux.c44 MPLSP_MPORT_HASH(mpls_label_t label, u_short if_index) in MPLSP_MPORT_HASH() argument
52 return ((label ^ if_index) % netisr_ncpus); in MPLSP_MPORT_HASH()
97 m_sethash(m, MPLSP_MPORT_HASH(label, ifp->if_index)); in mpls_hashfn()
/dragonfly/contrib/wpa_supplicant/src/ap/
HDvlan_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()
/dragonfly/usr.sbin/rtsold/
HDprobe.c124 for(i = 0; i < PRLSTSIZ && dr.defrouter[i].if_index; i++) { in defrouter_probe()
125 if (ifindex && dr.defrouter[i].if_index == ifindex) { in defrouter_probe()
137 dr.defrouter[i].if_index); in defrouter_probe()
HDif.c439 for (p = p0; p && p->if_index && p->if_name; p++) { in if_maxindex()
440 if (max < p->if_index) in if_maxindex()
441 max = p->if_index; in if_maxindex()
/dragonfly/lib/libc/net/
HDif_nameindex.c125 ifni2->if_index = in if_nameindex()
136 ifni2->if_index = 0; in if_nameindex()
/dragonfly/contrib/tcpdump/
HDprint-sll.c409 uint32_t if_index; in sll2_if_print() local
418 if_index = GET_BE_U_4(sllp->sll2_if_index); in sll2_if_print()
419 if (!if_indextoname(if_index, ifname)) in sll2_if_print()
/dragonfly/sys/net/
HDrtsock.c613 rtm->rtm_index = rt->rt_ifp->if_index; in _fillrtmsg()
619 rtm->rtm_index = rt->rt_ifp->if_index; in _fillrtmsg()
866 rtm->rtm_index = rt->rt_ifp->if_index; in route_output_add_callback()
961 rtm->rtm_index = rt->rt_ifp->if_index; in route_output_change_callback()
1245 ifm->ifm_index = ifp->if_index; in rt_ifmsg()
1272 ifam->ifam_index = ifp->if_index; in rt_ifamsg()
1309 rtm->rtm_index = ifp->if_index; in rt_rtmsg()
1374 ifmam->ifmam_index = ifp->if_index; in rt_newmaddrmsg()
1396 ifan->ifan_index = ifp->if_index; in rt_makeifannouncemsg()
1523 if (w->w_arg && w->w_arg != ifp->if_index) in sysctl_iflist()
[all …]
HDif_mib.c70 &if_index, 0, "Number of configured interfaces");
90 if (name[0] <= 0 || name[0] > if_index || in sysctl_ifdata()
HDif.c191 int if_index = 0; variable
677 ifp->if_index = if_index + 1; in if_attach()
678 sdl_addr->sdl_index = ifp->if_index; in if_attach()
683 if (ifindex2ifnet == NULL || ifp->if_index >= if_indexlim) { in if_attach()
700 ifindex2ifnet[ifp->if_index] = ifp; in if_attach()
706 if_index = ifp->if_index; in if_attach()
960 ifindex2ifnet[ifp->if_index] = NULL; in if_detach()
961 while (if_index > 0 && ifindex2ifnet[if_index] == NULL) in if_detach()
962 if_index--; in if_detach()
1375 null_sdl.sdl_index = ifp->if_index; in ifa_maintain_loopback_route()
[all …]
/dragonfly/usr.sbin/ndp/
HDndp.c1053 if_indextoname(p->if_index, ifix_buf)); in rtrlist()
1084 for (i = 0 ; i < DRLSTSIZ && DR.if_index ; i++) { in rtrlist()
1096 if_indextoname(DR.if_index, ifix_buf)); in rtrlist()
1155 if_indextoname(p->if_index, ifix_buf)); in plist()
1209 nbi = getnbrinfo(&sin6->sin6_addr, p->if_index, in plist()
1248 for (i = 0; i < PRLSTSIZ && PR.if_index ; i++) { in plist()
1288 if_indextoname(PR.if_index, ifix_buf)); in plist()
1372 sin6.sin6_scope_id = PR.if_index; /* XXX */ in plist()
1379 nbi = getnbrinfo(&sin6.sin6_addr, PR.if_index, in plist()
/dragonfly/sys/bus/u4b/gadget/
HDg_audio.c167 .if_index = 1,
179 .if_index = 1,
191 .if_index = 2,
203 .if_index = 2,
HDg_modem.c162 .if_index = 0,
174 .if_index = 1,
186 .if_index = 1,
/dragonfly/sys/netgraph7/bluetooth/drivers/ubt/
HDng_ubt.c286 .if_index = 0,
296 .if_index = 0,
306 .if_index = 0,
316 .if_index = 0,
331 .if_index = 1,
342 .if_index = 1,
353 .if_index = 1,
364 .if_index = 1,
/dragonfly/sys/bus/u4b/net/
HDif_cdce.c128 .if_index = 0,
141 .if_index = 0,
154 .if_index = 1,
166 .if_index = 1,
182 .if_index = 0,
195 .if_index = 0,
208 .if_index = 1,
220 .if_index = 1,
/dragonfly/sys/netgraph7/bluetooth/drivers/ubtbcmfw/
HDubtbcmfw.c130 .if_index = UBTBCMFW_IFACE_IDX,
141 .if_index = UBTBCMFW_IFACE_IDX,
/dragonfly/sys/bus/u4b/serial/
HDumodem.c219 .if_index = 0,
230 .if_index = 0,
241 .if_index = 1,
252 .if_index = 1,

123