| /xnu-8792.41.9/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-8792.41.9/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 | 2233 if (rt->rt_gateway != NULL && in nd6_purge_interface_llinfo() 2234 rt->rt_gateway->sa_family == AF_LINK && in nd6_purge_interface_llinfo() 2235 SDL(rt->rt_gateway)->sdl_index == ifp->if_index) { in nd6_purge_interface_llinfo() 2453 rt->rt_gateway->sa_family != AF_LINK || rt->rt_llinfo == NULL || in nd6_lookup() 2688 struct sockaddr *gate = rt->rt_gateway; in nd6_rtrequest() 2800 gate = rt->rt_gateway; in nd6_rtrequest() 3780 if (rt->rt_gateway == NULL) { in nd6_cache_lladdr() 3783 if (rt->rt_gateway->sa_family != AF_LINK) { in nd6_cache_lladdr() 3786 sdl = SDL(rt->rt_gateway); in nd6_cache_lladdr() 4182 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() 2663 if (sdl != NULL && rt->rt_gateway != NULL && in nd6_alt_node_absent() 2664 rt->rt_gateway->sa_family == AF_LINK && in nd6_alt_node_absent() 2665 SDL(rt->rt_gateway)->sdl_len <= sizeof(*sdl)) { in nd6_alt_node_absent() 2666 bcopy(rt->rt_gateway, sdl, SDL(rt->rt_gateway)->sdl_len); in nd6_alt_node_absent()
|
| H A D | icmp6.c | 2603 if (rt->rt_gateway == NULL || in icmp6_redirect_input() 2604 rt->rt_gateway->sa_family != AF_INET6) { in icmp6_redirect_input() 2615 rt->rt_gateway)->sin6_addr); in icmp6_redirect_input() 2617 rt->rt_gateway)->sin6_scope_id)) { in icmp6_redirect_input() 2858 if (rt->rt_gateway && (rt->rt_flags & RTF_GATEWAY)) { in icmp6_redirect_output() 2860 sin6 = (struct sockaddr_in6 *)(void *)rt->rt_gateway; in icmp6_redirect_output() 2939 (rt_router->rt_gateway->sa_family == AF_LINK) && in icmp6_redirect_output() 2941 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 | 893 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in nd6_rtmsg() 4434 if (rt->rt_gateway == NULL || rt->rt_gateway->sa_family != AF_INET6) { in rt6_deleteroute() 4439 if (!IN6_ARE_ADDR_EQUAL(gate, &SIN6(rt->rt_gateway)->sin6_addr)) { in rt6_deleteroute() 4467 return rtrequest_locked(RTM_DELETE, rt_key(rt), rt->rt_gateway, in rt6_deleteroute()
|
| H A D | in6_ifattach.c | 1204 (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() 3275 dst4 = (struct sockaddr_in *)(void *)ro4->ro_rt->rt_gateway; in ipsec4_output_internal() 3965 dst6 = (struct sockaddr_in6 *)(void *)ro6->ro_rt->rt_gateway; in ipsec6_output_tunnel_internal()
|
| /xnu-8792.41.9/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() 2150 gateway = rt->rt_gateway; in rtrequest_common_locked() 2309 rt2->rt_gateway, rt_mask(rt2), in rtrequest_common_locked() 2694 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in rt_setgate() 2809 gwrt != NULL && gwrt->rt_gateway->sa_family == AF_LINK && in rt_setgate() 2812 kdp_set_gateway_mac(SDL((void *)gwrt->rt_gateway)-> in rt_setgate() 2829 if (rt->rt_gateway == NULL || glen > SA_SIZE(rt->rt_gateway->sa_len)) { in rt_setgate() 2850 rt->rt_gateway = (struct sockaddr *)(new + dlen); in rt_setgate() 2856 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 | 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 | necp.c | 7674 v4Route->rt_gateway != NULL && in necp_application_find_policy_match_internal() 7675 v4Route->rt_gateway->sa_len == sizeof(returned_v4_gateway->u.sin)) { in necp_application_find_policy_match_internal() 7676 memcpy(&returned_v4_gateway->u.sin, v4Route->rt_gateway, sizeof(returned_v4_gateway->u.sin)); in necp_application_find_policy_match_internal() 7692 v6Route->rt_gateway != NULL && in necp_application_find_policy_match_internal() 7693 v6Route->rt_gateway->sa_len == sizeof(returned_v6_gateway->u.sin6)) { in necp_application_find_policy_match_internal() 7694 memcpy(&returned_v6_gateway->u.sin6, v6Route->rt_gateway, sizeof(returned_v6_gateway->u.sin6)); in necp_application_find_policy_match_internal()
|
| /xnu-8792.41.9/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() 1178 } else if (rt->rt_gateway->sa_family != AF_LINK) { in arp_lookup_route() 1207 rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, in arp_lookup_route() 1419 gateway = SDL(route->rt_gateway); in arp_lookup_ip() 1832 if (error || route == NULL || route->rt_gateway == NULL) { in arp_ip_handle_input() 1858 route->rt_gateway == NULL) { in arp_ip_handle_input() 1864 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 | 3028 (rt->rt_gateway->sa_family == AF_LINK || in tcp_rtlookup() 3137 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()
|
| H A D | in_pcb.c | 2162 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in in_losing()
|
| H A D | ip_input.c | 3544 dest = satosin(rt->rt_gateway)->sin_addr.s_addr; in ip_forward()
|
| /xnu-8792.41.9/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_route.c | 451 (rt->rt_gateway == NULL || in flow_route_configure() 452 SA(rt->rt_gateway)->sa_family != AF_LINK)) { in flow_route_configure() 520 (rt->rt_gateway->sa_family == AF_INET || in flow_route_configure() 521 rt->rt_gateway->sa_family == AF_INET6)) { in flow_route_configure() 533 (void) sa_copy(rt->rt_gateway, &ss, NULL); in flow_route_configure()
|
| /xnu-8792.41.9/tools/lldbmacros/ |
| H A D | net.py | 728 gw = Cast(rt.rt_gateway, 'sockaddr *')
|