| /xnu-12377.41.6/bsd/net/ |
| H A D | route.c | 399 static unsigned int primary_ifscope = IFSCOPE_NONE; 400 static unsigned int primary6_ifscope = IFSCOPE_NONE; 640 unsigned int ifscope = (pifscope != NULL) ? *pifscope : IFSCOPE_NONE; in sa_copy() 649 if (pifscope == NULL || ifscope != IFSCOPE_NONE) { in sa_copy() 665 if (eifscope != IFSCOPE_NONE && ifscope == IFSCOPE_NONE) { in sa_copy() 668 if (ifscope != IFSCOPE_NONE) { in sa_copy() 679 if (ifscope != IFSCOPE_NONE && eifscope != ifscope) { in sa_copy() 682 } else if (pifscope == NULL || ifscope != IFSCOPE_NONE) { in sa_copy() 793 SINIFSCOPE(sa)->sin_scope_id != IFSCOPE_NONE) { in rtm_scrub() 796 SIN6IFSCOPE(sa)->sin6_scope_id != IFSCOPE_NONE) { in rtm_scrub() [all …]
|
| H A D | route_private.h | 342 #define IFSCOPE_NONE 0 macro 343 #define IFSCOPE_UNKNOWN IFSCOPE_NONE
|
| H A D | necp_client.c | 1267 if (if_idx != IFSCOPE_NONE && if_idx <= (uint32_t)if_index) { in necp_client_collect_interface_stats() 2186 if (interface_index != IFSCOPE_NONE && interface_index <= (u_int32_t)if_index) { in necp_client_add_nexus_flow_if_needed() 2222 interface_index == IFSCOPE_NONE) { in necp_client_add_interface_flow_if_needed() 2247 if ((interface_index == IFSCOPE_NONE && !network_provider) || in necp_client_add_interface_option_if_needed() 2360 if (flow->interface_index != IFSCOPE_NONE) { in necp_client_flow_is_viable() 2364 if (ifp && ifp->if_delegated.ifp != IFSCOPE_NONE) { in necp_client_flow_is_viable() 2372 result.routed_interface_index != IFSCOPE_NONE && in necp_client_flow_is_viable() 3603 …new_registration->last_interface_details = combine_interface_details(IFSCOPE_NONE, NSTAT_IFNET_IS_… in necp_client_create_flow_registration() 4110 flow->interface_index = IFSCOPE_NONE; in necp_client_assign_from_socket() 4549 parsed_parameters->required_interface_index != IFSCOPE_NONE && in necp_update_parsed_parameters() [all …]
|
| H A D | rtsock.c | 336 unsigned int ifscope = IFSCOPE_NONE; in route_output() 483 if (ifscope != IFSCOPE_NONE) { in route_output() 501 ifscope != IFSCOPE_NONE && proc_getpid(current_proc()) != 0) { in route_output() 533 sin_set_ifscope(info.rti_info[RTAX_DST], IFSCOPE_NONE); in route_output() 537 sin_set_ifscope(info.rti_info[RTAX_GATEWAY], IFSCOPE_NONE); in route_output()
|
| H A D | if.c | 976 return ifa_foraddr_scoped(addr, IFSCOPE_NONE); in ifa_foraddr() 993 (scope == IFSCOPE_NONE || ia->ia_ifp->if_index == scope)) { in ifa_foraddr_scoped() 1010 return ifa_foraddr6_scoped(addr6, IFSCOPE_NONE); in ifa_foraddr6() 1022 (scope == IFSCOPE_NONE || ia->ia_ifp->if_index == scope)) { in ifa_foraddr6_scoped() 1184 if (ifscope == IFSCOPE_NONE) { in ifa_ifwithdstaddr_scoped() 1207 if (ifscope == IFSCOPE_NONE) { in ifa_ifwithaddr_scoped_locked() 1273 return ifa_ifwithnet_common(addr, IFSCOPE_NONE); in ifa_ifwithnet() 1297 ifscope = IFSCOPE_NONE; in ifa_ifwithnet_common() 1321 VERIFY(ifscope != IFSCOPE_NONE); in ifa_ifwithnet_common() 1345 if (ifscope != IFSCOPE_NONE && in ifa_ifwithnet_common() [all …]
|
| /xnu-12377.41.6/bsd/netinet6/ |
| H A D | raw_ip6.c | 389 uint32_t sifscope = IFSCOPE_NONE, difscope = IFSCOPE_NONE; in rip6_output() 462 ip6oa.ip6oa_boundif = IFSCOPE_NONE; in rip6_output() 667 if (IN6_IS_SCOPE_EMBED(in6a) && sifscope == IFSCOPE_NONE) { in rip6_output() 1068 inp->inp_fifscope = IFSCOPE_NONE; in rip6_disconnect() 1080 uint32_t ifscope = IFSCOPE_NONE; in rip6_bind() 1188 inp->inp_boundifp->if_index : IFSCOPE_NONE; in rip6_connect() 1201 if (IN6_IS_SCOPE_EMBED(&addr->sin6_addr) && inp->inp_lifscope == IFSCOPE_NONE) { in rip6_connect()
|
| H A D | udp6_output.c | 185 uint32_t lifscope = IFSCOPE_NONE, fifscope = IFSCOPE_NONE; in udp6_output() 189 ip6oa.ip6oa_boundif = IFSCOPE_NONE; in udp6_output() 523 IN6_IS_SCOPE_EMBED(faddr) ? fifscope : IFSCOPE_NONE; in udp6_output()
|
| H A D | nd6_rtr.c | 289 …edded_scope && IN6_IS_SCOPE_EMBED(&src_sa6.sin6_addr)) ? ip6_input_getsrcifscope(m) : IFSCOPE_NONE; in nd6_rs_input() 1020 ifscope = scoped ? new->ifp->if_index : IFSCOPE_NONE; in defrouter_addreq() 1065 if (ifscope != IFSCOPE_NONE) { in defrouter_addreq() 1072 (ifscope != IFSCOPE_NONE), err); in defrouter_addreq() 1182 dr->ifp->if_index : IFSCOPE_NONE; in defrouter_delreq() 1184 ifscope = IFSCOPE_NONE; in defrouter_delreq() 1200 if_name(dr->ifp) : "ANY", (ifscope != IFSCOPE_NONE), err); in defrouter_delreq() 1206 if (ifscope != IFSCOPE_NONE) { in defrouter_delreq() 2482 err = nd6_prefix_onlink_scoped(tmp_pr, IFSCOPE_NONE); in prelist_remove() 3656 err = nd6_prefix_onlink_scoped(pr, IFSCOPE_NONE); in nd6_prefix_sync() [all …]
|
| H A D | in6_src.c | 791 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 D | ip6_forward.c | 116 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 D | icmp6.c | 2147 …sin6_scope_id = IN6_IS_SCOPE_EMBED(&rip6src.sin6_addr) ? ip6_input_getsrcifscope(m) : IFSCOPE_NONE; in icmp6_rip6_input() 2256 uint32_t sifscope = IFSCOPE_NONE; in icmp6_reflect() 2257 uint32_t fifscope = IFSCOPE_NONE; in icmp6_reflect() 2262 ip6oa.ip6oa_boundif = IFSCOPE_NONE; in icmp6_reflect() 2326 fifscope = IN6_IS_SCOPE_EMBED(&ip6->ip6_src) ? fifscope : IFSCOPE_NONE; in icmp6_reflect() 2327 sifscope = IN6_IS_SCOPE_EMBED(&ip6->ip6_dst) ? sifscope : IFSCOPE_NONE; in icmp6_reflect() 2532 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 D | ip6_output.c | 440 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 D | in6_pcb.c | 196 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 D | ip6_input.c | 608 uint32_t dst_ifscope = IFSCOPE_NONE; in ip6_input_check_interface() 678 RTF_PRCLONING, IFSCOPE_NONE); in ip6_input_check_interface() 1290 ours = nd6_prproxy_isours(m, ip6, NULL, IFSCOPE_NONE); in ip6_input() 1568 uint32_t src_ifscope = IFSCOPE_NONE; in ip6_input_getsrcifscope() 1582 uint32_t dst_ifscope = IFSCOPE_NONE; in ip6_input_getdstifscope()
|
| H A D | frag6.c | 497 …->ip6q_dst_ifscope = IN6_IS_SCOPE_EMBED(&q6->ip6q_dst) ? ip6_input_getdstifscope(m) : IFSCOPE_NONE; in frag6_input() 498 …->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 | 983 error = in_pcbconnect(inp, SA(&sin), p, IFSCOPE_NONE, NULL); in udp6_connect() 1128 inp->inp_lifscope = IFSCOPE_NONE; in udp6_disconnect()
|
| /xnu-12377.41.6/bsd/netinet/ |
| H A D | mptcp.c | 1319 VERIFY(ifindex != IFSCOPE_NONE); in mptcp_session_necp_cb() 1348 ifp && ifp->if_delegated.ifp ? ifp->if_delegated.ifp->if_index : IFSCOPE_NONE, in mptcp_session_necp_cb() 1371 if (mpte->mpte_itfinfo[i].ifindex == IFSCOPE_NONE) { in mptcp_session_necp_cb() 1508 if (ifindex == IFSCOPE_NONE) { in mptcp_set_restrictions() 1519 info->ifindex = IFSCOPE_NONE; in mptcp_set_restrictions() 1524 info->ifindex = IFSCOPE_NONE; in mptcp_set_restrictions() 1529 info->ifindex = IFSCOPE_NONE; in mptcp_set_restrictions()
|
| H A D | ip_output.c | 309 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() 3168 if (ifscope != IFSCOPE_NONE || ro->ro_rt != NULL) { in in_selectsrcif() 3180 if (scope == IFSCOPE_NONE) { in in_selectsrcif() 3202 ifscope = IFSCOPE_NONE; in in_selectsrcif() 3230 if (ifa == NULL && ifscope == IFSCOPE_NONE) { in in_selectsrcif() [all …]
|
| H A D | kpi_ipfilter.c | 424 ipoa.ipoa_boundif = IFSCOPE_NONE; in ipf_injectv4_out() 513 ip6oa.ip6oa_boundif = IFSCOPE_NONE; in ipf_injectv6_out()
|
| H A D | tcp_subr.c | 798 uint32_t lifscope = IFSCOPE_NONE, fifscope = IFSCOPE_NONE; in tcp_fillheaders() 801 } else if (SIN6(local)->sin6_scope_id != IFSCOPE_NONE) { in tcp_fillheaders() 806 } else if (SIN6(remote)->sin6_scope_id != IFSCOPE_NONE) { in tcp_fillheaders() 946 uint32_t sifscope = IFSCOPE_NONE, fifscope = IFSCOPE_NONE; in tcp_respond() 1150 if (tra->ifscope != IFSCOPE_NONE) { in tcp_respond() 1221 if (tra->ifscope != IFSCOPE_NONE) { in tcp_respond() 2570 u_short ifscope = IFSCOPE_NONE; in tcp_handle_msgsize() 2613 rt->rt_ifp->if_index : IFSCOPE_NONE; in tcp_handle_msgsize() 2616 inp->inp_last_outifp->if_index : IFSCOPE_NONE; in tcp_handle_msgsize() 3145 rt = tcp_rtlookup6(inp, IFSCOPE_NONE); in tcp_mtudisc() [all …]
|
| H A D | udp_usrreq.c | 1624 ipoa.ipoa_boundif = IFSCOPE_NONE; in udp_output() 1713 if (ipoa.ipoa_boundif == IFSCOPE_NONE && in udp_output() 1801 (ipoa.ipoa_boundif != IFSCOPE_NONE && pktinfo)) { in udp_output() 1860 ipoa.ipoa_boundif != IFSCOPE_NONE) { in udp_output() 2110 if (ipoa.ipoa_boundif != IFSCOPE_NONE) { in udp_output() 2419 error = in_pcbconnect(inp, nam, p, IFSCOPE_NONE, NULL); in udp_connect() 2470 if (ifscope != IFSCOPE_NONE && in udp_connectx_common()
|
| H A D | tcp_usrreq.c | 452 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 D | in_gif.c | 113 ipoa.ipoa_boundif = IFSCOPE_NONE; in in_gif_output()
|
| H A D | tcp_syncookie.c | 365 tra.ifscope = IFSCOPE_NONE; in syncookie_respond()
|
| /xnu-12377.41.6/bsd/kern/ |
| H A D | netboot.c | 525 return route_cmd(RTM_ADD, zeroes, router, zeroes, flags, IFSCOPE_NONE); in default_route_add()
|