Home
last modified time | relevance | path

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

12

/xnu-10063.101.15/bsd/skywalk/nexus/flowswitch/
H A Dfsw_ethernet.c206 tgt_rt->rt_gateway->sa_family != AF_LINK || in fsw_ethernet_resolve()
207 SDL(tgt_rt->rt_gateway)->sdl_type != IFT_ETHER)) { in fsw_ethernet_resolve()
224 SDL(tgt_rt->rt_gateway)->sdl_alen == ETHER_ADDR_LEN)) { in fsw_ethernet_resolve()
226 FLOWRT_UPD_ETH_DST(fr, LLADDR(SDL(tgt_rt->rt_gateway))); in fsw_ethernet_resolve()
349 if (SDL(tgt_rt->rt_gateway)->sdl_alen != in fsw_ethernet_resolve()
364 LLADDR(SDL(tgt_rt->rt_gateway))); in fsw_ethernet_resolve()
428 FLOWRT_UPD_ETH_DST(fr, LLADDR(SDL(tgt_rt->rt_gateway))); in fsw_ethernet_resolve()
/xnu-10063.101.15/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()
303 rt2->rt_gateway && in in6_addroute()
304 rt2->rt_gateway->sa_family == AF_LINK && in in6_addroute()
512 rt->rt_gateway, rt_mask(rt), rt->rt_flags, &rt); in in6_clsroute()
616 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in in6_rtqkill()
H A Dnd6.c2244 if (rt->rt_gateway != NULL && in nd6_purge_interface_llinfo()
2245 rt->rt_gateway->sa_family == AF_LINK && in nd6_purge_interface_llinfo()
2246 SDL(rt->rt_gateway)->sdl_index == ifp->if_index) { in nd6_purge_interface_llinfo()
2463 rt->rt_gateway->sa_family != AF_LINK || rt->rt_llinfo == NULL || in nd6_lookup()
2698 struct sockaddr *gate = rt->rt_gateway; in nd6_rtrequest()
2810 gate = rt->rt_gateway; in nd6_rtrequest()
3790 if (rt->rt_gateway == NULL) { in nd6_cache_lladdr()
3793 if (rt->rt_gateway->sa_family != AF_LINK) { in nd6_cache_lladdr()
3796 sdl = SDL(rt->rt_gateway); in nd6_cache_lladdr()
4192 gw6 = *(SIN6(rt->rt_gateway)); in nd6_output_list()
[all …]
H A Dnd6_nbr.c408 rt->rt_gateway->sa_family == AF_LINK) { in nd6_ns_input()
416 proxydl = *SDL(rt->rt_gateway); in nd6_ns_input()
1061 (sdl = SDL(rt->rt_gateway)) == NULL) { in nd6_na_input()
2679 if (sdl != NULL && rt->rt_gateway != NULL && in nd6_alt_node_absent()
2680 rt->rt_gateway->sa_family == AF_LINK && in nd6_alt_node_absent()
2681 SDL(rt->rt_gateway)->sdl_len <= sizeof(*sdl)) { in nd6_alt_node_absent()
2682 SOCKADDR_COPY(rt->rt_gateway, sdl, SDL(rt->rt_gateway)->sdl_len); in nd6_alt_node_absent()
H A Dicmp6.c2604 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 Dscope6.c275 *sin6 = *((struct sockaddr_in6 *)(void *)rt->rt_gateway); in rtgw_to_sa6()
H A Dip6_forward.c615 dst = SIN6(rt->rt_gateway); in ip6_forward()
H A Dnd6_rtr.c893 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in nd6_rtmsg()
4406 if (rt->rt_gateway == NULL || rt->rt_gateway->sa_family != AF_INET6) { in rt6_deleteroute()
4411 if (!IN6_ARE_ADDR_EQUAL(gate, &SIN6(rt->rt_gateway)->sin6_addr)) { in rt6_deleteroute()
4439 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.c327 ro->ro_rt->rt_gateway != NULL) { in in6_selectsrc_core()
331 &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.c1341 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in in6_losing()
H A Dipsec.c2611 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()
/xnu-10063.101.15/bsd/net/
H A Droute.c1073 if (sa_equal(rt_key(newrt), defrt->rt_gateway)) { in rtalloc1_common_locked()
1493 (!sa_equal(src, rt->rt_gateway) || !sa_equal(rt->rt_ifa->ifa_addr, in rtredirect()
2159 gateway = rt->rt_gateway; in rtrequest_common_locked()
2318 rt2->rt_gateway, rt_mask(rt2), in rtrequest_common_locked()
2717 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL); in rt_setgate()
2832 gwrt != NULL && gwrt->rt_gateway->sa_family == AF_LINK && in rt_setgate()
2835 kdp_set_gateway_mac(SDL(gwrt->rt_gateway)-> in rt_setgate()
2852 if (rt->rt_gateway == NULL || glen > SA_SIZE(rt->rt_gateway->sa_len)) { in rt_setgate()
2873 rt->rt_gateway = SA(new + dlen); in rt_setgate()
2879 SOCKADDR_COPY(gate, rt->rt_gateway, gate->sa_len); in rt_setgate()
[all …]
H A Droute_private.h168 struct sockaddr *rt_gateway; /* value */ member
H A Drtsock.c621 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in route_output()
700 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in route_output()
1482 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in rt_newaddrmsg()
1653 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in sysctl_dumpentry()
1723 info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; in sysctl_dumpentry_ext()
H A Dnecp.c8097 v4Route->rt_gateway != NULL && in necp_application_find_policy_match_internal()
8098 v4Route->rt_gateway->sa_len == sizeof(returned_v4_gateway->u.sin)) { in necp_application_find_policy_match_internal()
8099 memcpy(&returned_v4_gateway->u.sin, v4Route->rt_gateway, sizeof(returned_v4_gateway->u.sin)); in necp_application_find_policy_match_internal()
8115 v6Route->rt_gateway != NULL && in necp_application_find_policy_match_internal()
8116 v6Route->rt_gateway->sa_len == sizeof(returned_v6_gateway->u.sin6)) { in necp_application_find_policy_match_internal()
8117 memcpy(&returned_v6_gateway->u.sin6, v6Route->rt_gateway, sizeof(returned_v6_gateway->u.sin6)); in necp_application_find_policy_match_internal()
/xnu-10063.101.15/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()
524 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 Din_arp.c656 struct sockaddr_dl *sdl = SDL(rt->rt_gateway); in arptfree()
702 struct sockaddr_dl *sdl = SDL(rt->rt_gateway); in arptfree()
903 struct sockaddr *gate = rt->rt_gateway; in arp_rtrequest()
936 gate = rt->rt_gateway; in arp_rtrequest()
1179 } else if (rt->rt_gateway->sa_family != AF_LINK) { in arp_lookup_route()
1208 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 Dip_output.c849 dst = SIN(ro->ro_rt->rt_gateway); in ip_output_list()
3287 (ro->ro_rt->rt_gateway->sa_family == AF_LINK && in in_selectsrcif()
3288 SDL(ro->ro_rt->rt_gateway)->sdl_alen != 0))) { in in_selectsrcif()
H A Din.c174 if (rt->rt_gateway->sa_family == AF_LINK || in inaddr_local()
H A Dtcp_subr.c3044 (rt->rt_gateway->sa_family == AF_LINK || in tcp_rtlookup()
3153 rt->rt_gateway->sa_family == AF_LINK || in tcp_rtlookup6()
H A Dip_input.c3540 dest = satosin(rt->rt_gateway)->sin_addr.s_addr; in ip_forward()
/xnu-10063.101.15/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_route.c423 (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-10063.101.15/tools/lldbmacros/
H A Dnet.py723 gw = Cast(rt.rt_gateway, 'sockaddr *')

12