Home
last modified time | relevance | path

Searched refs:IFSCOPE_NONE (Results 1 – 25 of 48) sorted by relevance

12

/xnu-10002.81.5/bsd/net/
H A Droute.c380 static unsigned int primary_ifscope = IFSCOPE_NONE;
381 static unsigned int primary6_ifscope = IFSCOPE_NONE;
577 unsigned int ifscope = (pifscope != NULL) ? *pifscope : IFSCOPE_NONE; in sa_copy()
586 if (pifscope == NULL || ifscope != IFSCOPE_NONE) { in sa_copy()
602 if (eifscope != IFSCOPE_NONE && ifscope == IFSCOPE_NONE) { in sa_copy()
605 if (ifscope != IFSCOPE_NONE) { in sa_copy()
616 if (ifscope != IFSCOPE_NONE && eifscope != ifscope) { in sa_copy()
619 } else if (pifscope == NULL || ifscope != IFSCOPE_NONE) { in sa_copy()
729 SINIFSCOPE(sa)->sin_scope_id != IFSCOPE_NONE) { in rtm_scrub()
732 SIN6IFSCOPE(sa)->sin6_scope_id != IFSCOPE_NONE) { in rtm_scrub()
[all …]
H A Droute_private.h302 #define IFSCOPE_NONE 0 macro
303 #define IFSCOPE_UNKNOWN IFSCOPE_NONE
H A Dnecp_client.c1143 if (if_idx != IFSCOPE_NONE && if_idx <= (uint32_t)if_index) { in necp_client_collect_interface_stats()
1944 if (interface_index != IFSCOPE_NONE && interface_index <= (u_int32_t)if_index) { in necp_client_add_nexus_flow_if_needed()
1980 interface_index == IFSCOPE_NONE) { in necp_client_add_interface_flow_if_needed()
2005 if ((interface_index == IFSCOPE_NONE && !network_provider) || in necp_client_add_interface_option_if_needed()
2118 if (flow->interface_index != IFSCOPE_NONE) { in necp_client_flow_is_viable()
2122 if (ifp && ifp->if_delegated.ifp != IFSCOPE_NONE) { in necp_client_flow_is_viable()
2130 result.routed_interface_index != IFSCOPE_NONE && in necp_client_flow_is_viable()
3331 …new_registration->last_interface_details = combine_interface_details(IFSCOPE_NONE, NSTAT_IFNET_IS_… in necp_client_create_flow_registration()
3840 flow->interface_index = IFSCOPE_NONE; in necp_client_assign_from_socket()
4277 parsed_parameters->required_interface_index != IFSCOPE_NONE && in necp_update_parsed_parameters()
[all …]
H A Dif.c930 return ifa_foraddr_scoped(addr, IFSCOPE_NONE); in ifa_foraddr()
947 (scope == IFSCOPE_NONE || ia->ia_ifp->if_index == scope)) { in ifa_foraddr_scoped()
964 return ifa_foraddr6_scoped(addr6, IFSCOPE_NONE); in ifa_foraddr6()
976 (scope == IFSCOPE_NONE || ia->ia_ifp->if_index == scope)) { in ifa_foraddr6_scoped()
1138 if (ifscope == IFSCOPE_NONE) { in ifa_ifwithdstaddr_scoped()
1161 if (ifscope == IFSCOPE_NONE) { in ifa_ifwithaddr_scoped_locked()
1227 return ifa_ifwithnet_common(addr, IFSCOPE_NONE); in ifa_ifwithnet()
1251 ifscope = IFSCOPE_NONE; in ifa_ifwithnet_common()
1275 VERIFY(ifscope != IFSCOPE_NONE); in ifa_ifwithnet_common()
1299 if (ifscope != IFSCOPE_NONE && in ifa_ifwithnet_common()
[all …]
H A Drtsock.c317 unsigned int ifscope = IFSCOPE_NONE; in route_output()
450 if (ifscope != IFSCOPE_NONE) { in route_output()
468 ifscope != IFSCOPE_NONE && proc_getpid(current_proc()) != 0) { in route_output()
500 sin_set_ifscope(info.rti_info[RTAX_DST], IFSCOPE_NONE); in route_output()
504 sin_set_ifscope(info.rti_info[RTAX_GATEWAY], IFSCOPE_NONE); in route_output()
H A Dif_stf.c517 ipoa.ipoa_boundif = IFSCOPE_NONE; in stf_pre_output()
/xnu-10002.81.5/bsd/netinet6/
H A Draw_ip6.c386 uint32_t sifscope = IFSCOPE_NONE, difscope = IFSCOPE_NONE; in rip6_output()
457 ip6oa.ip6oa_boundif = IFSCOPE_NONE; in rip6_output()
657 if (IN6_IS_SCOPE_EMBED(in6a) && sifscope == IFSCOPE_NONE) { in rip6_output()
1048 inp->inp_fifscope = IFSCOPE_NONE; in rip6_disconnect()
1060 uint32_t ifscope = IFSCOPE_NONE; in rip6_bind()
1168 inp->inp_boundifp->if_index : IFSCOPE_NONE; in rip6_connect()
1181 if (IN6_IS_SCOPE_EMBED(&addr->sin6_addr) && inp->inp_lifscope == IFSCOPE_NONE) { in rip6_connect()
H A Dudp6_output.c180 uint32_t lifscope = IFSCOPE_NONE, fifscope = IFSCOPE_NONE; in udp6_output()
183 ip6oa.ip6oa_boundif = IFSCOPE_NONE; in udp6_output()
488 IN6_IS_SCOPE_EMBED(faddr) ? fifscope : IFSCOPE_NONE; in udp6_output()
H A Dnd6_rtr.c282 …edded_scope && IN6_IS_SCOPE_EMBED(&src_sa6.sin6_addr)) ? ip6_input_getsrcifscope(m) : IFSCOPE_NONE; in nd6_rs_input()
972 ifscope = scoped ? new->ifp->if_index : IFSCOPE_NONE; in defrouter_addreq()
1017 if (ifscope != IFSCOPE_NONE) { in defrouter_addreq()
1024 (ifscope != IFSCOPE_NONE), err); in defrouter_addreq()
1138 dr->ifp->if_index : IFSCOPE_NONE; in defrouter_delreq()
1140 ifscope = IFSCOPE_NONE; in defrouter_delreq()
1157 if_name(dr->ifp) : "ANY", (ifscope != IFSCOPE_NONE), err); in defrouter_delreq()
1163 if (ifscope != IFSCOPE_NONE) { in defrouter_delreq()
2416 err = nd6_prefix_onlink_scoped(tmp_pr, IFSCOPE_NONE); in prelist_remove()
3580 err = nd6_prefix_onlink_scoped(pr, IFSCOPE_NONE); in nd6_prefix_sync()
[all …]
H A Dip6_forward.c115 if (pf_mtag->pftag_rtableid != IFSCOPE_NONE) { in adjust_scope_and_pktlen()
158 unsigned int ifscope = IFSCOPE_NONE; in ip6_forward()
188 if (ifscope != IFSCOPE_NONE && (rt = ip6forward_rt->ro_rt) != NULL) { in ip6_forward()
H A Din6_src.c792 if (ip6oa.ip6oa_boundif != IFSCOPE_NONE) { in in6_selectsrc()
949 ip6oa->ip6oa_boundif : IFSCOPE_NONE); in selectroute()
987 if (ifscope != IFSCOPE_NONE && in selectroute()
1069 if (ifscope == IFSCOPE_NONE) { in selectroute()
1100 if (ifscope != IFSCOPE_NONE || (ro != NULL && ro->ro_rt != NULL)) { in selectroute()
1115 if (scope == IFSCOPE_NONE) { in selectroute()
1168 if (ifa == NULL && ifscope == IFSCOPE_NONE) { in selectroute()
1745 inp->inp_lifscope = IFSCOPE_NONE; in in6_pcbsetport()
1816 inp->inp_lifscope = IFSCOPE_NONE; in in6_pcbsetport()
H A Dicmp6.c2144 …sin6_scope_id = IN6_IS_SCOPE_EMBED(&rip6src.sin6_addr) ? ip6_input_getsrcifscope(m) : IFSCOPE_NONE; in icmp6_rip6_input()
2252 uint32_t sifscope = IFSCOPE_NONE; in icmp6_reflect()
2253 uint32_t fifscope = IFSCOPE_NONE; in icmp6_reflect()
2258 ip6oa.ip6oa_boundif = IFSCOPE_NONE; in icmp6_reflect()
2322 fifscope = IN6_IS_SCOPE_EMBED(&ip6->ip6_src) ? fifscope : IFSCOPE_NONE; in icmp6_reflect()
2323 sifscope = IN6_IS_SCOPE_EMBED(&ip6->ip6_dst) ? sifscope : IFSCOPE_NONE; in icmp6_reflect()
2529 uint32_t src_ifscope = IFSCOPE_NONE, redtgt_ifscope = IFSCOPE_NONE, reddst_ifscope = IFSCOPE_NONE; in icmp6_redirect_input()
2766 ip6oa.ip6oa_boundif = IFSCOPE_NONE; in icmp6_redirect_output()
H A Dip6_output.c420 ip6oa->ip6oa_boundif != IFSCOPE_NONE) { in ip6_output_list()
448 ip6oa->ip6oa_boundif != IFSCOPE_NONE) { in ip6_output_list()
459 ip6oa->ip6oa_boundif = IFSCOPE_NONE; in ip6_output_list()
1120 ip6oa->ip6oa_boundif = IFSCOPE_NONE; in ip6_output_list()
1124 if (opt->ip6po_pktinfo->ipi6_ifindex != IFSCOPE_NONE) { in ip6_output_list()
1125 opt->ip6po_pktinfo->ipi6_ifindex = IFSCOPE_NONE; in ip6_output_list()
1148 …_embedded_scope && IN6_IS_SCOPE_EMBED(&ip6->ip6_src)) ? ip6_output_getsrcifscope(m) : IFSCOPE_NONE; in ip6_output_list()
1154 …_embedded_scope && IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) ? ip6_output_getdstifscope(m) : IFSCOPE_NONE; in ip6_output_list()
1255 …edded_scope && IN6_IS_SCOPE_EMBED(&src_sa.sin6_addr)) ? ip6_output_getsrcifscope(m) : IFSCOPE_NONE; in ip6_output_list()
1270 …dded_scope && IN6_IS_SCOPE_EMBED(&dst_sa.sin6_addr)) ? ip6_output_getdstifscope(m) : IFSCOPE_NONE; in ip6_output_list()
[all …]
H A Din6_pcb.c194 uint32_t lifscope = IFSCOPE_NONE; in in6_pcbbind()
584 inp->inp_lifscope = IFSCOPE_NONE; in in6_pcbbind()
597 inp->inp_lifscope = IFSCOPE_NONE; in in6_pcbbind()
664 inp->inp_boundifp->if_index : IFSCOPE_NONE; in in6_pcbladdr()
H A Dip6_input.c608 uint32_t dst_ifscope = IFSCOPE_NONE; in ip6_input_check_interface()
678 RTF_PRCLONING, IFSCOPE_NONE); in ip6_input_check_interface()
1266 ours = nd6_prproxy_isours(m, ip6, NULL, IFSCOPE_NONE); in ip6_input()
1531 uint32_t src_ifscope = IFSCOPE_NONE; in ip6_input_getsrcifscope()
1545 uint32_t dst_ifscope = IFSCOPE_NONE; in ip6_input_getdstifscope()
H A Dfrag6.c492 …->ip6q_dst_ifscope = IN6_IS_SCOPE_EMBED(&q6->ip6q_dst) ? ip6_input_getdstifscope(m) : IFSCOPE_NONE; in frag6_input()
493 …->ip6q_src_ifscope = IN6_IS_SCOPE_EMBED(&q6->ip6q_src) ? ip6_input_getsrcifscope(m) : IFSCOPE_NONE; in frag6_input()
H A Dudp6_usrreq.c951 p, IFSCOPE_NONE, NULL); in udp6_connect()
1083 inp->inp_lifscope = IFSCOPE_NONE; in udp6_disconnect()
/xnu-10002.81.5/bsd/netinet/
H A Dmptcp.c1308 VERIFY(ifindex != IFSCOPE_NONE); in mptcp_session_necp_cb()
1337 ifp && ifp->if_delegated.ifp ? ifp->if_delegated.ifp->if_index : IFSCOPE_NONE, in mptcp_session_necp_cb()
1360 if (mpte->mpte_itfinfo[i].ifindex == IFSCOPE_NONE) { in mptcp_session_necp_cb()
1498 if (ifindex == IFSCOPE_NONE) { in mptcp_set_restrictions()
1509 info->ifindex = IFSCOPE_NONE; in mptcp_set_restrictions()
1514 info->ifindex = IFSCOPE_NONE; in mptcp_set_restrictions()
1519 info->ifindex = IFSCOPE_NONE; in mptcp_set_restrictions()
H A Dip_output.c305 unsigned int ifscope = IFSCOPE_NONE; in ip_output_list()
419 ipoa->ipoa_boundif != IFSCOPE_NONE) { in ip_output_list()
441 ipoa->ipoa_boundif != IFSCOPE_NONE) { in ip_output_list()
455 ifscope = IFSCOPE_NONE; in ip_output_list()
457 ipoa->ipoa_boundif = IFSCOPE_NONE; in ip_output_list()
744 if (ifscope == IFSCOPE_NONE) { in ip_output_list()
3059 if (ifscope != IFSCOPE_NONE || ro->ro_rt != NULL) { in in_selectsrcif()
3071 if (scope == IFSCOPE_NONE) { in in_selectsrcif()
3093 ifscope = IFSCOPE_NONE; in in_selectsrcif()
3121 if (ifa == NULL && ifscope == IFSCOPE_NONE) { in in_selectsrcif()
[all …]
H A Dudp_usrreq.c620 uh->uh_sport, IFSCOPE_NONE, IFSCOPE_NONE); in udp_input()
1521 ipoa.ipoa_boundif = IFSCOPE_NONE; in udp_output()
1610 if (ipoa.ipoa_boundif == IFSCOPE_NONE && in udp_output()
1694 (ipoa.ipoa_boundif != IFSCOPE_NONE && pktinfo)) { in udp_output()
1755 if (outif != NULL && ipoa.ipoa_boundif != IFSCOPE_NONE) { in udp_output()
1782 ipoa.ipoa_boundif != IFSCOPE_NONE) { in udp_output()
1999 if (ipoa.ipoa_boundif != IFSCOPE_NONE) { in udp_output()
2317 error = in_pcbconnect(inp, nam, p, IFSCOPE_NONE, NULL); in udp_connect()
2364 if (ifscope != IFSCOPE_NONE && in udp_connectx_common()
H A Dkpi_ipfilter.c418 ipoa.ipoa_boundif = IFSCOPE_NONE; in ipf_injectv4_out()
507 ip6oa.ip6oa_boundif = IFSCOPE_NONE; in ipf_injectv6_out()
H A Dtcp_usrreq.c467 tcp_mss(tp, -1, IFSCOPE_NONE); in tcp_connect_complete()
701 if (ifscope != IFSCOPE_NONE && in tcp_usr_connectx_common()
1084 tcp_mss(tp, -1, IFSCOPE_NONE); in tcp_send_implied_connect()
1500 error = in_pcbladdr(inp, nam, &laddr, IFSCOPE_NONE, &outif, 0); in tcp_connect()
1645 uint32_t lifscope = IFSCOPE_NONE; in tcp6_connect()
1648 } else if (sin6->sin6_scope_id != IFSCOPE_NONE) { in tcp6_connect()
H A Din_gif.c114 ipoa.ipoa_boundif = IFSCOPE_NONE; in in_gif_output()
H A Dtcp_subr.c753 uint32_t sifscope = IFSCOPE_NONE, fifscope = IFSCOPE_NONE; in tcp_respond()
946 if (tra->ifscope != IFSCOPE_NONE) { in tcp_respond()
1014 if (tra->ifscope != IFSCOPE_NONE) { in tcp_respond()
2316 u_short ifscope = IFSCOPE_NONE; in tcp_handle_msgsize()
2361 rt->rt_ifp->if_index : IFSCOPE_NONE; in tcp_handle_msgsize()
2364 inp->inp_last_outifp->if_index : IFSCOPE_NONE; in tcp_handle_msgsize()
2866 rt = tcp_rtlookup6(inp, IFSCOPE_NONE); in tcp_mtudisc()
2868 rt = tcp_rtlookup(inp, IFSCOPE_NONE); in tcp_mtudisc()
/xnu-10002.81.5/bsd/kern/
H A Dnetboot.c525 return route_cmd(RTM_ADD, zeroes, router, zeroes, flags, IFSCOPE_NONE); in default_route_add()

12