| /xnu-8020.140.41/bsd/net/ |
| H A D | route.c | 383 static unsigned int primary_ifscope = IFSCOPE_NONE; 384 static unsigned int primary6_ifscope = IFSCOPE_NONE; 582 unsigned int ifscope = (pifscope != NULL) ? *pifscope : IFSCOPE_NONE; in sa_copy() 591 if (pifscope == NULL || ifscope != IFSCOPE_NONE) { in sa_copy() 607 if (eifscope != IFSCOPE_NONE && ifscope == IFSCOPE_NONE) { in sa_copy() 610 if (ifscope != IFSCOPE_NONE) { in sa_copy() 621 if (ifscope != IFSCOPE_NONE && eifscope != ifscope) { in sa_copy() 624 } else if (pifscope == NULL || ifscope != IFSCOPE_NONE) { in sa_copy() 734 SINIFSCOPE(sa)->sin_scope_id != IFSCOPE_NONE) { in rtm_scrub() 737 SIN6IFSCOPE(sa)->sin6_scope_id != IFSCOPE_NONE) { in rtm_scrub() [all …]
|
| H A D | route.h | 507 #define IFSCOPE_NONE 0 macro 508 #define IFSCOPE_UNKNOWN IFSCOPE_NONE
|
| H A D | necp_client.c | 1118 if (if_idx != IFSCOPE_NONE && if_idx <= (uint32_t)if_index) { in necp_client_collect_interface_stats() 1918 if (interface_index != IFSCOPE_NONE && interface_index <= (u_int32_t)if_index) { in necp_client_add_nexus_flow_if_needed() 1960 interface_index == IFSCOPE_NONE) { in necp_client_add_interface_flow_if_needed() 1985 if ((interface_index == IFSCOPE_NONE && !network_provider) || in necp_client_add_interface_option_if_needed() 2098 if (flow->interface_index != IFSCOPE_NONE) { in necp_client_flow_is_viable() 2102 if (ifp && ifp->if_delegated.ifp != IFSCOPE_NONE) { in necp_client_flow_is_viable() 2110 result.routed_interface_index != IFSCOPE_NONE && in necp_client_flow_is_viable() 3189 …new_registration->last_interface_details = combine_interface_details(IFSCOPE_NONE, NSTAT_IFNET_IS_… in necp_client_create_flow_registration() 3704 flow->interface_index = IFSCOPE_NONE; in necp_client_assign_from_socket() 4139 parsed_parameters->required_interface_index != IFSCOPE_NONE && in necp_update_parsed_parameters() [all …]
|
| H A D | if.c | 849 return ifa_foraddr_scoped(addr, IFSCOPE_NONE); in ifa_foraddr() 866 (scope == IFSCOPE_NONE || ia->ia_ifp->if_index == scope)) { in ifa_foraddr_scoped() 883 return ifa_foraddr6_scoped(addr6, IFSCOPE_NONE); in ifa_foraddr6() 895 (scope == IFSCOPE_NONE || ia->ia_ifp->if_index == scope)) { in ifa_foraddr6_scoped() 1048 if (ifscope == IFSCOPE_NONE) { in ifa_ifwithaddr_scoped_locked() 1114 return ifa_ifwithnet_common(addr, IFSCOPE_NONE); in ifa_ifwithnet() 1138 ifscope = IFSCOPE_NONE; in ifa_ifwithnet_common() 1162 VERIFY(ifscope != IFSCOPE_NONE); in ifa_ifwithnet_common() 1186 if (ifscope != IFSCOPE_NONE && in ifa_ifwithnet_common() 2344 if (ordered_indices[order_index] == IFSCOPE_NONE || in ifnet_reset_order()
|
| H A D | if_stf.c | 517 ipoa.ipoa_boundif = IFSCOPE_NONE; in stf_pre_output()
|
| H A D | rtsock.c | 315 unsigned int ifscope = IFSCOPE_NONE; in route_output() 478 sin_set_ifscope(info.rti_info[RTAX_DST], IFSCOPE_NONE); in route_output() 482 sin_set_ifscope(info.rti_info[RTAX_GATEWAY], IFSCOPE_NONE); in route_output()
|
| /xnu-8020.140.41/bsd/netinet6/ |
| H A D | raw_ip6.c | 376 uint32_t sifscope = IFSCOPE_NONE, difscope = IFSCOPE_NONE; in rip6_output() 447 ip6oa.ip6oa_boundif = IFSCOPE_NONE; in rip6_output() 643 if (IN6_IS_SCOPE_EMBED(in6a) && sifscope == IFSCOPE_NONE) { in rip6_output() 1034 inp->inp_fifscope = IFSCOPE_NONE; in rip6_disconnect() 1046 uint32_t ifscope = IFSCOPE_NONE; in rip6_bind() 1154 inp->inp_boundifp->if_index : IFSCOPE_NONE; in rip6_connect() 1164 if (IN6_IS_SCOPE_EMBED(&addr->sin6_addr) && inp->inp_lifscope == IFSCOPE_NONE) { in rip6_connect()
|
| H A D | udp6_output.c | 182 uint32_t lifscope = IFSCOPE_NONE, fifscope = IFSCOPE_NONE; in udp6_output() 185 ip6oa.ip6oa_boundif = IFSCOPE_NONE; in udp6_output() 486 IN6_IS_SCOPE_EMBED(faddr) ? fifscope : IFSCOPE_NONE; in udp6_output()
|
| H A D | nd6_rtr.c | 285 …edded_scope && IN6_IS_SCOPE_EMBED(&src_sa6.sin6_addr)) ? ip6_input_getsrcifscope(m) : IFSCOPE_NONE; in nd6_rs_input() 968 ifscope = scoped ? new->ifp->if_index : IFSCOPE_NONE; in defrouter_addreq() 1013 if (ifscope != IFSCOPE_NONE) { in defrouter_addreq() 1020 (ifscope != IFSCOPE_NONE), err); in defrouter_addreq() 1115 dr->ifp->if_index : IFSCOPE_NONE; in defrouter_delreq() 1117 ifscope = IFSCOPE_NONE; in defrouter_delreq() 1134 if_name(dr->ifp) : "ANY", (ifscope != IFSCOPE_NONE), err); in defrouter_delreq() 1140 if (ifscope != IFSCOPE_NONE) { in defrouter_delreq() 3557 err = nd6_prefix_onlink_scoped(pr, IFSCOPE_NONE); in nd6_prefix_sync() 3628 ifscope = (opr != NULL) ? ifp->if_index : IFSCOPE_NONE; in nd6_prefix_onlink_common() [all …]
|
| H A D | in6_src.c | 697 if (ip6oa.ip6oa_boundif != IFSCOPE_NONE) { in in6_selectsrc() 854 ip6oa->ip6oa_boundif : IFSCOPE_NONE); in selectroute() 892 if (ifscope != IFSCOPE_NONE && in selectroute() 974 if (ifscope == IFSCOPE_NONE) { in selectroute() 1005 if (ifscope != IFSCOPE_NONE || (ro != NULL && ro->ro_rt != NULL)) { in selectroute() 1020 if (scope == IFSCOPE_NONE) { in selectroute() 1073 if (ifa == NULL && ifscope == IFSCOPE_NONE) { in selectroute() 1648 inp->inp_lifscope = IFSCOPE_NONE; in in6_pcbsetport() 1719 inp->inp_lifscope = IFSCOPE_NONE; in in6_pcbsetport()
|
| H A D | ip6_forward.c | 115 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 D | icmp6.c | 2115 …sin6_scope_id = IN6_IS_SCOPE_EMBED(&rip6src.sin6_addr) ? ip6_input_getsrcifscope(m) : IFSCOPE_NONE; in icmp6_rip6_input() 2227 uint32_t sifscope = IFSCOPE_NONE; in icmp6_reflect() 2228 uint32_t fifscope = IFSCOPE_NONE; in icmp6_reflect() 2233 ip6oa.ip6oa_boundif = IFSCOPE_NONE; in icmp6_reflect() 2296 fifscope = IN6_IS_SCOPE_EMBED(&ip6->ip6_src) ? fifscope : IFSCOPE_NONE; in icmp6_reflect() 2297 sifscope = IN6_IS_SCOPE_EMBED(&ip6->ip6_dst) ? sifscope : IFSCOPE_NONE; in icmp6_reflect() 2503 uint32_t src_ifscope = IFSCOPE_NONE, redtgt_ifscope = IFSCOPE_NONE, reddst_ifscope = IFSCOPE_NONE; in icmp6_redirect_input() 2740 ip6oa.ip6oa_boundif = IFSCOPE_NONE; in icmp6_redirect_output()
|
| H A D | ip6_output.c | 420 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() 1115 ip6oa->ip6oa_boundif = IFSCOPE_NONE; in ip6_output_list() 1119 if (opt->ip6po_pktinfo->ipi6_ifindex != IFSCOPE_NONE) { in ip6_output_list() 1120 opt->ip6po_pktinfo->ipi6_ifindex = IFSCOPE_NONE; in ip6_output_list() 1143 …_embedded_scope && IN6_IS_SCOPE_EMBED(&ip6->ip6_src)) ? ip6_output_getsrcifscope(m) : IFSCOPE_NONE; in ip6_output_list() 1149 …_embedded_scope && IN6_IS_SCOPE_EMBED(&ip6->ip6_dst)) ? ip6_output_getdstifscope(m) : IFSCOPE_NONE; in ip6_output_list() 1250 …edded_scope && IN6_IS_SCOPE_EMBED(&src_sa.sin6_addr)) ? ip6_output_getsrcifscope(m) : IFSCOPE_NONE; in ip6_output_list() 1265 …dded_scope && IN6_IS_SCOPE_EMBED(&dst_sa.sin6_addr)) ? ip6_output_getdstifscope(m) : IFSCOPE_NONE; in ip6_output_list() [all …]
|
| H A D | in6_pcb.c | 194 uint32_t lifscope = IFSCOPE_NONE; in in6_pcbbind() 555 inp->inp_lifscope = IFSCOPE_NONE; in in6_pcbbind() 567 inp->inp_lifscope = IFSCOPE_NONE; in in6_pcbbind() 629 inp->inp_boundifp->if_index : IFSCOPE_NONE; in in6_pcbladdr()
|
| H A D | ip6_input.c | 604 uint32_t dst_ifscope = IFSCOPE_NONE; in ip6_input_check_interface() 674 RTF_PRCLONING, IFSCOPE_NONE); in ip6_input_check_interface() 1257 ours = nd6_prproxy_isours(m, ip6, NULL, IFSCOPE_NONE); in ip6_input() 1522 uint32_t src_ifscope = IFSCOPE_NONE; in ip6_input_getsrcifscope() 1536 uint32_t dst_ifscope = IFSCOPE_NONE; in ip6_input_getdstifscope()
|
| H A D | frag6.c | 495 …->ip6q_dst_ifscope = IN6_IS_SCOPE_EMBED(&q6->ip6q_dst) ? ip6_input_getdstifscope(m) : IFSCOPE_NONE; in frag6_input() 496 …->ip6q_src_ifscope = IN6_IS_SCOPE_EMBED(&q6->ip6q_src) ? ip6_input_getsrcifscope(m) : IFSCOPE_NONE; in frag6_input()
|
| H A D | udp6_usrreq.c | 911 p, IFSCOPE_NONE, NULL); in udp6_connect() 1035 inp->inp_lifscope = IFSCOPE_NONE; in udp6_disconnect()
|
| /xnu-8020.140.41/bsd/netinet/ |
| H A D | mptcp.c | 1433 VERIFY(ifindex != IFSCOPE_NONE); in mptcp_session_necp_cb() 1462 ifp && ifp->if_delegated.ifp ? ifp->if_delegated.ifp->if_index : IFSCOPE_NONE, in mptcp_session_necp_cb() 1481 if (mpte->mpte_itfinfo[i].ifindex == IFSCOPE_NONE) { in mptcp_session_necp_cb() 1619 if (ifindex == IFSCOPE_NONE) { in mptcp_set_restrictions() 1630 info->ifindex = IFSCOPE_NONE; in mptcp_set_restrictions() 1635 info->ifindex = IFSCOPE_NONE; in mptcp_set_restrictions() 1640 info->ifindex = IFSCOPE_NONE; in mptcp_set_restrictions()
|
| H A D | ip_output.c | 300 unsigned int ifscope = IFSCOPE_NONE; in ip_output_list() 412 ipoa->ipoa_boundif != IFSCOPE_NONE) { in ip_output_list() 434 ipoa->ipoa_boundif != IFSCOPE_NONE) { in ip_output_list() 448 ifscope = IFSCOPE_NONE; in ip_output_list() 450 ipoa->ipoa_boundif = IFSCOPE_NONE; in ip_output_list() 730 if (ifscope == IFSCOPE_NONE) { in ip_output_list() 3063 if (ifscope != IFSCOPE_NONE || ro->ro_rt != NULL) { in in_selectsrcif() 3075 if (scope == IFSCOPE_NONE) { in in_selectsrcif() 3097 ifscope = IFSCOPE_NONE; in in_selectsrcif() 3125 if (ifa == NULL && ifscope == IFSCOPE_NONE) { in in_selectsrcif() [all …]
|
| H A D | udp_usrreq.c | 601 uh->uh_sport, IFSCOPE_NONE, IFSCOPE_NONE); in udp_input() 1503 ipoa.ipoa_boundif = IFSCOPE_NONE; in udp_output() 1592 if (ipoa.ipoa_boundif == IFSCOPE_NONE && in udp_output() 1673 (ipoa.ipoa_boundif != IFSCOPE_NONE && pktinfo)) { in udp_output() 1734 if (outif != NULL && ipoa.ipoa_boundif != IFSCOPE_NONE) { in udp_output() 1761 ipoa.ipoa_boundif != IFSCOPE_NONE) { in udp_output() 1977 if (ipoa.ipoa_boundif != IFSCOPE_NONE) { in udp_output() 2282 error = in_pcbconnect(inp, nam, p, IFSCOPE_NONE, NULL); in udp_connect() 2326 if (ifscope != IFSCOPE_NONE && in udp_connectx_common()
|
| H A D | kpi_ipfilter.c | 418 ipoa.ipoa_boundif = IFSCOPE_NONE; in ipf_injectv4_out() 507 ip6oa.ip6oa_boundif = IFSCOPE_NONE; in ipf_injectv6_out()
|
| H A D | tcp_usrreq.c | 440 tcp_mss(tp, -1, IFSCOPE_NONE); in tcp_connect_complete() 566 if (ifscope != IFSCOPE_NONE && in tcp_usr_connectx_common() 1013 tcp_mss(tp, -1, IFSCOPE_NONE); in tcp_send_implied_connect() 1427 error = in_pcbladdr(inp, nam, &laddr, IFSCOPE_NONE, &outif, 0); in tcp_connect() 1569 uint32_t lifscope = IFSCOPE_NONE; in tcp6_connect() 1572 } else if (sin6->sin6_scope_id != IFSCOPE_NONE) { in tcp6_connect()
|
| H A D | in_gif.c | 114 ipoa.ipoa_boundif = IFSCOPE_NONE; in in_gif_output()
|
| H A D | tcp_subr.c | 764 uint32_t sifscope = IFSCOPE_NONE, fifscope = IFSCOPE_NONE; in tcp_respond() 957 if (tra->ifscope != IFSCOPE_NONE) { in tcp_respond() 1022 if (tra->ifscope != IFSCOPE_NONE) { in tcp_respond() 2302 u_short ifscope = IFSCOPE_NONE; in tcp_handle_msgsize() 2347 rt->rt_ifp->if_index : IFSCOPE_NONE; in tcp_handle_msgsize() 2350 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-8020.140.41/bsd/kern/ |
| H A D | netboot.c | 558 return route_cmd(RTM_ADD, zeroes, router, zeroes, flags, IFSCOPE_NONE); in default_route_add()
|