Home
last modified time | relevance | path

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

12

/xnu-11417.140.69/bsd/net/
H A Droute.c394 static unsigned int primary_ifscope = IFSCOPE_NONE;
395 static unsigned int primary6_ifscope = IFSCOPE_NONE;
639 unsigned int ifscope = (pifscope != NULL) ? *pifscope : IFSCOPE_NONE; in sa_copy()
648 if (pifscope == NULL || ifscope != IFSCOPE_NONE) { in sa_copy()
664 if (eifscope != IFSCOPE_NONE && ifscope == IFSCOPE_NONE) { in sa_copy()
667 if (ifscope != IFSCOPE_NONE) { in sa_copy()
678 if (ifscope != IFSCOPE_NONE && eifscope != ifscope) { in sa_copy()
681 } else if (pifscope == NULL || ifscope != IFSCOPE_NONE) { in sa_copy()
792 SINIFSCOPE(sa)->sin_scope_id != IFSCOPE_NONE) { in rtm_scrub()
795 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()
3446 …new_registration->last_interface_details = combine_interface_details(IFSCOPE_NONE, NSTAT_IFNET_IS_… in necp_client_create_flow_registration()
3953 flow->interface_index = IFSCOPE_NONE; in necp_client_assign_from_socket()
4393 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.c969 return ifa_foraddr_scoped(addr, IFSCOPE_NONE); in ifa_foraddr()
986 (scope == IFSCOPE_NONE || ia->ia_ifp->if_index == scope)) { in ifa_foraddr_scoped()
1003 return ifa_foraddr6_scoped(addr6, IFSCOPE_NONE); in ifa_foraddr6()
1015 (scope == IFSCOPE_NONE || ia->ia_ifp->if_index == scope)) { in ifa_foraddr6_scoped()
1177 if (ifscope == IFSCOPE_NONE) { in ifa_ifwithdstaddr_scoped()
1200 if (ifscope == IFSCOPE_NONE) { in ifa_ifwithaddr_scoped_locked()
1266 return ifa_ifwithnet_common(addr, IFSCOPE_NONE); in ifa_ifwithnet()
1290 ifscope = IFSCOPE_NONE; in ifa_ifwithnet_common()
1314 VERIFY(ifscope != IFSCOPE_NONE); in ifa_ifwithnet_common()
1338 if (ifscope != IFSCOPE_NONE && in ifa_ifwithnet_common()
[all …]
H A Dif_stf.c520 ipoa.ipoa_boundif = IFSCOPE_NONE; in stf_pre_output()
/xnu-11417.140.69/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()
667 if (IN6_IS_SCOPE_EMBED(in6a) && sifscope == IFSCOPE_NONE) { in rip6_output()
1065 inp->inp_fifscope = IFSCOPE_NONE; in rip6_disconnect()
1077 uint32_t ifscope = IFSCOPE_NONE; in rip6_bind()
1185 inp->inp_boundifp->if_index : IFSCOPE_NONE; in rip6_connect()
1198 if (IN6_IS_SCOPE_EMBED(&addr->sin6_addr) && inp->inp_lifscope == IFSCOPE_NONE) { in rip6_connect()
H A Dudp6_output.c184 uint32_t lifscope = IFSCOPE_NONE, fifscope = IFSCOPE_NONE; in udp6_output()
188 ip6oa.ip6oa_boundif = IFSCOPE_NONE; in udp6_output()
523 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()
3619 err = nd6_prefix_onlink_scoped(pr, IFSCOPE_NONE); in nd6_prefix_sync()
[all …]
H A Din6_src.c791 if (ip6oa.ip6oa_boundif != IFSCOPE_NONE) { in in6_selectsrc()
947 ip6oa->ip6oa_boundif : IFSCOPE_NONE); in selectroute()
985 if (ifscope != IFSCOPE_NONE && in selectroute()
1067 if (ifscope == IFSCOPE_NONE) { in selectroute()
1098 if (ifscope != IFSCOPE_NONE || (ro != NULL && ro->ro_rt != NULL)) { in selectroute()
1113 if (scope == IFSCOPE_NONE) { in selectroute()
1166 if (ifa == NULL && ifscope == IFSCOPE_NONE) { in selectroute()
1746 inp->inp_lifscope = IFSCOPE_NONE; in in6_pcbsetport()
1817 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.c440 ip6oa->ip6oa_boundif != IFSCOPE_NONE) { in ip6_output_list()
469 ip6oa->ip6oa_boundif != IFSCOPE_NONE) { in ip6_output_list()
480 ip6oa->ip6oa_boundif = IFSCOPE_NONE; in ip6_output_list()
1154 ip6oa->ip6oa_boundif = IFSCOPE_NONE; in ip6_output_list()
1158 if (opt->ip6po_pktinfo->ipi6_ifindex != IFSCOPE_NONE) { in ip6_output_list()
1159 opt->ip6po_pktinfo->ipi6_ifindex = IFSCOPE_NONE; in ip6_output_list()
1182 …_embedded_scope && IN6_IS_SCOPE_EMBED(&ip6->ip6_src)) ? ip6_output_getsrcifscope(m) : IFSCOPE_NONE; in ip6_output_list()
1188 …_embedded_scope && IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) ? ip6_output_getdstifscope(m) : IFSCOPE_NONE; in ip6_output_list()
1304 …edded_scope && IN6_IS_SCOPE_EMBED(&src_sa.sin6_addr)) ? ip6_output_getsrcifscope(m) : IFSCOPE_NONE; in ip6_output_list()
1319 …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()
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()
1280 ours = nd6_prproxy_isours(m, ip6, NULL, IFSCOPE_NONE); in ip6_input()
1551 uint32_t src_ifscope = IFSCOPE_NONE; in ip6_input_getsrcifscope()
1565 uint32_t dst_ifscope = IFSCOPE_NONE; in ip6_input_getdstifscope()
H A Dfrag6.c496 …->ip6q_dst_ifscope = IN6_IS_SCOPE_EMBED(&q6->ip6q_dst) ? ip6_input_getdstifscope(m) : IFSCOPE_NONE; in frag6_input()
497 …->ip6q_src_ifscope = IN6_IS_SCOPE_EMBED(&q6->ip6q_src) ? ip6_input_getsrcifscope(m) : IFSCOPE_NONE; in frag6_input()
H A Dudp6_usrreq.c978 error = in_pcbconnect(inp, SA(&sin), p, IFSCOPE_NONE, NULL); in udp6_connect()
1123 inp->inp_lifscope = IFSCOPE_NONE; in udp6_disconnect()
/xnu-11417.140.69/bsd/netinet/
H A Dmptcp.c1310 VERIFY(ifindex != IFSCOPE_NONE); in mptcp_session_necp_cb()
1339 ifp && ifp->if_delegated.ifp ? ifp->if_delegated.ifp->if_index : IFSCOPE_NONE, in mptcp_session_necp_cb()
1362 if (mpte->mpte_itfinfo[i].ifindex == IFSCOPE_NONE) { in mptcp_session_necp_cb()
1499 if (ifindex == IFSCOPE_NONE) { in mptcp_set_restrictions()
1510 info->ifindex = IFSCOPE_NONE; in mptcp_set_restrictions()
1515 info->ifindex = IFSCOPE_NONE; in mptcp_set_restrictions()
1520 info->ifindex = IFSCOPE_NONE; in mptcp_set_restrictions()
H A Dip_output.c309 unsigned int ifscope = IFSCOPE_NONE; in ip_output_list()
426 ipoa->ipoa_boundif != IFSCOPE_NONE) { in ip_output_list()
449 ipoa->ipoa_boundif != IFSCOPE_NONE) { in ip_output_list()
463 ifscope = IFSCOPE_NONE; in ip_output_list()
465 ipoa->ipoa_boundif = IFSCOPE_NONE; in ip_output_list()
768 if (ifscope == IFSCOPE_NONE) { in ip_output_list()
3159 if (ifscope != IFSCOPE_NONE || ro->ro_rt != NULL) { in in_selectsrcif()
3171 if (scope == IFSCOPE_NONE) { in in_selectsrcif()
3193 ifscope = IFSCOPE_NONE; in in_selectsrcif()
3221 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.c1584 ipoa.ipoa_boundif = IFSCOPE_NONE; in udp_output()
1676 if (ipoa.ipoa_boundif == IFSCOPE_NONE && in udp_output()
1764 (ipoa.ipoa_boundif != IFSCOPE_NONE && pktinfo)) { in udp_output()
1832 if (outif != NULL && ipoa.ipoa_boundif != IFSCOPE_NONE) { in udp_output()
1860 ipoa.ipoa_boundif != IFSCOPE_NONE) { in udp_output()
2084 if (ipoa.ipoa_boundif != IFSCOPE_NONE) { in udp_output()
2404 error = in_pcbconnect(inp, nam, p, IFSCOPE_NONE, NULL); in udp_connect()
2455 if (ifscope != IFSCOPE_NONE && in udp_connectx_common()
H A Dtcp_usrreq.c452 tcp_mss(tp, -1, IFSCOPE_NONE); in tcp_connect_complete()
714 if (ifscope != IFSCOPE_NONE && in tcp_usr_connectx_common()
1089 tcp_mss(tp, -1, IFSCOPE_NONE); in tcp_send_implied_connect()
1505 error = in_pcbladdr(inp, nam, &laddr, IFSCOPE_NONE, &outif, 0); in tcp_connect()
1648 uint32_t lifscope = IFSCOPE_NONE; in tcp6_connect()
1651 } 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.c778 uint32_t sifscope = IFSCOPE_NONE, fifscope = IFSCOPE_NONE; in tcp_respond()
965 if (tra->ifscope != IFSCOPE_NONE) { in tcp_respond()
1036 if (tra->ifscope != IFSCOPE_NONE) { in tcp_respond()
2336 u_short ifscope = IFSCOPE_NONE; in tcp_handle_msgsize()
2379 rt->rt_ifp->if_index : IFSCOPE_NONE; in tcp_handle_msgsize()
2382 inp->inp_last_outifp->if_index : IFSCOPE_NONE; in tcp_handle_msgsize()
2910 rt = tcp_rtlookup6(inp, IFSCOPE_NONE); in tcp_mtudisc()
2912 rt = tcp_rtlookup(inp, IFSCOPE_NONE); in tcp_mtudisc()
/xnu-11417.140.69/bsd/kern/
H A Dnetboot.c525 return route_cmd(RTM_ADD, zeroes, router, zeroes, flags, IFSCOPE_NONE); in default_route_add()

12