| /xnu-12377.41.6/bsd/netinet6/ |
| H A D | in6_rmx.c | 251 rt2->rt_gateway != NULL && in in6_addroute() 252 rt2->rt_gateway->sa_family == AF_LINK) { in in6_addroute() 274 rt2->rt_gateway, rt_mask(rt2), in in6_addroute() 302 rt2->rt_gateway && in in6_addroute() 303 rt2->rt_gateway->sa_family == AF_LINK && in in6_addroute() 513 rt->rt_gateway, rt_mask(rt), rt->rt_flags, &rt); in in6_clsroute() 617 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in in6_rtqkill()
|
| H A D | nd6.c | 2258 if (rt->rt_gateway != NULL && in nd6_purge_interface_llinfo() 2259 rt->rt_gateway->sa_family == AF_LINK && in nd6_purge_interface_llinfo() 2260 SDL(rt->rt_gateway)->sdl_index == ifp->if_index) { in nd6_purge_interface_llinfo() 2477 rt->rt_gateway->sa_family != AF_LINK || rt->rt_llinfo == NULL || in nd6_lookup() 2712 struct sockaddr *gate = rt->rt_gateway; in nd6_rtrequest() 2824 gate = rt->rt_gateway; in nd6_rtrequest() 3579 if (rt->rt_gateway == NULL) { in nd6_cache_lladdr() 3582 if (rt->rt_gateway->sa_family != AF_LINK) { in nd6_cache_lladdr() 3585 sdl = SDL(rt->rt_gateway); in nd6_cache_lladdr() 3986 gw6 = *(SIN6(rt->rt_gateway)); in nd6_output_list() [all …]
|
| H A D | nd6_nbr.c | 415 rt->rt_gateway->sa_family == AF_LINK) { in nd6_ns_input() 423 proxydl = *SDL(rt->rt_gateway); in nd6_ns_input() 1089 (sdl = SDL(rt->rt_gateway)) == NULL) { in nd6_na_input() 2687 if (sdl != NULL && rt->rt_gateway != NULL && in nd6_alt_node_absent() 2688 rt->rt_gateway->sa_family == AF_LINK && in nd6_alt_node_absent() 2689 SDL(rt->rt_gateway)->sdl_len <= sizeof(*sdl)) { in nd6_alt_node_absent() 2690 SOCKADDR_COPY(rt->rt_gateway, sdl, SDL(rt->rt_gateway)->sdl_len); in nd6_alt_node_absent()
|
| H A D | icmp6.c | 2607 if (rt->rt_gateway == NULL || in icmp6_redirect_input() 2608 rt->rt_gateway->sa_family != AF_INET6) { in icmp6_redirect_input() 2618 gw6 = &((SIN6(rt->rt_gateway))->sin6_addr); in icmp6_redirect_input() 2619 if (!in6_are_addr_equal_scoped(&src6, gw6, src_ifscope, (SIN6(rt->rt_gateway))->sin6_scope_id)) { in icmp6_redirect_input() 2859 if (rt->rt_gateway && (rt->rt_flags & RTF_GATEWAY)) { in icmp6_redirect_output() 2861 sin6 = SIN6(rt->rt_gateway); in icmp6_redirect_output() 2940 (rt_router->rt_gateway->sa_family == AF_LINK) && in icmp6_redirect_output() 2941 (sdl = SDL(rt_router->rt_gateway)) && sdl->sdl_alen) { in icmp6_redirect_output()
|
| H A D | scope6.c | 275 *sin6 = *((struct sockaddr_in6 *)(void *)rt->rt_gateway); in rtgw_to_sa6()
|
| H A D | ip6_forward.c | 616 dst = SIN6(rt->rt_gateway); in ip6_forward()
|
| H A D | nd6_rtr.c | 933 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in nd6_rtmsg() 4488 if (rt->rt_gateway == NULL || rt->rt_gateway->sa_family != AF_INET6) { in rt6_deleteroute() 4493 if (!IN6_ARE_ADDR_EQUAL(gate, &SIN6(rt->rt_gateway)->sin6_addr)) { in rt6_deleteroute() 4521 return rtrequest_locked(RTM_DELETE, rt_key(rt), rt->rt_gateway, in rt6_deleteroute()
|
| H A D | in6_ifattach.c | 1200 (void) rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, in in6_ifdetach()
|
| H A D | in6_src.c | 325 ro->ro_rt->rt_gateway != NULL) { in in6_selectsrc_core() 329 &SIN6(rt->rt_gateway)->sin6_addr, rt->rt_ifp); in in6_selectsrc_core()
|
| H A D | nd6_prproxy.c | 650 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in nd6_proxy_find_fwdroute()
|
| H A D | in6_pcb.c | 1341 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in in6_losing()
|
| H A D | ipsec.c | 2597 dst6 = SIN6(ro6->ro_rt->rt_gateway); in ipsec6_update_routecache_and_output() 3262 dst4 = SIN(ro4->ro_rt->rt_gateway); in ipsec4_output_internal() 4234 dst6 = SIN6(ro6->ro_rt->rt_gateway); in ipsec6_output_tunnel_internal()
|
| /xnu-12377.41.6/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_ethernet.c | 209 tgt_rt->rt_gateway->sa_family != AF_LINK || in fsw_ethernet_resolve() 210 SDL(tgt_rt->rt_gateway)->sdl_type != IFT_ETHER)) { in fsw_ethernet_resolve() 227 SDL(tgt_rt->rt_gateway)->sdl_alen == ETHER_ADDR_LEN)) { in fsw_ethernet_resolve() 231 (struct sockaddr_dl *__bidi_indexable) SDL(tgt_rt->rt_gateway); in fsw_ethernet_resolve() 355 if (SDL(tgt_rt->rt_gateway)->sdl_alen != in fsw_ethernet_resolve() 374 (struct sockaddr_dl *__bidi_indexable) SDL(tgt_rt->rt_gateway); in fsw_ethernet_resolve() 444 (struct sockaddr_dl *__bidi_indexable) SDL(tgt_rt->rt_gateway); in fsw_ethernet_resolve()
|
| /xnu-12377.41.6/bsd/net/ |
| H A D | route.c | 1132 if (sa_equal(rt_key(newrt), defrt->rt_gateway)) { in rtalloc1_common_locked() 1552 (!sa_equal(src, rt->rt_gateway) || !sa_equal(rt->rt_ifa->ifa_addr, in rtredirect() 2218 gateway = rt->rt_gateway; in rtrequest_common_locked() 2378 rt2->rt_gateway, rt_mask(rt2), in rtrequest_common_locked() 2791 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in rt_setgate() 2906 gwrt != NULL && gwrt->rt_gateway->sa_family == AF_LINK && in rt_setgate() 2909 kdp_set_gateway_mac(SDL(gwrt->rt_gateway)-> in rt_setgate() 2926 if (rt->rt_gateway == NULL || glen > rt_sa_size(rt->rt_gateway)) { in rt_setgate() 2947 rt->rt_gateway = SA(new + dlen); in rt_setgate() 2953 SOCKADDR_COPY(gate, rt->rt_gateway, gate->sa_len); in rt_setgate() [all …]
|
| H A D | rtsock.c | 655 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in route_output() 758 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in route_output() 1640 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in rt_newaddrmsg() 1811 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in sysctl_dumpentry() 1881 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in sysctl_dumpentry_ext()
|
| H A D | route_private.h | 167 struct sockaddr *rt_gateway; /* value */ member
|
| H A D | necp_client.c | 4902 if (has_remote_addr && client->current_route->rt_gateway != NULL) { in necp_update_client_result() 4903 if (client->current_route->rt_gateway->sa_family == AF_INET) { in necp_update_client_result() 4905 } else if (client->current_route->rt_gateway->sa_family == AF_INET6) { in necp_update_client_result() 8502 (tgt_rt->rt_gateway->sa_family == AF_LINK) && in necp_client_destination_mac_address() 8503 (SDL(tgt_rt->rt_gateway)->sdl_alen == ETHER_ADDR_LEN)) { in necp_client_destination_mac_address() 8505 (struct sockaddr_dl *__bidi_indexable)SDL(tgt_rt->rt_gateway); in necp_client_destination_mac_address()
|
| H A D | necp.c | 8852 v4Route->rt_gateway != NULL && in necp_application_find_policy_match_internal() 8853 v4Route->rt_gateway->sa_len == sizeof(returned_v4_gateway->u.sin)) { in necp_application_find_policy_match_internal() 8854 memcpy(&returned_v4_gateway->u.sin, v4Route->rt_gateway, sizeof(returned_v4_gateway->u.sin)); in necp_application_find_policy_match_internal() 8870 v6Route->rt_gateway != NULL && in necp_application_find_policy_match_internal() 8871 v6Route->rt_gateway->sa_len == sizeof(returned_v6_gateway->u.sin6)) { in necp_application_find_policy_match_internal() 8872 …SOCKADDR_COPY(v6Route->rt_gateway, &returned_v6_gateway->u.sin6, sizeof(returned_v6_gateway->u.sin… in necp_application_find_policy_match_internal()
|
| /xnu-12377.41.6/bsd/netinet/ |
| H A D | in_rmx.c | 205 rt2->rt_gateway != NULL && in in_addroute() 206 rt2->rt_gateway->sa_family == AF_LINK) { in in_addroute() 228 rt2->rt_gateway, rt_mask(rt2), in in_addroute() 428 rt->rt_gateway, rt_mask(rt), rt->rt_flags, &rt); in in_clsroute() 526 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in in_rtqkill() 772 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in in_ifadownkill()
|
| H A D | in_arp.c | 643 struct sockaddr_dl *sdl = SDL(rt->rt_gateway); in arptfree() 689 struct sockaddr_dl *sdl = SDL(rt->rt_gateway); in arptfree() 890 struct sockaddr *gate = rt->rt_gateway; in arp_rtrequest() 922 gate = rt->rt_gateway; in arp_rtrequest() 1168 } else if (rt->rt_gateway->sa_family != AF_LINK) { in arp_lookup_route() 1197 rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, in arp_lookup_route() 1409 gateway = SDL(route->rt_gateway); in arp_lookup_ip() 1840 if (error || route == NULL || route->rt_gateway == NULL) { in arp_ip_handle_input() 1866 route->rt_gateway == NULL) { in arp_ip_handle_input() 1872 gateway = SDL(route->rt_gateway); in arp_ip_handle_input() [all …]
|
| H A D | ip_output.c | 879 dst = SIN(ro->ro_rt->rt_gateway); in ip_output_list() 3395 (ro->ro_rt->rt_gateway->sa_family == AF_LINK && in in_selectsrcif() 3396 SDL(ro->ro_rt->rt_gateway)->sdl_alen != 0))) { in in_selectsrcif()
|
| H A D | in.c | 175 if (rt->rt_gateway->sa_family == AF_LINK || in inaddr_local()
|
| H A D | tcp_subr.c | 3330 (rt->rt_gateway->sa_family == AF_LINK || in tcp_rtlookup() 3444 rt->rt_gateway->sa_family == AF_LINK || in tcp_rtlookup6()
|
| /xnu-12377.41.6/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_route.c | 424 (rt->rt_gateway == NULL || in flow_route_configure() 425 SA(rt->rt_gateway)->sa_family != AF_LINK)) { in flow_route_configure() 493 (rt->rt_gateway->sa_family == AF_INET || in flow_route_configure() 494 rt->rt_gateway->sa_family == AF_INET6)) { in flow_route_configure() 506 (void) sa_copy(rt->rt_gateway, &ss, NULL); in flow_route_configure()
|
| /xnu-12377.41.6/tools/lldbmacros/ |
| H A D | net.py | 714 gw = Cast(rt.rt_gateway, 'sockaddr *')
|