| /xnu-10002.1.13/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() 348 if (SDL(tgt_rt->rt_gateway)->sdl_alen != in fsw_ethernet_resolve() 363 LLADDR(SDL(tgt_rt->rt_gateway))); in fsw_ethernet_resolve() 427 FLOWRT_UPD_ETH_DST(fr, LLADDR(SDL(tgt_rt->rt_gateway))); in fsw_ethernet_resolve()
|
| /xnu-10002.1.13/bsd/netinet6/ |
| H A D | in6_rmx.c | 249 rt2->rt_gateway != NULL && in in6_addroute() 250 rt2->rt_gateway->sa_family == AF_LINK) { in in6_addroute() 272 rt2->rt_gateway, rt_mask(rt2), in in6_addroute() 301 rt2->rt_gateway && in in6_addroute() 302 rt2->rt_gateway->sa_family == AF_LINK && in in6_addroute() 510 rt->rt_gateway, rt_mask(rt), rt->rt_flags, &rt); in in6_clsroute() 614 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in in6_rtqkill()
|
| H A D | nd6.c | 2242 if (rt->rt_gateway != NULL && in nd6_purge_interface_llinfo() 2243 rt->rt_gateway->sa_family == AF_LINK && in nd6_purge_interface_llinfo() 2244 SDL(rt->rt_gateway)->sdl_index == ifp->if_index) { in nd6_purge_interface_llinfo() 2462 rt->rt_gateway->sa_family != AF_LINK || rt->rt_llinfo == NULL || in nd6_lookup() 2697 struct sockaddr *gate = rt->rt_gateway; in nd6_rtrequest() 2809 gate = rt->rt_gateway; in nd6_rtrequest() 3789 if (rt->rt_gateway == NULL) { in nd6_cache_lladdr() 3792 if (rt->rt_gateway->sa_family != AF_LINK) { in nd6_cache_lladdr() 3795 sdl = SDL(rt->rt_gateway); in nd6_cache_lladdr() 4191 gw6 = *(SIN6(rt->rt_gateway)); in nd6_output_list() [all …]
|
| H A D | nd6_nbr.c | 407 rt->rt_gateway->sa_family == AF_LINK) { in nd6_ns_input() 415 proxydl = *SDL(rt->rt_gateway); in nd6_ns_input() 1060 (sdl = SDL(rt->rt_gateway)) == NULL) { in nd6_na_input() 2682 if (sdl != NULL && rt->rt_gateway != NULL && in nd6_alt_node_absent() 2683 rt->rt_gateway->sa_family == AF_LINK && in nd6_alt_node_absent() 2684 SDL(rt->rt_gateway)->sdl_len <= sizeof(*sdl)) { in nd6_alt_node_absent() 2685 bcopy(rt->rt_gateway, sdl, SDL(rt->rt_gateway)->sdl_len); in nd6_alt_node_absent()
|
| H A D | icmp6.c | 2604 if (rt->rt_gateway == NULL || in icmp6_redirect_input() 2605 rt->rt_gateway->sa_family != AF_INET6) { in icmp6_redirect_input() 2616 rt->rt_gateway)->sin6_addr); in icmp6_redirect_input() 2618 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 = (struct sockaddr_in6 *)(void *)rt->rt_gateway; in icmp6_redirect_output() 2940 (rt_router->rt_gateway->sa_family == AF_LINK) && in icmp6_redirect_output() 2942 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 | 613 dst = (struct sockaddr_in6 *)(void *)rt->rt_gateway; in ip6_forward()
|
| H A D | nd6_rtr.c | 891 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in nd6_rtmsg() 4403 if (rt->rt_gateway == NULL || rt->rt_gateway->sa_family != AF_INET6) { in rt6_deleteroute() 4408 if (!IN6_ARE_ADDR_EQUAL(gate, &SIN6(rt->rt_gateway)->sin6_addr)) { in rt6_deleteroute() 4436 return rtrequest_locked(RTM_DELETE, rt_key(rt), rt->rt_gateway, in rt6_deleteroute()
|
| H A D | in6_ifattach.c | 1209 (void) rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, in in6_ifdetach()
|
| H A D | in6_src.c | 336 ro->ro_rt->rt_gateway != NULL) { in in6_selectsrc_core() 340 &SIN6(rt->rt_gateway)->sin6_addr, rt->rt_ifp); in in6_selectsrc_core()
|
| 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 | in6_pcb.c | 1339 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in in6_losing()
|
| H A D | ipsec.c | 2611 dst6 = (struct sockaddr_in6 *)(void *)ro6->ro_rt->rt_gateway; in ipsec6_update_routecache_and_output() 3277 dst4 = (struct sockaddr_in *)(void *)ro4->ro_rt->rt_gateway; in ipsec4_output_internal() 4249 dst6 = (struct sockaddr_in6 *)(void *)ro6->ro_rt->rt_gateway; in ipsec6_output_tunnel_internal()
|
| H A D | ip6_output.c | 1298 dst = SIN6(rt->rt_gateway); in ip6_output_list()
|
| /xnu-10002.1.13/bsd/net/ |
| H A D | route.c | 1069 if (sa_equal(rt_key(newrt), defrt->rt_gateway)) { in rtalloc1_common_locked() 1489 (!sa_equal(src, rt->rt_gateway) || !sa_equal(rt->rt_ifa->ifa_addr, in rtredirect() 2155 gateway = rt->rt_gateway; in rtrequest_common_locked() 2314 rt2->rt_gateway, rt_mask(rt2), in rtrequest_common_locked() 2699 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in rt_setgate() 2814 gwrt != NULL && gwrt->rt_gateway->sa_family == AF_LINK && in rt_setgate() 2817 kdp_set_gateway_mac(SDL((void *)gwrt->rt_gateway)-> in rt_setgate() 2834 if (rt->rt_gateway == NULL || glen > SA_SIZE(rt->rt_gateway->sa_len)) { in rt_setgate() 2855 rt->rt_gateway = (struct sockaddr *)(new + dlen); in rt_setgate() 2861 Bcopy(gate, rt->rt_gateway, gate->sa_len); in rt_setgate() [all …]
|
| H A D | route_private.h | 188 struct sockaddr *rt_gateway; /* value */ member
|
| H A D | rtsock.c | 613 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in route_output() 693 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in route_output() 1475 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in rt_newaddrmsg() 1646 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in sysctl_dumpentry() 1717 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in sysctl_dumpentry_ext()
|
| H A D | necp.c | 7875 v4Route->rt_gateway != NULL && in necp_application_find_policy_match_internal() 7876 v4Route->rt_gateway->sa_len == sizeof(returned_v4_gateway->u.sin)) { in necp_application_find_policy_match_internal() 7877 memcpy(&returned_v4_gateway->u.sin, v4Route->rt_gateway, sizeof(returned_v4_gateway->u.sin)); in necp_application_find_policy_match_internal() 7893 v6Route->rt_gateway != NULL && in necp_application_find_policy_match_internal() 7894 v6Route->rt_gateway->sa_len == sizeof(returned_v6_gateway->u.sin6)) { in necp_application_find_policy_match_internal() 7895 memcpy(&returned_v6_gateway->u.sin6, v6Route->rt_gateway, sizeof(returned_v6_gateway->u.sin6)); in necp_application_find_policy_match_internal()
|
| /xnu-10002.1.13/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 | 654 struct sockaddr_dl *sdl = SDL(rt->rt_gateway); in arptfree() 700 struct sockaddr_dl *sdl = SDL(rt->rt_gateway); in arptfree() 901 struct sockaddr *gate = rt->rt_gateway; in arp_rtrequest() 934 gate = rt->rt_gateway; in arp_rtrequest() 1177 } else if (rt->rt_gateway->sa_family != AF_LINK) { in arp_lookup_route() 1206 rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, in arp_lookup_route() 1418 gateway = SDL(route->rt_gateway); in arp_lookup_ip() 1831 if (error || route == NULL || route->rt_gateway == NULL) { in arp_ip_handle_input() 1857 route->rt_gateway == NULL) { in arp_ip_handle_input() 1863 gateway = SDL(route->rt_gateway); in arp_ip_handle_input() [all …]
|
| H A D | ip_output.c | 848 dst = SIN(ro->ro_rt->rt_gateway); in ip_output_list() 3286 (ro->ro_rt->rt_gateway->sa_family == AF_LINK && in in_selectsrcif() 3287 SDL(ro->ro_rt->rt_gateway)->sdl_alen != 0))) { in in_selectsrcif()
|
| H A D | tcp_subr.c | 3025 (rt->rt_gateway->sa_family == AF_LINK || in tcp_rtlookup() 3134 rt->rt_gateway->sa_family == AF_LINK || in tcp_rtlookup6()
|
| H A D | in.c | 235 if (rt->rt_gateway->sa_family == AF_LINK || in inaddr_local()
|
| /xnu-10002.1.13/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_route.c | 423 (rt->rt_gateway == NULL || in flow_route_configure() 424 SA(rt->rt_gateway)->sa_family != AF_LINK)) { in flow_route_configure() 492 (rt->rt_gateway->sa_family == AF_INET || in flow_route_configure() 493 rt->rt_gateway->sa_family == AF_INET6)) { in flow_route_configure() 505 (void) sa_copy(rt->rt_gateway, &ss, NULL); in flow_route_configure()
|
| /xnu-10002.1.13/tools/lldbmacros/ |
| H A D | net.py | 728 gw = Cast(rt.rt_gateway, 'sockaddr *')
|