Searched refs:ifscope (Results 1 - 19 of 19) sorted by relevance

/darwin-on-arm/xnu/bsd/net/
H A Droute.c334 __uint32_t ifscope; member in struct:sockaddr_inifscope::__anon301::__anon302
337 #define sin_scope_id un._in_index.ifscope
360 unsigned int ifscope; /* interface scope */ member in struct:matchleaf_arg
414 * Set the ifscope of the primary interface; caller holds rnh_lock.
417 set_primary_ifscope(int af, unsigned int ifscope) argument
420 primary_ifscope = ifscope;
422 primary6_ifscope = ifscope;
426 * Return the ifscope of the primary interface; caller holds rnh_lock.
438 sin_set_ifscope(struct sockaddr *sa, unsigned int ifscope) argument
443 SINIFSCOPE(sa)->sin_scope_id = ifscope;
450 sin6_set_ifscope(struct sockaddr *sa, unsigned int ifscope) argument
483 sin6_set_embedded_ifscope(struct sockaddr *sa, unsigned int ifscope) argument
515 unsigned int ifscope = (pifscope != NULL) ? *pifscope : IFSCOPE_NONE; local
524 sin_set_ifscope(SA(dst), ifscope); local
539 sin6_set_ifscope(SA(dst), ifscope); local
545 sin6_set_embedded_ifscope(SA(dst), ifscope); local
547 sin6_set_ifscope(SA(dst), ifscope); local
563 ma_copy(int af, struct sockaddr *src, struct sockaddr_storage *dst, unsigned int ifscope) argument
795 rtalloc_scoped(struct route *ro, unsigned int ifscope) argument
801 rtalloc_ign_common_locked(struct route *ro, uint32_t ignore, unsigned int ifscope) argument
834 rtalloc_scoped_ign(struct route *ro, uint32_t ignore, unsigned int ifscope) argument
849 rtalloc1_scoped_locked(struct sockaddr *dst, int report, uint32_t ignflags, unsigned int ifscope) argument
860 rtalloc1_common_locked(struct sockaddr *dst, int report, uint32_t ignflags, unsigned int ifscope) argument
952 rtalloc1_scoped(struct sockaddr *dst, int report, uint32_t ignflags, unsigned int ifscope) argument
1238 unsigned int ifscope = (ifp != NULL) ? ifp->if_index : IFSCOPE_NONE; local
1415 ifa_ifwithroute_scoped_locked(int flags, const struct sockaddr *dst, const struct sockaddr *gateway, unsigned int ifscope) argument
1427 ifa_ifwithroute_common_locked(int flags, const struct sockaddr *dst, const struct sockaddr *gw, unsigned int ifscope) argument
1568 rtrequest_scoped_locked(int req, struct sockaddr *dst, struct sockaddr *gateway, struct sockaddr *netmask, int flags, struct rtentry **ret_nrt, unsigned int ifscope) argument
1597 rtrequest_common_locked(int req, struct sockaddr *dst0, struct sockaddr *gateway, struct sockaddr *netmask, int flags, struct rtentry **ret_nrt, unsigned int ifscope) argument
2078 rtrequest_scoped(int req, struct sockaddr *dst, struct sockaddr *gateway, struct sockaddr *netmask, int flags, struct rtentry **ret_nrt, unsigned int ifscope) argument
2306 unsigned int ifscope; local
2560 node_lookup(struct sockaddr *dst, struct sockaddr *netmask, unsigned int ifscope) argument
2635 rt_lookup(boolean_t lookup_only, struct sockaddr *dst, struct sockaddr *netmask, struct radix_node_head *rnh, unsigned int ifscope) argument
[all...]
H A Drtsock.c334 unsigned int ifscope = IFSCOPE_NONE; local
436 ifscope = rtm->rtm_index;
492 info.rti_info[RTAX_NETMASK], rtm->rtm_flags, &saved_nrt, ifscope);
525 ifscope);
540 info.rti_info[RTAX_GATEWAY], info.rti_info[RTAX_NETMASK], rtm->rtm_flags, &saved_nrt, ifscope);
558 rt = rt_lookup(TRUE, info.rti_info[RTAX_DST], info.rti_info[RTAX_NETMASK], rnh, ifscope);
653 ifscope);
826 struct sockaddr *Gate, unsigned int ifscope)
856 if (Ifpaddr && (ifa = ifa_ifwithnet_scoped(Ifpaddr, ifscope)) &&
876 (ifa = ifa_ifwithaddr_scoped(Ifaaddr, ifscope))) {
825 rt_setif(struct rtentry *rt, struct sockaddr *Ifpaddr, struct sockaddr *Ifaaddr, struct sockaddr *Gate, unsigned int ifscope) argument
[all...]
H A Dif.c866 ifa_ifwithaddr_scoped(const struct sockaddr *addr, unsigned int ifscope) argument
871 if (ifscope == IFSCOPE_NONE)
875 if (ifscope > (unsigned int)if_index) {
880 ifp = ifindex2ifnet[ifscope];
929 ifa_ifwithnet_scoped(const struct sockaddr *addr, unsigned int ifscope) argument
931 return (ifa_ifwithnet_common(addr, ifscope));
939 ifa_ifwithnet_common(const struct sockaddr *addr, unsigned int ifscope) argument
954 ifscope = IFSCOPE_NONE;
1023 if (ifscope != IFSCOPE_NONE &&
1024 ifp->if_index != ifscope) {
[all...]
/darwin-on-arm/xnu/bsd/netinet6/
H A Din6_src.c203 struct ifnet **ifpp, struct in6_addr *src_storage, unsigned int ifscope,
216 struct ip6_out_args ip6oa = { ifscope, { 0 }, IP6OAF_SELECT_SRCIF };
585 unsigned int ifscope = ip6oa->ip6oa_boundif; local
631 * If Scoped Routing is disabled, ignore the given ifscope.
635 if (!ip6_doscopedroute && ifscope != IFSCOPE_NONE)
636 ifscope = IFSCOPE_NONE;
644 ifscope = pi->ipi6_ifindex;
648 ((ifscope <= if_index) ? ifindex2ifnet[ifscope] : NULL);
683 if (ip6_doscopedroute && ifscope
201 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 Dip6_forward.c138 unsigned int ifscope = IFSCOPE_NONE; local
147 ifscope = pf_mtag->pftag_rtableid;
154 if (ifscope != IFSCOPE_NONE && (rt = ip6forward_rt->ro_rt) != NULL) {
156 if (rt->rt_ifp->if_index != ifscope) {
223 proxy = nd6_prproxy_isours(m, ip6, ip6forward_rt, ifscope);
399 RTF_PRCLONING, ifscope);
433 RTF_PRCLONING, ifscope);
H A Dnd6_rtr.c762 unsigned int ifscope; local
791 ifscope = scoped ? new->ifp->if_index : IFSCOPE_NONE;
795 RTF_GATEWAY, &newrt, ifscope);
803 if (ifscope != IFSCOPE_NONE)
810 (ifscope != IFSCOPE_NONE), err));
848 unsigned int ifscope; local
874 ifscope = (dr->stateflags & NDDRF_IFSCOPE) ?
877 ifscope = IFSCOPE_NONE;
881 (struct sockaddr *)&mask, RTF_GATEWAY, &oldrt, ifscope);
892 if_name(dr->ifp) : "ANY", (ifscope !
3374 nd6_prefix_onlink_common(struct nd_prefix *pr, boolean_t force_scoped, unsigned int ifscope) argument
3590 nd6_prefix_onlink_scoped(struct nd_prefix *pr, unsigned int ifscope) argument
3603 unsigned int ifscope; local
[all...]
H A Din6_pcb.c405 unsigned int ifscope; local
429 ifscope = (inp->inp_flags & INP_BOUND_IF) ?
442 &inp->in6p_route, outif, &src_storage, ifscope, &error);
H A Draw_ip6.c859 unsigned int ifscope; local
877 ifscope = (inp->inp_flags & INP_BOUND_IF) ?
882 NULL, &storage, ifscope, &error);
H A Dnd6_prproxy.c521 unsigned int ifscope)
556 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 Dnd6.c1342 unsigned int ifscope; local
1349 ifscope = (ifp != NULL) ? ifp->if_index : IFSCOPE_NONE;
1353 create, 0, ifscope);
1356 create, 0, ifscope);
1410 ~RTF_CLONING, &rt, ifscope)) != 0) {
H A Din6_mcast.c1869 unsigned int ifscope = IFSCOPE_NONE; local
1877 ifscope = in6p->inp_boundifp->if_index;
1882 rtalloc_scoped_ign((struct route *)&ro6, 0, ifscope);
/darwin-on-arm/xnu/bsd/netinet/
H A Dip_output.c305 unsigned int ifscope = IFSCOPE_NONE; local
392 * In the forwarding case, only the ifscope value is used,
402 ifscope = ipoa->ipoa_boundif;
404 (IPPOF_BOUND_IF | (ifscope << IPPOF_SHIFT_IFSCOPE));
412 ifscope = IFSCOPE_NONE;
630 ifa = in_selectsrcif(ip, ro, ifscope);
653 srcbound) && ifscope != lo_ifp->if_index) {
673 if (ifscope == IFSCOPE_NONE)
674 ifscope = ifa->ifa_ifp->if_index;
714 * Loosen the route lookup criteria if the ifscope
2396 unsigned int ifscope; local
3101 in_selectsrcif(struct ip *ip, struct route *ro, unsigned int ifscope) argument
[all...]
H A Din_pcb.c729 unsigned int ifscope = IFSCOPE_NONE; local
739 ifscope = (*outif)->if_index;
741 ifscope = inp->inp_boundifp->if_index;
772 rtalloc_scoped(ro, ifscope);
816 ifscope));
1964 inp_bindif(struct inpcb *inp, unsigned int ifscope) argument
1969 if ((ifscope > (unsigned)if_index) || (ifscope != IFSCOPE_NONE &&
1970 (ifp = ifindex2ifnet[ifscope]) == NULL)) {
1976 VERIFY(ifp != NULL || ifscope
[all...]
H A Dtcp_subr.c578 unsigned int ifscope,
768 struct ip6_out_args ip6oa = { ifscope, { 0 },
771 if (ifscope != IFSCOPE_NONE)
790 struct ip_out_args ipoa = { ifscope, { 0 },
793 if (ifscope != IFSCOPE_NONE)
2136 unsigned int ifscope; local
2150 ifscope = (inp->inp_flags & INP_BOUND_IF) ?
2155 rtalloc_scoped(ro, ifscope);
2219 unsigned int ifscope; local
2233 ifscope
570 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 Dtcp_timer.c837 unsigned int ifscope, nocell = 0; local
840 ifscope = tp->t_inpcb->inp_boundifp->if_index;
842 ifscope = IFSCOPE_NONE;
853 tp->rcv_nxt, tp->snd_una - 1, 0, ifscope,
H A Din_arp.c811 route_t *route, unsigned int ifscope)
828 ifscope = IFSCOPE_NONE;
830 rt = rtalloc1_scoped((struct sockaddr*)&sin, create, 0, ifscope);
851 ifscope, inet_ntop(AF_INET, addr, tmp,
810 arp_lookup_route(const struct in_addr *addr, int create, int proxy, route_t *route, unsigned int ifscope) argument
H A Dtcp_input.c1111 unsigned int ifscope, nocell = 0; local
1420 ifscope = m->m_pkthdr.rcvif->if_index;
1422 ifscope = IFSCOPE_NONE;
1492 ifscope = inp->inp_boundifp->if_index;
2125 tcp_dooptions(tp, optp, optlen, th, &to, ifscope);
2140 tcp_mss(tp, to.to_mss, ifscope);
2546 tcp_dooptions(tp, optp, optlen, th, &to, ifscope);
3969 TH_RST, ifscope, nocell);
3975 (tcp_seq)0, TH_RST|TH_ACK, ifscope, nocell);
H A Din_mcast.c2001 unsigned int ifscope = IFSCOPE_NONE; local
2004 ifscope = inp->inp_boundifp->if_index;
2008 rtalloc_scoped_ign(&ro, 0, ifscope);
/darwin-on-arm/xnu/bsd/kern/
H A Dnetboot.c534 struct in_addr m, uint32_t more_flags, unsigned int ifscope)
563 (struct sockaddr *)&gw, (struct sockaddr *)&mask, flags, NULL, ifscope);
582 host_route_delete(struct in_addr host, unsigned int ifscope) argument
586 return (route_cmd(RTM_DELETE, host, zeroes, zeroes, RTF_HOST, ifscope));
533 route_cmd(int cmd, struct in_addr d, struct in_addr g, struct in_addr m, uint32_t more_flags, unsigned int ifscope) argument

Completed in 202 milliseconds