/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/ |
H A D | scope6.c | 63 * We have some arrays that should be indexed by if_index. 64 * since if_index will grow dynamically, they should grow too. 66 if (scope6_ids == NULL || if_index >= if_indexlim) { 70 while (if_index >= if_indexlim) 85 #define SID scope6_ids[ifp->if_index] 96 SID.s6id_list[IPV6_ADDR_SCOPE_LINKLOCAL] = ifp->if_index; 128 idlist[i] != scope6_ids[ifp->if_index].s6id_list[i]) { 130 idlist[i] > if_index) { 145 scope6_ids[ifp->if_index].s6id_list[i] = idlist[i]; 160 bcopy(scope6_ids[ifp->if_index] [all...] |
H A D | nd6.c | 154 * We have some arrays that should be indexed by if_index. 155 * since if_index will grow dynamically, they should grow too. 157 if (nd_ifinfo == NULL || if_index >= nd_ifinfo_indexlim) { 161 while (if_index >= nd_ifinfo_indexlim) 181 #define ND nd_ifinfo[ifp->if_index] 193 ND.linkmtu = ifindex2ifnet[ifp->if_index]->if_mtu; 219 if (ifp->if_index >= nd_ifinfo_indexlim) { 223 ndi = &nd_ifinfo[ifp->if_index]; 440 ndi = &nd_ifinfo[ifp->if_index]; 496 nd_ifinfo[ifp->if_index] [all...] |
H A D | mld6.c | 161 htons(in6m->in6m_ifp->if_index); /* XXX */ 180 htons(in6m->in6m_ifp->if_index); /* XXX */ 182 htons(in6m->in6m_ifp->if_index); /* XXX: necessary when mrouting */ 253 htons(ifp->if_index); /* XXX */ 280 htons(ifp->if_index); /* XXX */ 335 htons(ifp->if_index); /* XXX */
|
H A D | nd6.h | 115 u_short if_index; member in struct:in6_drlist::__anon332 124 u_short if_index; member in struct:in6_defrouter 137 u_short if_index; member in struct:in6_prlist::__anon333 153 u_short if_index; member in struct:in6_prefix 196 (&nd_ifinfo[(ifp)->if_index])
|
H A D | in6_ifattach.c | 499 ifra.ifra_addr.sin6_addr.s6_addr16[1] = htons(ifp->if_index); /* XXX */ 721 in6->s6_addr16[1] = htons(ifp->if_index); 746 mltaddr.sin6_addr.s6_addr16[1] = htons(ifp->if_index); 779 mltaddr.sin6_addr.s6_addr16[1] = htons(ifp->if_index); 805 * We have some arrays that should be indexed by if_index. 806 * since if_index will grow dynamically, they should grow too. 811 if_index >= if_indexlim) { 817 while (if_index >= if_indexlim) 924 if (in6_ifstat[ifp->if_index] == NULL) { 925 in6_ifstat[ifp->if_index] [all...] |
H A D | in6_src.c | 173 if_index < dstsock->sin6_scope_id) { 342 return(nd_ifinfo[ifp->if_index].chlim); 525 in6->s6_addr16[1] = htons(ifp->if_index); 528 if (scopeid < 0 || if_index < scopeid) 576 if (scopeid < 0 || if_index < scopeid) 578 if (ifp && ifp->if_index != scopeid)
|
H A D | nd6_nbr.c | 157 taddr6.s6_addr16[1] = htons(ifp->if_index); 300 saddr6.s6_addr16[1] = htons(ifp->if_index); 405 ip6->ip6_dst.s6_addr16[1] = htons(ifp->if_index); 590 taddr6.s6_addr16[1] = htons(ifp->if_index); 680 nd_ifinfo[rt->rt_ifp->if_index].reachable; 761 nd_ifinfo[ifp->if_index].reachable; 903 ip6->ip6_dst.s6_addr16[1] = htons(ifp->if_index); 1126 nd_ifinfo[ifa->ifa_ifp->if_index].retrans * hz / 1000); 1221 nd_ifinfo[ifa->ifa_ifp->if_index].retrans * hz / 1000);
|
H A D | route6.c | 211 ip6->ip6_dst.s6_addr16[1] = htons(m->m_pkthdr.rcvif->if_index);
|
H A D | in6.c | 327 if (idx < 0 || if_index < idx) 612 htons(ifp->if_index); 614 htons(ifp->if_index)) { 619 (u_int32_t)ifp->if_index) 743 index = ifp->if_index; 758 index = ifp->if_index; 1239 llsol.s6_addr16[1] = htons(ifp->if_index); 1269 mltaddr.sin6_addr.s6_addr16[1] = htons(ifp->if_index); 1438 llsol.s6_addr16[1] = htons(ifp->if_index);
|
H A D | raw_ip6.c | 360 ip6->ip6_dst.s6_addr16[1] = htons(oifp->if_index); 364 || if_index < dstsock->sin6_scope_id) { 391 oifp = ifindex2ifnet[in6p->in6p_route.ro_rt->rt_ifp->if_index];
|
H A D | in6_var.h | 504 int _z_index = ifp ? ifp->if_index : 0; \ 505 if ((_z_index) && _z_index <= if_index \
|
/macosx-10.5.8/xnu-1228.15.4/bsd/net/ |
H A D | bridge.h | 73 * provides a pointer to this struct using the if_index. 91 #define BDG_USED(ifp) (ifp2sc[ifp->if_index].flags & IFF_USED) 92 #define BDG_MUTED(ifp) (ifp2sc[ifp->if_index].flags & IFF_MUTE) 93 #define BDG_MUTE(ifp) ifp2sc[ifp->if_index].flags |= IFF_MUTE 94 #define BDG_UNMUTE(ifp) ifp2sc[ifp->if_index].flags &= ~IFF_MUTE 95 #define BDG_CLUSTER(ifp) (ifp2sc[ifp->if_index].cluster_id) 166 #define BDG_STAT(ifp, type) bdg_stats.s[ifp->if_index].p_in[(int)type]++
|
H A D | bridge.c | 165 if (ifp2sc[ifp->if_index].magic != 0xDEADBEEF) { x ; } 177 if ( (ifp2sc[ifp->if_index].flags & IFF_BDG_PROMISC) ) { 182 ifp2sc[ifp->if_index].flags &= ~(IFF_BDG_PROMISC|IFF_MUTE) ; 185 ifp->if_flags, ifp2sc[ifp->if_index].flags);) 188 ifp2sc[ifp->if_index].flags &= ~(IFF_USED) ; 189 bdg_stats.s[ifp->if_index].name[0] = '\0'; 213 if ( !(ifp2sc[ifp->if_index].flags & IFF_BDG_PROMISC) ) { 218 ifp2sc[ifp->if_index].flags |= IFF_BDG_PROMISC ; 221 ifp->if_flags, ifp2sc[ifp->if_index].flags); 284 for (i=0, b = ifp2sc ; i < if_index ; [all...] |
H A D | rtsock_mip.c | 64 rtm->rtm_index = ifp->if_index;
|
H A D | if_ethersubr.c | 159 sdl->sdl_index = ifp->if_index; 186 sdl->sdl_index = ifp->if_index;
|
H A D | if_mib.c | 100 &if_index, 0, "Number of configured interfaces"); 201 if (name[0] <= 0 || name[0] > if_index ||
|
H A D | multicast_list.c | 114 target_sdl.sdl_index = target_ifp->if_index;
|
H A D | rtsock.c | 538 rtm->rtm_index = ifp->if_index; 744 set_primary_ifscope(rt->rt_ifp->if_index); 1005 ifm->ifm_index = ifp->if_index; 1049 ifam->ifam_index = ifp->if_index; 1066 rtm->rtm_index = ifp->if_index; 1106 ifmam->ifmam_index = ifp ? ifp->if_index : 0; 1138 rtm->rtm_index = rt->rt_ifp->if_index; 1154 rtm->rtm_index = rt->rt_ifp->if_index; 1185 if (w->w_arg && w->w_arg != ifp->if_index) 1196 ifm->ifm_index = ifp->if_index; [all...] |
H A D | route.c | 811 unsigned int ifscope = (ifp != NULL) ? ifp->if_index : IFSCOPE_NONE; 1066 ifa != NULL && ifa->ifa_ifp->if_index != ifscope) { 1285 ifscope = rt->rt_ifp->if_index; 1442 set_primary_ifscope(rt->rt_ifp->if_index); 1628 gwrt->rt_ifp->if_index != ifscope) { 1645 set_primary_ifscope(rt->rt_ifp->if_index); 1657 (gwrt->rt_ifp->if_index == get_primary_ifscope() || 1869 if (rt->rt_ifp->if_index != ifscope) { 1879 ifscope = rt->rt_ifp->if_index; 1924 RT(rn)->rt_ifp->if_index ! [all...] |
H A D | if_var.h | 362 u_short if_index; /* numeric abbreviation for this if */ member in struct:ifnet 636 extern int if_index;
|
H A D | ether_inet6_pr_module.c | 189 out_ll->sdl_index = ifp->if_index;
|
H A D | if.h | 472 unsigned int if_index; /* 1, 2, ... */ member in struct:if_nameindex
|
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/ |
H A D | if_atm.c | 139 SDL(gate)->sdl_index = rt->rt_ifp->if_index; 187 SDL(gate)->sdl_index = rt->rt_ifp->if_index;
|
H A D | icmp6.h | 672 if ((ifp) && (ifp)->if_index <= if_index \ 673 && (ifp)->if_index < icmp6_ifstatmax \ 674 && icmp6_ifstat && icmp6_ifstat[(ifp)->if_index]) { \ 675 icmp6_ifstat[(ifp)->if_index]->tag++; \
|
H A D | in_arp.c | 244 SDL(gate)->sdl_index = rt->rt_ifp->if_index; 261 SDL(gate)->sdl_index = rt->rt_ifp->if_index; 459 1, 0, route->rt_ifp->if_index); 482 route->rt_ifp->if_index); 569 ifp->if_index); 719 sender_ip->sin_addr.s_addr != 0), 0, &route, ifp->if_index); 734 &route, ifp->if_index); 780 1, 0, &route, ifp->if_index); 824 gateway->sdl_index = ifp->if_index; 890 &route, ifp->if_index); [all...] |