| /xnu-8019.80.24/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_ethernet.c | 205 tgt_rt->rt_gateway->sa_family != AF_LINK || in fsw_ethernet_resolve() 206 SDL(tgt_rt->rt_gateway)->sdl_type != IFT_ETHER)) { in fsw_ethernet_resolve() 223 SDL(tgt_rt->rt_gateway)->sdl_alen == ETHER_ADDR_LEN)) { in fsw_ethernet_resolve() 225 FLOWRT_UPD_ETH_DST(fr, LLADDR(SDL(tgt_rt->rt_gateway))); in fsw_ethernet_resolve() 351 if (SDL(tgt_rt->rt_gateway)->sdl_alen != in fsw_ethernet_resolve() 366 LLADDR(SDL(tgt_rt->rt_gateway))); in fsw_ethernet_resolve() 431 FLOWRT_UPD_ETH_DST(fr, LLADDR(SDL(tgt_rt->rt_gateway))); in fsw_ethernet_resolve()
|
| /xnu-8019.80.24/bsd/netinet6/ |
| H A D | in6_rmx.c | 245 rt2->rt_gateway != NULL && in in6_addroute() 246 rt2->rt_gateway->sa_family == AF_LINK) { in in6_addroute() 268 rt2->rt_gateway, rt_mask(rt2), in in6_addroute() 297 rt2->rt_gateway && in in6_addroute() 298 rt2->rt_gateway->sa_family == AF_LINK && in in6_addroute() 506 rt->rt_gateway, rt_mask(rt), rt->rt_flags, &rt); in in6_clsroute() 610 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in in6_rtqkill()
|
| H A D | nd6.c | 2203 if (rt->rt_gateway != NULL && in nd6_purge_interface_llinfo() 2204 rt->rt_gateway->sa_family == AF_LINK && in nd6_purge_interface_llinfo() 2205 SDL(rt->rt_gateway)->sdl_index == ifp->if_index) { in nd6_purge_interface_llinfo() 2411 rt->rt_gateway->sa_family != AF_LINK || rt->rt_llinfo == NULL || in nd6_lookup() 2646 struct sockaddr *gate = rt->rt_gateway; in nd6_rtrequest() 2746 gate = rt->rt_gateway; in nd6_rtrequest() 3723 if (rt->rt_gateway == NULL) { in nd6_cache_lladdr() 3726 if (rt->rt_gateway->sa_family != AF_LINK) { in nd6_cache_lladdr() 3729 sdl = SDL(rt->rt_gateway); in nd6_cache_lladdr() 4117 gw6 = *(SIN6(rt->rt_gateway)); in nd6_output_list() [all …]
|
| H A D | nd6_nbr.c | 401 rt->rt_gateway->sa_family == AF_LINK) { in nd6_ns_input() 409 proxydl = *SDL(rt->rt_gateway); in nd6_ns_input() 1053 (sdl = SDL(rt->rt_gateway)) == NULL) { in nd6_na_input() 2641 if (sdl != NULL && rt->rt_gateway != NULL && in nd6_alt_node_absent() 2642 rt->rt_gateway->sa_family == AF_LINK && in nd6_alt_node_absent() 2643 SDL(rt->rt_gateway)->sdl_len <= sizeof(*sdl)) { in nd6_alt_node_absent() 2644 bcopy(rt->rt_gateway, sdl, SDL(rt->rt_gateway)->sdl_len); in nd6_alt_node_absent()
|
| H A D | icmp6.c | 2578 if (rt->rt_gateway == NULL || in icmp6_redirect_input() 2579 rt->rt_gateway->sa_family != AF_INET6) { in icmp6_redirect_input() 2590 rt->rt_gateway)->sin6_addr); in icmp6_redirect_input() 2592 rt->rt_gateway)->sin6_scope_id)) { in icmp6_redirect_input() 2833 if (rt->rt_gateway && (rt->rt_flags & RTF_GATEWAY)) { in icmp6_redirect_output() 2835 sin6 = (struct sockaddr_in6 *)(void *)rt->rt_gateway; in icmp6_redirect_output() 2914 (rt_router->rt_gateway->sa_family == AF_LINK) && in icmp6_redirect_output() 2916 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 | 614 dst = (struct sockaddr_in6 *)(void *)rt->rt_gateway; in ip6_forward()
|
| H A D | nd6_rtr.c | 887 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in nd6_rtmsg() 4380 if (rt->rt_gateway == NULL || rt->rt_gateway->sa_family != AF_INET6) { in rt6_deleteroute() 4385 if (!IN6_ARE_ADDR_EQUAL(gate, &SIN6(rt->rt_gateway)->sin6_addr)) { in rt6_deleteroute() 4413 return rtrequest_locked(RTM_DELETE, rt_key(rt), rt->rt_gateway, in rt6_deleteroute()
|
| H A D | in6_ifattach.c | 1224 (void) rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, in in6_ifdetach()
|
| H A D | in6_pcb.c | 1296 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in in6_losing()
|
| H A D | nd6_prproxy.c | 649 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in nd6_proxy_find_fwdroute()
|
| H A D | ipsec.c | 2619 dst6 = (struct sockaddr_in6 *)(void *)ro6->ro_rt->rt_gateway; in ipsec6_update_routecache_and_output() 3279 dst4 = (struct sockaddr_in *)(void *)ro4->ro_rt->rt_gateway; in ipsec4_output_internal() 3958 dst6 = (struct sockaddr_in6 *)(void *)ro6->ro_rt->rt_gateway; in ipsec6_output_tunnel_internal()
|
| /xnu-8019.80.24/bsd/net/ |
| H A D | route.c | 1073 if (equal(rt_key(newrt), defrt->rt_gateway)) { in rtalloc1_common_locked() 1496 (!equal(src, rt->rt_gateway) || !equal(rt->rt_ifa->ifa_addr, in rtredirect() 2157 gateway = rt->rt_gateway; in rtrequest_common_locked() 2316 rt2->rt_gateway, rt_mask(rt2), in rtrequest_common_locked() 2701 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in rt_setgate() 2816 gwrt != NULL && gwrt->rt_gateway->sa_family == AF_LINK && in rt_setgate() 2819 kdp_set_gateway_mac(SDL((void *)gwrt->rt_gateway)-> in rt_setgate() 2836 if (rt->rt_gateway == NULL || glen > SA_SIZE(rt->rt_gateway->sa_len)) { in rt_setgate() 2858 rt->rt_gateway = (struct sockaddr *)(new + dlen); in rt_setgate() 2864 Bcopy(gate, rt->rt_gateway, gate->sa_len); in rt_setgate() [all …]
|
| H A D | rtsock.c | 596 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in route_output() 675 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in route_output() 1459 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in rt_newaddrmsg() 1630 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in sysctl_dumpentry() 1701 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in sysctl_dumpentry_ext()
|
| H A D | route.h | 209 struct sockaddr *rt_gateway; /* value */ member
|
| H A D | necp.c | 7370 v4Route->rt_gateway != NULL && in necp_application_find_policy_match_internal() 7371 v4Route->rt_gateway->sa_len == sizeof(returned_v4_gateway->u.sin)) { in necp_application_find_policy_match_internal() 7372 memcpy(&returned_v4_gateway->u.sin, v4Route->rt_gateway, sizeof(returned_v4_gateway->u.sin)); in necp_application_find_policy_match_internal() 7388 v6Route->rt_gateway != NULL && in necp_application_find_policy_match_internal() 7389 v6Route->rt_gateway->sa_len == sizeof(returned_v6_gateway->u.sin6)) { in necp_application_find_policy_match_internal() 7390 memcpy(&returned_v6_gateway->u.sin6, v6Route->rt_gateway, sizeof(returned_v6_gateway->u.sin6)); in necp_application_find_policy_match_internal()
|
| H A D | necp_client.c | 4445 if (has_remote_addr && client->current_route->rt_gateway != NULL) { in necp_update_client_result() 4446 if (client->current_route->rt_gateway->sa_family == AF_INET) { in necp_update_client_result() 4448 } else if (client->current_route->rt_gateway->sa_family == AF_INET6) { in necp_update_client_result()
|
| /xnu-8019.80.24/bsd/netinet/ |
| H A D | in_rmx.c | 202 rt2->rt_gateway != NULL && in in_addroute() 203 rt2->rt_gateway->sa_family == AF_LINK) { in in_addroute() 225 rt2->rt_gateway, rt_mask(rt2), in in_addroute() 425 rt->rt_gateway, rt_mask(rt), rt->rt_flags, &rt); in in_clsroute() 525 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in in_rtqkill() 767 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in in_ifadownkill()
|
| H A D | in_arp.c | 655 struct sockaddr_dl *sdl = SDL(rt->rt_gateway); in arptfree() 701 struct sockaddr_dl *sdl = SDL(rt->rt_gateway); in arptfree() 902 struct sockaddr *gate = rt->rt_gateway; in arp_rtrequest() 935 gate = rt->rt_gateway; in arp_rtrequest() 1176 } else if (rt->rt_gateway->sa_family != AF_LINK) { in arp_lookup_route() 1205 rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, in arp_lookup_route() 1412 gateway = SDL(route->rt_gateway); in arp_lookup_ip() 1829 if (error || route == NULL || route->rt_gateway == NULL) { in arp_ip_handle_input() 1855 route->rt_gateway == NULL) { in arp_ip_handle_input() 1861 gateway = SDL(route->rt_gateway); in arp_ip_handle_input() [all …]
|
| H A D | ip_output.c | 834 dst = SIN(ro->ro_rt->rt_gateway); in ip_output_list() 3296 (ro->ro_rt->rt_gateway->sa_family == AF_LINK && in in_selectsrcif() 3297 SDL(ro->ro_rt->rt_gateway)->sdl_alen != 0))) { in in_selectsrcif()
|
| H A D | tcp_subr.c | 3009 (rt->rt_gateway->sa_family == AF_LINK || in tcp_rtlookup() 3118 rt->rt_gateway->sa_family == AF_LINK || in tcp_rtlookup6()
|
| H A D | in.c | 239 if (rt->rt_gateway->sa_family == AF_LINK || in inaddr_local()
|
| H A D | ip_input.c | 3541 dest = satosin(rt->rt_gateway)->sin_addr.s_addr; in ip_forward()
|
| /xnu-8019.80.24/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_route.c | 435 (rt->rt_gateway == NULL || in flow_route_configure() 436 SA(rt->rt_gateway)->sa_family != AF_LINK)) { in flow_route_configure() 504 (rt->rt_gateway->sa_family == AF_INET || in flow_route_configure() 505 rt->rt_gateway->sa_family == AF_INET6)) { in flow_route_configure() 517 (void) sa_copy(rt->rt_gateway, &ss, NULL); in flow_route_configure()
|
| /xnu-8019.80.24/tools/lldbmacros/ |
| H A D | net.py | 715 gw = Cast(rt.rt_gateway, 'sockaddr *')
|