Home
last modified time | relevance | path

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

12

/xnu-11215.1.10/bsd/net/
H A Droute.c392 static unsigned int primary_ifscope = IFSCOPE_NONE;
393 static unsigned int primary6_ifscope = IFSCOPE_NONE;
587 unsigned int ifscope = (pifscope != NULL) ? *pifscope : IFSCOPE_NONE; in sa_copy()
596 if (pifscope == NULL || ifscope != IFSCOPE_NONE) { in sa_copy()
612 if (eifscope != IFSCOPE_NONE && ifscope == IFSCOPE_NONE) { in sa_copy()
615 if (ifscope != IFSCOPE_NONE) { in sa_copy()
626 if (ifscope != IFSCOPE_NONE && eifscope != ifscope) { in sa_copy()
629 } else if (pifscope == NULL || ifscope != IFSCOPE_NONE) { in sa_copy()
740 SINIFSCOPE(sa)->sin_scope_id != IFSCOPE_NONE) { in rtm_scrub()
743 SIN6IFSCOPE(sa)->sin6_scope_id != IFSCOPE_NONE) { in rtm_scrub()
[all …]
H A Droute_private.h340 #define IFSCOPE_NONE 0 macro
341 #define IFSCOPE_UNKNOWN IFSCOPE_NONE
H A Dnecp_client.c1246 if (if_idx != IFSCOPE_NONE && if_idx <= (uint32_t)if_index) { in necp_client_collect_interface_stats()
2047 if (interface_index != IFSCOPE_NONE && interface_index <= (u_int32_t)if_index) { in necp_client_add_nexus_flow_if_needed()
2083 interface_index == IFSCOPE_NONE) { in necp_client_add_interface_flow_if_needed()
2108 if ((interface_index == IFSCOPE_NONE && !network_provider) || in necp_client_add_interface_option_if_needed()
2221 if (flow->interface_index != IFSCOPE_NONE) { in necp_client_flow_is_viable()
2225 if (ifp && ifp->if_delegated.ifp != IFSCOPE_NONE) { in necp_client_flow_is_viable()
2233 result.routed_interface_index != IFSCOPE_NONE && in necp_client_flow_is_viable()
3434 …new_registration->last_interface_details = combine_interface_details(IFSCOPE_NONE, NSTAT_IFNET_IS_… in necp_client_create_flow_registration()
3941 flow->interface_index = IFSCOPE_NONE; in necp_client_assign_from_socket()
4381 parsed_parameters->required_interface_index != IFSCOPE_NONE && in necp_update_parsed_parameters()
[all …]
H A Drtsock.c335 unsigned int ifscope = IFSCOPE_NONE; in route_output()
482 if (ifscope != IFSCOPE_NONE) { in route_output()
500 ifscope != IFSCOPE_NONE && proc_getpid(current_proc()) != 0) { in route_output()
532 sin_set_ifscope(info.rti_info[RTAX_DST], IFSCOPE_NONE); in route_output()
536 sin_set_ifscope(info.rti_info[RTAX_GATEWAY], IFSCOPE_NONE); in route_output()
H A Dif.c967 return ifa_foraddr_scoped(addr, IFSCOPE_NONE); in ifa_foraddr()
984 (scope == IFSCOPE_NONE || ia->ia_ifp->if_index == scope)) { in ifa_foraddr_scoped()
1001 return ifa_foraddr6_scoped(addr6, IFSCOPE_NONE); in ifa_foraddr6()
1013 (scope == IFSCOPE_NONE || ia->ia_ifp->if_index == scope)) { in ifa_foraddr6_scoped()
1175 if (ifscope == IFSCOPE_NONE) { in ifa_ifwithdstaddr_scoped()
1198 if (ifscope == IFSCOPE_NONE) { in ifa_ifwithaddr_scoped_locked()
1264 return ifa_ifwithnet_common(addr, IFSCOPE_NONE); in ifa_ifwithnet()
1288 ifscope = IFSCOPE_NONE; in ifa_ifwithnet_common()
1312 VERIFY(ifscope != IFSCOPE_NONE); in ifa_ifwithnet_common()
1336 if (ifscope != IFSCOPE_NONE && in ifa_ifwithnet_common()
[all …]
H A Dif_stf.c520 ipoa.ipoa_boundif = IFSCOPE_NONE; in stf_pre_output()
/xnu-11215.1.10/bsd/netinet6/
H A Draw_ip6.c387 uint32_t sifscope = IFSCOPE_NONE, difscope = IFSCOPE_NONE; in rip6_output()
460 ip6oa.ip6oa_boundif = IFSCOPE_NONE; in rip6_output()
661 if (IN6_IS_SCOPE_EMBED(in6a) && sifscope == IFSCOPE_NONE) { in rip6_output()
1059 inp->inp_fifscope = IFSCOPE_NONE; in rip6_disconnect()
1071 uint32_t ifscope = IFSCOPE_NONE; in rip6_bind()
1179 inp->inp_boundifp->if_index : IFSCOPE_NONE; in rip6_connect()
1192 if (IN6_IS_SCOPE_EMBED(&addr->sin6_addr) && inp->inp_lifscope == IFSCOPE_NONE) { in rip6_connect()
H A Dudp6_output.c183 uint32_t lifscope = IFSCOPE_NONE, fifscope = IFSCOPE_NONE; in udp6_output()
187 ip6oa.ip6oa_boundif = IFSCOPE_NONE; in udp6_output()
499 IN6_IS_SCOPE_EMBED(faddr) ? fifscope : IFSCOPE_NONE; in udp6_output()
H A Dnd6_rtr.c285 …edded_scope && IN6_IS_SCOPE_EMBED(&src_sa6.sin6_addr)) ? ip6_input_getsrcifscope(m) : IFSCOPE_NONE; in nd6_rs_input()
992 ifscope = scoped ? new->ifp->if_index : IFSCOPE_NONE; in defrouter_addreq()
1036 if (ifscope != IFSCOPE_NONE) { in defrouter_addreq()
1043 (ifscope != IFSCOPE_NONE), err); in defrouter_addreq()
1153 dr->ifp->if_index : IFSCOPE_NONE; in defrouter_delreq()
1155 ifscope = IFSCOPE_NONE; in defrouter_delreq()
1171 if_name(dr->ifp) : "ANY", (ifscope != IFSCOPE_NONE), err); in defrouter_delreq()
1177 if (ifscope != IFSCOPE_NONE) { in defrouter_delreq()
2445 err = nd6_prefix_onlink_scoped(tmp_pr, IFSCOPE_NONE); in prelist_remove()
3610 err = nd6_prefix_onlink_scoped(pr, IFSCOPE_NONE); in nd6_prefix_sync()
[all …]
H A Din6_src.c790 if (ip6oa.ip6oa_boundif != IFSCOPE_NONE) { in in6_selectsrc()
946 ip6oa->ip6oa_boundif : IFSCOPE_NONE); in selectroute()
984 if (ifscope != IFSCOPE_NONE && in selectroute()
1066 if (ifscope == IFSCOPE_NONE) { in selectroute()
1097 if (ifscope != IFSCOPE_NONE || (ro != NULL && ro->ro_rt != NULL)) { in selectroute()
1112 if (scope == IFSCOPE_NONE) { in selectroute()
1165 if (ifa == NULL && ifscope == IFSCOPE_NONE) { in selectroute()
1743 inp->inp_lifscope = IFSCOPE_NONE; in in6_pcbsetport()
1814 inp->inp_lifscope = IFSCOPE_NONE; in in6_pcbsetport()
H A Dip6_forward.c116 if (pf_mtag->pftag_rtableid != IFSCOPE_NONE) { in adjust_scope_and_pktlen()
161 unsigned int ifscope = IFSCOPE_NONE; in ip6_forward()
191 if (ifscope != IFSCOPE_NONE && (rt = ip6forward_rt->ro_rt) != NULL) { in ip6_forward()
H A Dicmp6.c2145 …sin6_scope_id = IN6_IS_SCOPE_EMBED(&rip6src.sin6_addr) ? ip6_input_getsrcifscope(m) : IFSCOPE_NONE; in icmp6_rip6_input()
2254 uint32_t sifscope = IFSCOPE_NONE; in icmp6_reflect()
2255 uint32_t fifscope = IFSCOPE_NONE; in icmp6_reflect()
2260 ip6oa.ip6oa_boundif = IFSCOPE_NONE; in icmp6_reflect()
2324 fifscope = IN6_IS_SCOPE_EMBED(&ip6->ip6_src) ? fifscope : IFSCOPE_NONE; in icmp6_reflect()
2325 sifscope = IN6_IS_SCOPE_EMBED(&ip6->ip6_dst) ? sifscope : IFSCOPE_NONE; in icmp6_reflect()
2530 uint32_t src_ifscope = IFSCOPE_NONE, redtgt_ifscope = IFSCOPE_NONE, reddst_ifscope = IFSCOPE_NONE; in icmp6_redirect_input()
2764 ip6oa.ip6oa_boundif = IFSCOPE_NONE; in icmp6_redirect_output()
H A Dip6_output.c429 ip6oa->ip6oa_boundif != IFSCOPE_NONE) { in ip6_output_list()
458 ip6oa->ip6oa_boundif != IFSCOPE_NONE) { in ip6_output_list()
469 ip6oa->ip6oa_boundif = IFSCOPE_NONE; in ip6_output_list()
1136 ip6oa->ip6oa_boundif = IFSCOPE_NONE; in ip6_output_list()
1140 if (opt->ip6po_pktinfo->ipi6_ifindex != IFSCOPE_NONE) { in ip6_output_list()
1141 opt->ip6po_pktinfo->ipi6_ifindex = IFSCOPE_NONE; in ip6_output_list()
1164 …_embedded_scope && IN6_IS_SCOPE_EMBED(&ip6->ip6_src)) ? ip6_output_getsrcifscope(m) : IFSCOPE_NONE; in ip6_output_list()
1170 …_embedded_scope && IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) ? ip6_output_getdstifscope(m) : IFSCOPE_NONE; in ip6_output_list()
1274 …edded_scope && IN6_IS_SCOPE_EMBED(&src_sa.sin6_addr)) ? ip6_output_getsrcifscope(m) : IFSCOPE_NONE; in ip6_output_list()
1289 …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.c196 uint32_t lifscope = IFSCOPE_NONE; in in6_pcbbind()
587 inp->inp_lifscope = IFSCOPE_NONE; in in6_pcbbind()
600 inp->inp_lifscope = IFSCOPE_NONE; in in6_pcbbind()
668 inp->inp_boundifp->if_index : IFSCOPE_NONE; in in6_pcbladdr()
H A Dip6_input.c607 uint32_t dst_ifscope = IFSCOPE_NONE; in ip6_input_check_interface()
677 RTF_PRCLONING, IFSCOPE_NONE); in ip6_input_check_interface()
1279 ours = nd6_prproxy_isours(m, ip6, NULL, IFSCOPE_NONE); in ip6_input()
1550 uint32_t src_ifscope = IFSCOPE_NONE; in ip6_input_getsrcifscope()
1564 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.c963 error = in_pcbconnect(inp, SA(&sin), p, IFSCOPE_NONE, NULL); in udp6_connect()
1095 inp->inp_lifscope = IFSCOPE_NONE; in udp6_disconnect()
/xnu-11215.1.10/bsd/netinet/
H A Dmptcp.c1307 VERIFY(ifindex != IFSCOPE_NONE); in mptcp_session_necp_cb()
1336 ifp && ifp->if_delegated.ifp ? ifp->if_delegated.ifp->if_index : IFSCOPE_NONE, in mptcp_session_necp_cb()
1359 if (mpte->mpte_itfinfo[i].ifindex == IFSCOPE_NONE) { in mptcp_session_necp_cb()
1497 if (ifindex == IFSCOPE_NONE) { in mptcp_set_restrictions()
1508 info->ifindex = IFSCOPE_NONE; in mptcp_set_restrictions()
1513 info->ifindex = IFSCOPE_NONE; in mptcp_set_restrictions()
1518 info->ifindex = IFSCOPE_NONE; in mptcp_set_restrictions()
H A Dip_output.c308 unsigned int ifscope = IFSCOPE_NONE; in ip_output_list()
423 ipoa->ipoa_boundif != IFSCOPE_NONE) { in ip_output_list()
446 ipoa->ipoa_boundif != IFSCOPE_NONE) { in ip_output_list()
460 ifscope = IFSCOPE_NONE; in ip_output_list()
462 ipoa->ipoa_boundif = IFSCOPE_NONE; in ip_output_list()
756 if (ifscope == IFSCOPE_NONE) { in ip_output_list()
3129 if (ifscope != IFSCOPE_NONE || ro->ro_rt != NULL) { in in_selectsrcif()
3141 if (scope == IFSCOPE_NONE) { in in_selectsrcif()
3163 ifscope = IFSCOPE_NONE; in in_selectsrcif()
3191 if (ifa == NULL && ifscope == IFSCOPE_NONE) { in in_selectsrcif()
[all …]
H A Dkpi_ipfilter.c424 ipoa.ipoa_boundif = IFSCOPE_NONE; in ipf_injectv4_out()
513 ip6oa.ip6oa_boundif = IFSCOPE_NONE; in ipf_injectv6_out()
H A Dudp_usrreq.c1564 ipoa.ipoa_boundif = IFSCOPE_NONE; in udp_output()
1653 if (ipoa.ipoa_boundif == IFSCOPE_NONE && in udp_output()
1737 (ipoa.ipoa_boundif != IFSCOPE_NONE && pktinfo)) { in udp_output()
1798 if (outif != NULL && ipoa.ipoa_boundif != IFSCOPE_NONE) { in udp_output()
1825 ipoa.ipoa_boundif != IFSCOPE_NONE) { in udp_output()
2041 if (ipoa.ipoa_boundif != IFSCOPE_NONE) { in udp_output()
2354 error = in_pcbconnect(inp, nam, p, IFSCOPE_NONE, NULL); in udp_connect()
2401 if (ifscope != IFSCOPE_NONE && in udp_connectx_common()
H A Dtcp_usrreq.c440 tcp_mss(tp, -1, IFSCOPE_NONE); in tcp_connect_complete()
672 if (ifscope != IFSCOPE_NONE && in tcp_usr_connectx_common()
1047 tcp_mss(tp, -1, IFSCOPE_NONE); in tcp_send_implied_connect()
1463 error = in_pcbladdr(inp, nam, &laddr, IFSCOPE_NONE, &outif, 0); in tcp_connect()
1608 uint32_t lifscope = IFSCOPE_NONE; in tcp6_connect()
1611 } else if (sin6->sin6_scope_id != IFSCOPE_NONE) { in tcp6_connect()
H A Din_gif.c113 ipoa.ipoa_boundif = IFSCOPE_NONE; in in_gif_output()
H A Dtcp_subr.c771 uint32_t sifscope = IFSCOPE_NONE, fifscope = IFSCOPE_NONE; in tcp_respond()
958 if (tra->ifscope != IFSCOPE_NONE) { in tcp_respond()
1026 if (tra->ifscope != IFSCOPE_NONE) { in tcp_respond()
2327 u_short ifscope = IFSCOPE_NONE; in tcp_handle_msgsize()
2372 rt->rt_ifp->if_index : IFSCOPE_NONE; in tcp_handle_msgsize()
2375 inp->inp_last_outifp->if_index : IFSCOPE_NONE; in tcp_handle_msgsize()
2852 rt = tcp_rtlookup6(inp, IFSCOPE_NONE); in tcp_mtudisc()
2854 rt = tcp_rtlookup(inp, IFSCOPE_NONE); in tcp_mtudisc()
/xnu-11215.1.10/bsd/kern/
H A Dnetboot.c525 return route_cmd(RTM_ADD, zeroes, router, zeroes, flags, IFSCOPE_NONE); in default_route_add()

12