Home
last modified time | relevance | path

Searched refs:rt_gateway (Results 1 – 25 of 32) sorted by relevance

12

/xnu-11215.1.10/bsd/skywalk/nexus/flowswitch/
H A Dfsw_ethernet.c208 tgt_rt->rt_gateway->sa_family != AF_LINK || in fsw_ethernet_resolve()
209 SDL(tgt_rt->rt_gateway)->sdl_type != IFT_ETHER)) { in fsw_ethernet_resolve()
226 SDL(tgt_rt->rt_gateway)->sdl_alen == ETHER_ADDR_LEN)) { in fsw_ethernet_resolve()
230 (struct sockaddr_dl *__bidi_indexable) SDL(tgt_rt->rt_gateway); in fsw_ethernet_resolve()
354 if (SDL(tgt_rt->rt_gateway)->sdl_alen != in fsw_ethernet_resolve()
373 (struct sockaddr_dl *__bidi_indexable) SDL(tgt_rt->rt_gateway); in fsw_ethernet_resolve()
443 (struct sockaddr_dl *__bidi_indexable) SDL(tgt_rt->rt_gateway); in fsw_ethernet_resolve()
/xnu-11215.1.10/bsd/netinet6/
H A Din6_rmx.c251 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 Dnd6.c2251 if (rt->rt_gateway != NULL && in nd6_purge_interface_llinfo()
2252 rt->rt_gateway->sa_family == AF_LINK && in nd6_purge_interface_llinfo()
2253 SDL(rt->rt_gateway)->sdl_index == ifp->if_index) { in nd6_purge_interface_llinfo()
2470 rt->rt_gateway->sa_family != AF_LINK || rt->rt_llinfo == NULL || in nd6_lookup()
2705 struct sockaddr *gate = rt->rt_gateway; in nd6_rtrequest()
2817 gate = rt->rt_gateway; in nd6_rtrequest()
3572 if (rt->rt_gateway == NULL) { in nd6_cache_lladdr()
3575 if (rt->rt_gateway->sa_family != AF_LINK) { in nd6_cache_lladdr()
3578 sdl = SDL(rt->rt_gateway); in nd6_cache_lladdr()
3974 gw6 = *(SIN6(rt->rt_gateway)); in nd6_output_list()
[all …]
H A Dicmp6.c2605 if (rt->rt_gateway == NULL || in icmp6_redirect_input()
2606 rt->rt_gateway->sa_family != AF_INET6) { in icmp6_redirect_input()
2616 gw6 = &((SIN6(rt->rt_gateway))->sin6_addr); in icmp6_redirect_input()
2617 if (!in6_are_addr_equal_scoped(&src6, gw6, src_ifscope, (SIN6(rt->rt_gateway))->sin6_scope_id)) { in icmp6_redirect_input()
2857 if (rt->rt_gateway && (rt->rt_flags & RTF_GATEWAY)) { in icmp6_redirect_output()
2859 sin6 = SIN6(rt->rt_gateway); in icmp6_redirect_output()
2938 (rt_router->rt_gateway->sa_family == AF_LINK) && in icmp6_redirect_output()
2939 (sdl = SDL(rt_router->rt_gateway)) && sdl->sdl_alen) { in icmp6_redirect_output()
H A Dnd6_nbr.c414 rt->rt_gateway->sa_family == AF_LINK) { in nd6_ns_input()
422 proxydl = *SDL(rt->rt_gateway); in nd6_ns_input()
1089 (sdl = SDL(rt->rt_gateway)) == NULL) { in nd6_na_input()
2683 if (sdl != NULL && rt->rt_gateway != NULL && in nd6_alt_node_absent()
2684 rt->rt_gateway->sa_family == AF_LINK && in nd6_alt_node_absent()
2685 SDL(rt->rt_gateway)->sdl_len <= sizeof(*sdl)) { in nd6_alt_node_absent()
2686 SOCKADDR_COPY(rt->rt_gateway, sdl, SDL(rt->rt_gateway)->sdl_len); in nd6_alt_node_absent()
H A Dscope6.c275 *sin6 = *((struct sockaddr_in6 *)(void *)rt->rt_gateway); in rtgw_to_sa6()
H A Dip6_forward.c616 dst = SIN6(rt->rt_gateway); in ip6_forward()
H A Dnd6_rtr.c911 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in nd6_rtmsg()
4441 if (rt->rt_gateway == NULL || rt->rt_gateway->sa_family != AF_INET6) { in rt6_deleteroute()
4446 if (!IN6_ARE_ADDR_EQUAL(gate, &SIN6(rt->rt_gateway)->sin6_addr)) { in rt6_deleteroute()
4474 return rtrequest_locked(RTM_DELETE, rt_key(rt), rt->rt_gateway, in rt6_deleteroute()
H A Din6_ifattach.c1200 (void) rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, in in6_ifdetach()
H A Din6_src.c328 ro->ro_rt->rt_gateway != NULL) { in in6_selectsrc_core()
332 &SIN6(rt->rt_gateway)->sin6_addr, rt->rt_ifp); in in6_selectsrc_core()
H A Dnd6_prproxy.c649 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in nd6_proxy_find_fwdroute()
H A Din6_pcb.c1345 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in in6_losing()
H A Dipsec.c2597 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-11215.1.10/bsd/net/
H A Droute.c1079 if (sa_equal(rt_key(newrt), defrt->rt_gateway)) { in rtalloc1_common_locked()
1499 (!sa_equal(src, rt->rt_gateway) || !sa_equal(rt->rt_ifa->ifa_addr, in rtredirect()
2165 gateway = rt->rt_gateway; in rtrequest_common_locked()
2325 rt2->rt_gateway, rt_mask(rt2), in rtrequest_common_locked()
2738 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in rt_setgate()
2853 gwrt != NULL && gwrt->rt_gateway->sa_family == AF_LINK && in rt_setgate()
2856 kdp_set_gateway_mac(SDL(gwrt->rt_gateway)-> in rt_setgate()
2873 if (rt->rt_gateway == NULL || glen > rt_sa_size(rt->rt_gateway)) { in rt_setgate()
2894 rt->rt_gateway = SA(new + dlen); in rt_setgate()
2900 SOCKADDR_COPY(gate, rt->rt_gateway, gate->sa_len); in rt_setgate()
[all …]
H A Drtsock.c650 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in route_output()
753 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in route_output()
1635 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in rt_newaddrmsg()
1806 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in sysctl_dumpentry()
1876 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in sysctl_dumpentry_ext()
H A Droute_private.h167 struct sockaddr *rt_gateway; /* value */ member
H A Dnecp.c8416 v4Route->rt_gateway != NULL && in necp_application_find_policy_match_internal()
8417 v4Route->rt_gateway->sa_len == sizeof(returned_v4_gateway->u.sin)) { in necp_application_find_policy_match_internal()
8418 memcpy(&returned_v4_gateway->u.sin, v4Route->rt_gateway, sizeof(returned_v4_gateway->u.sin)); in necp_application_find_policy_match_internal()
8434 v6Route->rt_gateway != NULL && in necp_application_find_policy_match_internal()
8435 v6Route->rt_gateway->sa_len == sizeof(returned_v6_gateway->u.sin6)) { in necp_application_find_policy_match_internal()
8436 …SOCKADDR_COPY(v6Route->rt_gateway, &returned_v6_gateway->u.sin6, sizeof(returned_v6_gateway->u.sin… in necp_application_find_policy_match_internal()
/xnu-11215.1.10/bsd/netinet/
H A Din_rmx.c204 rt2->rt_gateway != NULL && in in_addroute()
205 rt2->rt_gateway->sa_family == AF_LINK) { in in_addroute()
227 rt2->rt_gateway, rt_mask(rt2), in in_addroute()
427 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()
771 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in in_ifadownkill()
H A Din_arp.c642 struct sockaddr_dl *sdl = SDL(rt->rt_gateway); in arptfree()
688 struct sockaddr_dl *sdl = SDL(rt->rt_gateway); in arptfree()
889 struct sockaddr *gate = rt->rt_gateway; in arp_rtrequest()
921 gate = rt->rt_gateway; in arp_rtrequest()
1167 } else if (rt->rt_gateway->sa_family != AF_LINK) { in arp_lookup_route()
1196 rtrequest(RTM_DELETE, rt_key(rt), rt->rt_gateway, in arp_lookup_route()
1408 gateway = SDL(route->rt_gateway); in arp_lookup_ip()
1826 if (error || route == NULL || route->rt_gateway == NULL) { in arp_ip_handle_input()
1852 route->rt_gateway == NULL) { in arp_ip_handle_input()
1858 gateway = SDL(route->rt_gateway); in arp_ip_handle_input()
[all …]
H A Dip_output.c861 dst = SIN(ro->ro_rt->rt_gateway); in ip_output_list()
3356 (ro->ro_rt->rt_gateway->sa_family == AF_LINK && in in_selectsrcif()
3357 SDL(ro->ro_rt->rt_gateway)->sdl_alen != 0))) { in in_selectsrcif()
H A Din.c175 if (rt->rt_gateway->sa_family == AF_LINK || in inaddr_local()
H A Dtcp_subr.c3030 (rt->rt_gateway->sa_family == AF_LINK || in tcp_rtlookup()
3139 rt->rt_gateway->sa_family == AF_LINK || in tcp_rtlookup6()
H A Dip_input.c3590 dest = satosin(rt->rt_gateway)->sin_addr.s_addr; in ip_forward()
/xnu-11215.1.10/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_route.c422 (rt->rt_gateway == NULL || in flow_route_configure()
423 SA(rt->rt_gateway)->sa_family != AF_LINK)) { in flow_route_configure()
491 (rt->rt_gateway->sa_family == AF_INET || in flow_route_configure()
492 rt->rt_gateway->sa_family == AF_INET6)) { in flow_route_configure()
504 (void) sa_copy(rt->rt_gateway, &ss, NULL); in flow_route_configure()
/xnu-11215.1.10/tools/lldbmacros/
H A Dnet.py720 gw = Cast(rt.rt_gateway, 'sockaddr *')

12