| /xnu-8020.101.4/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-8020.101.4/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 | 2230 if (rt->rt_gateway != NULL && in nd6_purge_interface_llinfo() 2231 rt->rt_gateway->sa_family == AF_LINK && in nd6_purge_interface_llinfo() 2232 SDL(rt->rt_gateway)->sdl_index == ifp->if_index) { in nd6_purge_interface_llinfo() 2438 rt->rt_gateway->sa_family != AF_LINK || rt->rt_llinfo == NULL || in nd6_lookup() 2673 struct sockaddr *gate = rt->rt_gateway; in nd6_rtrequest() 2773 gate = rt->rt_gateway; in nd6_rtrequest() 3754 if (rt->rt_gateway == NULL) { in nd6_cache_lladdr() 3757 if (rt->rt_gateway->sa_family != AF_LINK) { in nd6_cache_lladdr() 3760 sdl = SDL(rt->rt_gateway); in nd6_cache_lladdr() 4153 gw6 = *(SIN6(rt->rt_gateway)); in nd6_output_list() [all …]
|
| H A D | nd6_nbr.c | 404 rt->rt_gateway->sa_family == AF_LINK) { in nd6_ns_input() 412 proxydl = *SDL(rt->rt_gateway); in nd6_ns_input() 1056 (sdl = SDL(rt->rt_gateway)) == NULL) { in nd6_na_input() 2660 if (sdl != NULL && rt->rt_gateway != NULL && in nd6_alt_node_absent() 2661 rt->rt_gateway->sa_family == AF_LINK && in nd6_alt_node_absent() 2662 SDL(rt->rt_gateway)->sdl_len <= sizeof(*sdl)) { in nd6_alt_node_absent() 2663 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 | 613 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 | 1205 (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 | 2609 dst6 = (struct sockaddr_in6 *)(void *)ro6->ro_rt->rt_gateway; in ipsec6_update_routecache_and_output() 3274 dst4 = (struct sockaddr_in *)(void *)ro4->ro_rt->rt_gateway; in ipsec4_output_internal() 3953 dst6 = (struct sockaddr_in6 *)(void *)ro6->ro_rt->rt_gateway; in ipsec6_output_tunnel_internal()
|
| H A D | ip6_output.c | 1293 dst = SIN6(rt->rt_gateway); in ip6_output_list()
|
| /xnu-8020.101.4/bsd/net/ |
| H A D | route.c | 1072 if (equal(rt_key(newrt), defrt->rt_gateway)) { in rtalloc1_common_locked() 1492 (!equal(src, rt->rt_gateway) || !equal(rt->rt_ifa->ifa_addr, in rtredirect() 2153 gateway = rt->rt_gateway; in rtrequest_common_locked() 2312 rt2->rt_gateway, rt_mask(rt2), in rtrequest_common_locked() 2697 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in rt_setgate() 2812 gwrt != NULL && gwrt->rt_gateway->sa_family == AF_LINK && in rt_setgate() 2815 kdp_set_gateway_mac(SDL((void *)gwrt->rt_gateway)-> in rt_setgate() 2832 if (rt->rt_gateway == NULL || glen > SA_SIZE(rt->rt_gateway->sa_len)) { in rt_setgate() 2853 rt->rt_gateway = (struct sockaddr *)(new + dlen); in rt_setgate() 2859 Bcopy(gate, rt->rt_gateway, gate->sa_len); in rt_setgate() [all …]
|
| H A D | rtsock.c | 592 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in route_output() 672 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in route_output() 1454 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in rt_newaddrmsg() 1625 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in sysctl_dumpentry() 1696 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 | 7664 v4Route->rt_gateway != NULL && in necp_application_find_policy_match_internal() 7665 v4Route->rt_gateway->sa_len == sizeof(returned_v4_gateway->u.sin)) { in necp_application_find_policy_match_internal() 7666 memcpy(&returned_v4_gateway->u.sin, v4Route->rt_gateway, sizeof(returned_v4_gateway->u.sin)); in necp_application_find_policy_match_internal() 7682 v6Route->rt_gateway != NULL && in necp_application_find_policy_match_internal() 7683 v6Route->rt_gateway->sa_len == sizeof(returned_v6_gateway->u.sin6)) { in necp_application_find_policy_match_internal() 7684 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 | 4466 if (has_remote_addr && client->current_route->rt_gateway != NULL) { in necp_update_client_result() 4467 if (client->current_route->rt_gateway->sa_family == AF_INET) { in necp_update_client_result() 4469 } else if (client->current_route->rt_gateway->sa_family == AF_INET6) { in necp_update_client_result()
|
| /xnu-8020.101.4/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() 3290 (ro->ro_rt->rt_gateway->sa_family == AF_LINK && in in_selectsrcif() 3291 SDL(ro->ro_rt->rt_gateway)->sdl_alen != 0))) { in in_selectsrcif()
|
| H A D | tcp_subr.c | 3011 (rt->rt_gateway->sa_family == AF_LINK || in tcp_rtlookup() 3120 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-8020.101.4/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-8020.101.4/tools/lldbmacros/ |
| H A D | net.py | 726 gw = Cast(rt.rt_gateway, 'sockaddr *')
|