/xnu-2422.115.4/bsd/net/ |
H A D | route.c | 347 unsigned int ifscope; /* interface scope */ member in struct:matchleaf_arg 468 * Set the ifscope of the primary interface; caller holds rnh_lock. 471 set_primary_ifscope(int af, unsigned int ifscope) argument 474 primary_ifscope = ifscope; 476 primary6_ifscope = ifscope; 480 * Return the ifscope of the primary interface; caller holds rnh_lock. 492 sin_set_ifscope(struct sockaddr *sa, unsigned int ifscope) argument 497 SINIFSCOPE(sa)->sin_scope_id = ifscope; 504 sin6_set_ifscope(struct sockaddr *sa, unsigned int ifscope) argument 509 SIN6IFSCOPE(sa)->sin6_scope_id = ifscope; 537 sin6_set_embedded_ifscope(struct sockaddr *sa, unsigned int ifscope) argument 569 unsigned int ifscope = (pifscope != NULL) ? *pifscope : IFSCOPE_NONE; local 578 sin_set_ifscope(SA(dst), ifscope); local 593 sin6_set_ifscope(SA(dst), ifscope); local 599 sin6_set_embedded_ifscope(SA(dst), ifscope); local 601 sin6_set_ifscope(SA(dst), ifscope); local 617 ma_copy(int af, struct sockaddr *src, struct sockaddr_storage *dst, unsigned int ifscope) argument 845 rtalloc_scoped(struct route *ro, unsigned int ifscope) argument 851 rtalloc_ign_common_locked(struct route *ro, uint32_t ignore, unsigned int ifscope) argument 882 rtalloc_scoped_ign(struct route *ro, uint32_t ignore, unsigned int ifscope) argument 897 rtalloc1_scoped_locked(struct sockaddr *dst, int report, uint32_t ignflags, unsigned int ifscope) argument 908 rtalloc1_common_locked(struct sockaddr *dst, int report, uint32_t ignflags, unsigned int ifscope) argument 1000 rtalloc1_scoped(struct sockaddr *dst, int report, uint32_t ignflags, unsigned int ifscope) argument 1312 unsigned int ifscope = (ifp != NULL) ? ifp->if_index : IFSCOPE_NONE; local 1495 ifa_ifwithroute_scoped_locked(int flags, const struct sockaddr *dst, const struct sockaddr *gateway, unsigned int ifscope) argument 1507 ifa_ifwithroute_common_locked(int flags, const struct sockaddr *dst, const struct sockaddr *gw, unsigned int ifscope) argument 1648 rtrequest_scoped_locked(int req, struct sockaddr *dst, struct sockaddr *gateway, struct sockaddr *netmask, int flags, struct rtentry **ret_nrt, unsigned int ifscope) argument 1677 rtrequest_common_locked(int req, struct sockaddr *dst0, struct sockaddr *gateway, struct sockaddr *netmask, int flags, struct rtentry **ret_nrt, unsigned int ifscope) argument 2192 rtrequest_scoped(int req, struct sockaddr *dst, struct sockaddr *gateway, struct sockaddr *netmask, int flags, struct rtentry **ret_nrt, unsigned int ifscope) argument 2420 unsigned int ifscope; local 2674 node_lookup(struct sockaddr *dst, struct sockaddr *netmask, unsigned int ifscope) argument 2749 rt_lookup_common(boolean_t lookup_only, boolean_t coarse, struct sockaddr *dst, struct sockaddr *netmask, struct radix_node_head *rnh, unsigned int ifscope) argument 2925 rt_lookup(boolean_t lookup_only, struct sockaddr *dst, struct sockaddr *netmask, struct radix_node_head *rnh, unsigned int ifscope) argument [all...] |
H A D | rtsock.c | 308 unsigned int ifscope = IFSCOPE_NONE; local 421 ifscope = rtm->rtm_index; 451 ifscope); 483 info.rti_info[RTAX_GATEWAY], ifscope); 498 ifscope); 517 info.rti_info[RTAX_NETMASK], rnh, ifscope); 614 info.rti_info[RTAX_GATEWAY], ifscope); 776 struct sockaddr *Gate, unsigned int ifscope) 801 if (Ifpaddr && (ifa = ifa_ifwithnet_scoped(Ifpaddr, ifscope)) && 821 (ifa = ifa_ifwithaddr_scoped(Ifaaddr, ifscope))) { 775 rt_setif(struct rtentry *rt, struct sockaddr *Ifpaddr, struct sockaddr *Ifaaddr, struct sockaddr *Gate, unsigned int ifscope) argument [all...] |
H A D | if.c | 876 ifa_ifwithaddr_scoped(const struct sockaddr *addr, unsigned int ifscope) argument 881 if (ifscope == IFSCOPE_NONE) 885 if (ifscope > (unsigned int)if_index) { 890 ifp = ifindex2ifnet[ifscope]; 939 ifa_ifwithnet_scoped(const struct sockaddr *addr, unsigned int ifscope) argument 941 return (ifa_ifwithnet_common(addr, ifscope)); 949 ifa_ifwithnet_common(const struct sockaddr *addr, unsigned int ifscope) argument 964 ifscope = IFSCOPE_NONE; 1005 if (ifscope != IFSCOPE_NONE && 1006 ifp->if_index != ifscope) { [all...] |
/xnu-2422.115.4/bsd/netinet6/ |
H A D | ip6_forward.c | 138 unsigned int ifscope = IFSCOPE_NONE; local 158 ifscope = rt->rt_ifp->if_index; 164 ifscope = pf_mtag->pftag_rtableid; 171 if (ifscope != IFSCOPE_NONE && (rt = ip6forward_rt->ro_rt) != NULL) { 173 if (rt->rt_ifp->if_index != ifscope) { 240 proxy = nd6_prproxy_isours(m, ip6, ip6forward_rt, ifscope); 416 RTF_PRCLONING, ifscope); 449 RTF_PRCLONING, ifscope);
|
H A D | in6_src.c | 200 struct ifnet **ifpp, struct in6_addr *src_storage, unsigned int ifscope, 212 struct ip6_out_args ip6oa = { ifscope, { 0 }, IP6OAF_SELECT_SRCIF, 0 }; 585 unsigned int ifscope = ((ip6oa != NULL) ? local 632 * If Scoped Routing is disabled, ignore the given ifscope. 636 if (!ip6_doscopedroute && ifscope != IFSCOPE_NONE) 637 ifscope = IFSCOPE_NONE; 645 ifscope = pi->ipi6_ifindex; 649 ((ifscope <= if_index) ? ifindex2ifnet[ifscope] : NULL); 684 if (ip6_doscopedroute && ifscope 198 in6_selectsrc(struct sockaddr_in6 *dstsock, struct ip6_pktopts *opts, struct inpcb *inp, struct route_in6 *ro, struct ifnet **ifpp, struct in6_addr *src_storage, unsigned int ifscope, int *errorp) argument [all...] |
H A D | nd6_rtr.c | 760 unsigned int ifscope; local 795 ifscope = scoped ? new->ifp->if_index : IFSCOPE_NONE; 800 RTF_GATEWAY, &newrt, ifscope); 809 if (ifscope != IFSCOPE_NONE) 816 (ifscope != IFSCOPE_NONE), err)); 858 unsigned int ifscope; local 887 ifscope = (dr->stateflags & NDDRF_IFSCOPE) ? 890 ifscope = IFSCOPE_NONE; 895 (struct sockaddr *)&mask, RTF_GATEWAY, &oldrt, ifscope); 906 if_name(dr->ifp) : "ANY", (ifscope ! 3410 nd6_prefix_onlink_common(struct nd_prefix *pr, boolean_t force_scoped, unsigned int ifscope) argument 3625 nd6_prefix_onlink_scoped(struct nd_prefix *pr, unsigned int ifscope) argument 3638 unsigned int ifscope; local [all...] |
H A D | in6_pcb.c | 406 unsigned int ifscope; local 430 ifscope = (inp->inp_flags & INP_BOUND_IF) ? 443 &inp->in6p_route, outif, &src_storage, ifscope, &error);
|
H A D | raw_ip6.c | 896 unsigned int ifscope; local 916 ifscope = (inp->inp_flags & INP_BOUND_IF) ? 921 NULL, &storage, ifscope, &error);
|
H A D | udp6_usrreq.c | 784 struct sockaddr_list **dst_sl, struct proc *p, uint32_t ifscope, 789 p, ifscope, aid, pcid, flags, arg, arglen)); 783 udp6_connectx(struct socket *so, struct sockaddr_list **src_sl, struct sockaddr_list **dst_sl, struct proc *p, uint32_t ifscope, associd_t aid, connid_t *pcid, uint32_t flags, void *arg, uint32_t arglen) argument
|
H A D | nd6_prproxy.c | 521 unsigned int ifscope) 554 rtalloc_scoped_ign((struct route *)ro6, RTF_PRCLONING, ifscope); 520 nd6_prproxy_isours(struct mbuf *m, struct ip6_hdr *ip6, struct route_in6 *ro6, unsigned int ifscope) argument
|
H A D | nd6.c | 1651 unsigned int ifscope; local 1658 ifscope = (ifp != NULL) ? ifp->if_index : IFSCOPE_NONE; 1661 rt = rtalloc1_scoped_locked(SA(&sin6), create, 0, ifscope); 1663 rt = rtalloc1_scoped(SA(&sin6), create, 0, ifscope); 1716 ~RTF_CLONING, &rt, ifscope)) != 0) {
|
/xnu-2422.115.4/bsd/netinet/ |
H A D | ip_output.c | 258 unsigned int ifscope = IFSCOPE_NONE; local 396 * In the forwarding case, only the ifscope value is used, 406 ifscope = ipoa->ipoa_boundif; 408 (IPPOF_BOUND_IF | (ifscope << IPPOF_SHIFT_IFSCOPE)); 418 ifscope = IFSCOPE_NONE; 654 ia0 = in_selectsrcif(ip, ro, ifscope); 680 ipobf.srcbound) && ifscope != lo_ifp->if_index) { 700 if (ifscope == IFSCOPE_NONE) 701 ifscope = ia0->ifa_ifp->if_index; 740 * Loosen the route lookup criteria if the ifscope 2399 unsigned int ifscope; local 3095 in_selectsrcif(struct ip *ip, struct route *ro, unsigned int ifscope) argument [all...] |
H A D | in_pcb.c | 934 * by specifying the ifscope parameter (e.g. from IP_PKTINFO.) 947 unsigned int ifscope, struct ifnet **outif) 998 * If the ifscope is specified by the caller (e.g. IP_PKTINFO) 999 * then it overrides the sticky ifscope set for the socket. 1001 if (ifscope == IFSCOPE_NONE && (inp->inp_flags & INP_BOUND_IF)) 1002 ifscope = inp->inp_boundifp->if_index; 1029 rtalloc_scoped(ro, ifscope); 1047 ia = ifatoia(ifa_ifwithnet_scoped(SA(&sin), ifscope)); 1089 ia = ifatoia(ifa_ifwithaddr_scoped(SA(&sin), ifscope)); 1091 ia = ifatoia(ifa_ifwithnet_scoped(SA(&sin), ifscope)); 946 in_pcbladdr(struct inpcb *inp, struct sockaddr *nam, struct in_addr *laddr, unsigned int ifscope, struct ifnet **outif) argument 1192 in_pcbconnect(struct inpcb *inp, struct sockaddr *nam, struct proc *p, unsigned int ifscope, struct ifnet **outif) argument 2344 inp_bindif(struct inpcb *inp, unsigned int ifscope, struct ifnet **pifp) argument [all...] |
H A D | in.h | 407 __uint32_t ifscope; member in struct:sockaddr_inifscope::__anon325::__anon326 410 #define sin_scope_id un._in_index.ifscope
|
H A D | tcp_subr.c | 579 unsigned int ifscope, 783 struct ip6_out_args ip6oa = { ifscope, { 0 }, 786 if (ifscope != IFSCOPE_NONE) 804 struct ip_out_args ipoa = { ifscope, { 0 }, 807 if (ifscope != IFSCOPE_NONE) 2172 unsigned int ifscope; local 2186 ifscope = (inp->inp_flags & INP_BOUND_IF) ? 2189 rtalloc_scoped(ro, ifscope); 2267 unsigned int ifscope; local 2281 ifscope 571 tcp_respond( struct tcpcb *tp, void *ipgen, register struct tcphdr *th, register struct mbuf *m, tcp_seq ack, tcp_seq seq, int flags, unsigned int ifscope, unsigned int nocell ) argument [all...] |
H A D | tcp_usrreq.c | 457 struct proc *p, uint32_t ifscope, associd_t aid, connid_t *pcid, 515 if (ifscope != IFSCOPE_NONE && 516 (error = inp_bindif(inp, ifscope, NULL)) != 0) 550 struct sockaddr_list **dst_sl, struct proc *p, uint32_t ifscope, 555 p, ifscope, aid, pcid, flags, arg, arglen)); 641 struct sockaddr_list **dst_sl, struct proc *p, uint32_t ifscope, 646 p, ifscope, aid, pcid, flags, arg, arglen)); 455 tcp_usr_connectx_common(struct socket *so, int af, struct sockaddr_list **src_sl, struct sockaddr_list **dst_sl, struct proc *p, uint32_t ifscope, associd_t aid, connid_t *pcid, uint32_t flags, void *arg, uint32_t arglen) argument 549 tcp_usr_connectx(struct socket *so, struct sockaddr_list **src_sl, struct sockaddr_list **dst_sl, struct proc *p, uint32_t ifscope, associd_t aid, connid_t *pcid, uint32_t flags, void *arg, uint32_t arglen) argument 640 tcp6_usr_connectx(struct socket *so, struct sockaddr_list **src_sl, struct sockaddr_list **dst_sl, struct proc *p, uint32_t ifscope, associd_t aid, connid_t *pcid, uint32_t flags, void *arg, uint32_t arglen) argument
|
H A D | tcp_timer.c | 955 unsigned int ifscope, nocell = 0; local 958 ifscope = tp->t_inpcb->inp_boundifp->if_index; 960 ifscope = IFSCOPE_NONE; 971 tp->rcv_nxt, tp->snd_una - 1, 0, ifscope,
|
H A D | udp_usrreq.c | 1813 struct proc *p, uint32_t ifscope, associd_t aid, connid_t *pcid, 1837 if (ifscope != IFSCOPE_NONE && 1838 (error = inp_bindif(inp, ifscope, NULL)) != 0) 1871 struct sockaddr_list **dst_sl, struct proc *p, uint32_t ifscope, 1876 p, ifscope, aid, pcid, flags, arg, arglen)); 1811 udp_connectx_common(struct socket *so, int af, struct sockaddr_list **src_sl, struct sockaddr_list **dst_sl, struct proc *p, uint32_t ifscope, associd_t aid, connid_t *pcid, uint32_t flags, void *arg, uint32_t arglen) argument 1870 udp_connectx(struct socket *so, struct sockaddr_list **src_sl, struct sockaddr_list **dst_sl, struct proc *p, uint32_t ifscope, associd_t aid, connid_t *pcid, uint32_t flags, void *arg, uint32_t arglen) argument
|
H A D | in_arp.c | 906 route_t *route, unsigned int ifscope) 924 ifscope = IFSCOPE_NONE; 926 rt = rtalloc1_scoped((struct sockaddr *)&sin, create, 0, ifscope); 947 __func__, ifscope, inet_ntop(AF_INET, addr, tmp, 905 arp_lookup_route(const struct in_addr *addr, int create, int proxy, route_t *route, unsigned int ifscope) argument
|
H A D | mptcp_subr.c | 1097 struct proc *p, uint32_t ifscope) 1170 if (ifscope != IFSCOPE_NONE) { 1172 error = inp_bindif(sotoinpcb(so), ifscope, &mpts->mpts_outif); 1185 ifscope, mpts->mpts_connid)); 1272 mpcr.mpcr_ifscope = ifscope; 2760 unsigned int ifscope, nocell = 0; local 2763 ifscope = inp->inp_boundifp->if_index; 2765 ifscope = IFSCOPE_NONE; 2772 tp->rcv_nxt, tp->snd_una, TH_RST, ifscope, nocell); 1096 mptcp_subflow_add(struct mptses *mpte, struct mptsub *mpts, struct proc *p, uint32_t ifscope) argument
|
H A D | mptcp_usrreq.c | 250 struct sockaddr_list **dst_sl, struct proc *p, uint32_t ifscope, 284 error = mptcp_subflow_add(mpte, mpts, p, ifscope); 311 struct sockaddr_list **dst_sl, struct proc *p, uint32_t ifscope, 327 error = mptcp_connectx(mpte, src_sl, dst_sl, p, ifscope, 249 mptcp_connectx(struct mptses *mpte, struct sockaddr_list **src_sl, struct sockaddr_list **dst_sl, struct proc *p, uint32_t ifscope, associd_t aid, connid_t *pcid, uint32_t flags, void *arg, uint32_t arglen) argument 310 mptcp_usr_connectx(struct socket *mp_so, struct sockaddr_list **src_sl, struct sockaddr_list **dst_sl, struct proc *p, uint32_t ifscope, associd_t aid, connid_t *pcid, uint32_t flags, void *arg, uint32_t arglen) argument
|
H A D | tcp_input.c | 1348 unsigned int ifscope, nocell = 0; local 1564 ifscope = IFSCOPE_NONE; 1566 ifscope = m->m_pkthdr.rcvif->if_index; 1636 ifscope = inp->inp_boundifp->if_index; 2185 tcp_dooptions(tp, optp, optlen, th, &to, ifscope); 2210 tcp_mss(tp, to.to_mss, ifscope); 2639 tcp_dooptions(tp, optp, optlen, th, &to, ifscope); 4273 TH_RST, ifscope, nocell); 4279 (tcp_seq)0, TH_RST|TH_ACK, ifscope, nocell);
|
H A D | flow_divert.c | 2287 struct proc *p, uint32_t ifscope __unused, associd_t aid __unused, 2323 struct sockaddr_list **dst_sl, struct proc *p, uint32_t ifscope, 2328 p, ifscope, aid, pcid, flags, arg, arglen)); 2334 struct sockaddr_list **dst_sl, struct proc *p, uint32_t ifscope, 2339 p, ifscope, aid, pcid, flags, arg, arglen)); 2322 flow_divert_connectx_out(struct socket *so, struct sockaddr_list **src_sl, struct sockaddr_list **dst_sl, struct proc *p, uint32_t ifscope, associd_t aid, connid_t *pcid, uint32_t flags, void *arg, uint32_t arglen) argument 2333 flow_divert_connectx6_out(struct socket *so, struct sockaddr_list **src_sl, struct sockaddr_list **dst_sl, struct proc *p, uint32_t ifscope, associd_t aid, connid_t *pcid, uint32_t flags, void *arg, uint32_t arglen) argument
|
/xnu-2422.115.4/bsd/kern/ |
H A D | netboot.c | 531 struct in_addr m, uint32_t more_flags, unsigned int ifscope) 560 (struct sockaddr *)&gw, (struct sockaddr *)&mask, flags, NULL, ifscope); 579 host_route_delete(struct in_addr host, unsigned int ifscope) argument 583 return (route_cmd(RTM_DELETE, host, zeroes, zeroes, RTF_HOST, ifscope)); 530 route_cmd(int cmd, struct in_addr d, struct in_addr g, struct in_addr m, uint32_t more_flags, unsigned int ifscope) argument
|
H A D | uipc_syscalls.c | 704 error = connectitx(so, &src_sl, &dst_sl, p, uap->ifscope, 783 struct sockaddr_list **dst_sl, struct proc *p, uint32_t ifscope, 807 error = soconnectxlocked(so, src_sl, dst_sl, p, ifscope, 782 connectitx(struct socket *so, struct sockaddr_list **src_sl, struct sockaddr_list **dst_sl, struct proc *p, uint32_t ifscope, associd_t aid, connid_t *pcid) argument
|