| /xnu-12377.41.6/bsd/net/ |
| H A D | route.h | 95 #define RTF_GATEWAY 0x2 /* destination is a gateway */ macro 131 (((rt)->rt_flags & (RTF_HOST | RTF_GATEWAY)) == RTF_HOST) 135 RTF_WASCLONED | RTF_GATEWAY)) ==\ 140 ((((rt)->rt_flags & (RTF_HOST | RTF_GATEWAY)) == RTF_HOST) || \
|
| H A D | route.c | 1019 (rt->rt_flags & RTF_GATEWAY) && in route_ignore_protocol_cloning_for_dst() 1590 if (rt->rt_flags & RTF_GATEWAY) { in rtredirect() 1602 flags |= RTF_GATEWAY | RTF_DYNAMIC; in rtredirect() 1759 if (!(flags & RTF_GATEWAY)) { in ifa_ifwithroute_common_locked() 2272 if ((flags & RTF_GATEWAY) && !gateway) { in rtrequest_common_locked() 2517 if ((rt->rt_flags & RTF_GATEWAY) && rt->rt_gwroute != NULL) { in rtrequest_common_locked() 2746 if (rt->rt_flags & RTF_GATEWAY) { in rt_setgate() 2765 if (((rt->rt_flags & (RTF_HOST | RTF_GATEWAY | RTF_LLINFO)) == in rt_setgate() 2766 RTF_GATEWAY) && loop) { in rt_setgate() 2777 if (((rt->rt_flags & (RTF_HOST | RTF_GATEWAY | RTF_LLINFO)) == in rt_setgate() [all …]
|
| H A D | netsrc.c | 145 } else if (!(rt->rt_flags & RTF_GATEWAY) && in netsrc_common()
|
| H A D | if_llreach.c | 434 if ((rt->rt_flags & RTF_GATEWAY) && in ifnet_llreach_get_defrouter()
|
| H A D | rtsock.c | 756 if ((rt->rt_flags & RTF_GATEWAY) && in route_output()
|
| /xnu-12377.41.6/tools/lldbmacros/ |
| H A D | routedefines.py | 2 RTF_GATEWAY = 0x2 variable
|
| H A D | net.py | 750 if (rt.rt_flags & RTF_GATEWAY):
|
| /xnu-12377.41.6/tests/ |
| H A D | net_test_lib.c | 739 rtmsg.hdr.rtm_flags |= RTF_GATEWAY; in IPv4RouteApply() 755 if ((rtmsg.hdr.rtm_flags & RTF_GATEWAY) != 0) { in IPv4RouteApply() 920 rtm->rtm_flags = RTF_UP | RTF_STATIC | RTF_GATEWAY | RTF_HOST; in has_ipv4_default_route() 965 rtm->rtm_flags = RTF_UP | RTF_STATIC | RTF_GATEWAY | RTF_HOST; in has_ipv6_default_route()
|
| /xnu-12377.41.6/bsd/netinet6/ |
| H A D | scope6.c | 273 VERIFY(rt->rt_flags & RTF_GATEWAY); in rtgw_to_sa6()
|
| H A D | icmp6.c | 2719 SA(&sgw), NULL, RTF_GATEWAY | RTF_HOST, in icmp6_redirect_input() 2859 if (rt->rt_gateway && (rt->rt_flags & RTF_GATEWAY)) { in icmp6_redirect_output() 2887 if (rt->rt_flags & RTF_GATEWAY) { in icmp6_redirect_output() 2938 if (!(rt_router->rt_flags & RTF_GATEWAY) && in icmp6_redirect_output()
|
| H A D | ip6_forward.c | 615 if (rt->rt_flags & RTF_GATEWAY) { in ip6_forward()
|
| H A D | in6_rmx.c | 301 RTF_GATEWAY)) == RTF_CLONING && in in6_addroute()
|
| H A D | in6_src.c | 324 (ro->ro_rt->rt_flags & RTF_GATEWAY) && in in6_selectsrc_core() 1006 if ((temp_rt->rt_flags & RTF_GATEWAY) == 0) { in selectroute()
|
| H A D | nd6.c | 2476 if ((rt->rt_flags & RTF_GATEWAY) || (rt->rt_flags & RTF_LLINFO) == 0 || in nd6_lookup() 2748 if (rt->rt_flags & RTF_GATEWAY) { in nd6_rtrequest() 3568 if ((rt->rt_flags & (RTF_GATEWAY | RTF_LLINFO)) != RTF_LLINFO) { in nd6_cache_lladdr() 3948 if (rt->rt_flags & RTF_GATEWAY) { in nd6_output_list()
|
| H A D | nd6_rtr.c | 953 int rtflags = RTF_GATEWAY; in defrouter_addreq() 1189 RTF_GATEWAY, &oldrt, ifscope); in defrouter_delreq() 3810 if (temp_route != NULL && temp_route->rt_flags & RTF_GATEWAY && temp_route->rt_ifp != NULL) { in nd6_prefix_onlink_common()
|
| H A D | ipsec.c | 2596 if (ro6->ro_rt->rt_flags & RTF_GATEWAY) { in ipsec6_update_routecache_and_output() 3261 if (ro4->ro_rt->rt_flags & RTF_GATEWAY) { in ipsec4_output_internal() 4233 if (ro6->ro_rt->rt_flags & RTF_GATEWAY) { in ipsec6_output_tunnel_internal()
|
| H A D | ip6_input.c | 706 (rin6->ro_rt->rt_flags & (RTF_HOST | RTF_GATEWAY)) == RTF_HOST && in ip6_input_check_interface()
|
| H A D | ip6_output.c | 1347 } else if ((rt->rt_flags & RTF_GATEWAY)) { in ip6_output_list()
|
| /xnu-12377.41.6/bsd/kern/ |
| H A D | netboot.c | 523 flags |= RTF_GATEWAY; in default_route_add()
|
| /xnu-12377.41.6/tests/skywalk/ |
| H A D | skywalk_test_common.c | 2125 rtmsg.hdr.rtm_flags |= RTF_GATEWAY; in IPv4RouteApply() 2141 if ((rtmsg.hdr.rtm_flags & RTF_GATEWAY) != 0) { in IPv4RouteApply() 2789 !(rtm->rtm_flags & RTF_GATEWAY) && in skt_add_arp_entry()
|
| /xnu-12377.41.6/bsd/netinet/ |
| H A D | ip_output.c | 878 if (ro->ro_rt->rt_flags & RTF_GATEWAY) { in ip_output_list() 3292 (rt->rt_flags & RTF_GATEWAY)) { in in_selectsrcif() 3317 !(ro->ro_rt->rt_flags & RTF_GATEWAY) && in in_selectsrcif()
|
| H A D | in_arp.c | 900 if (rt->rt_flags & RTF_GATEWAY) { in arp_rtrequest() 1162 if (rt->rt_flags & RTF_GATEWAY) { in arp_lookup_route()
|
| H A D | ip_icmp.c | 784 SA(&icmpdst), NULL, RTF_GATEWAY | RTF_HOST, in icmp_input()
|
| H A D | ip_input.c | 3186 if (rt->rt_flags & RTF_GATEWAY) { in ip_forward()
|
| /xnu-12377.41.6/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_route.c | 492 if (gwrt != rt && (rt->rt_flags & RTF_GATEWAY) && in flow_route_configure()
|