Home
last modified time | relevance | path

Searched refs:RTF_GATEWAY (Results 1 – 25 of 29) sorted by relevance

12

/xnu-8792.41.9/bsd/net/
H A Droute.h96 #define RTF_GATEWAY 0x2 /* destination is a gateway */ macro
140 (((rt)->rt_flags & (RTF_HOST | RTF_GATEWAY)) == RTF_HOST)
144 RTF_WASCLONED | RTF_GATEWAY)) ==\
H A Droute.c957 (rt->rt_flags & RTF_GATEWAY) && in route_ignore_protocol_cloning_for_dst()
1527 if (rt->rt_flags & RTF_GATEWAY) { in rtredirect()
1539 flags |= RTF_GATEWAY | RTF_DYNAMIC; in rtredirect()
1696 if (!(flags & RTF_GATEWAY)) { in ifa_ifwithroute_common_locked()
2204 if ((flags & RTF_GATEWAY) && !gateway) { in rtrequest_common_locked()
2433 if ((rt->rt_flags & RTF_GATEWAY) && rt->rt_gwroute != NULL) { in rtrequest_common_locked()
2649 if (rt->rt_flags & RTF_GATEWAY) { in rt_setgate()
2668 if (((rt->rt_flags & (RTF_HOST | RTF_GATEWAY | RTF_LLINFO)) == in rt_setgate()
2669 RTF_GATEWAY) && loop) { in rt_setgate()
2680 if (((rt->rt_flags & (RTF_HOST | RTF_GATEWAY | RTF_LLINFO)) == in rt_setgate()
[all …]
H A Dnetsrc.c145 } else if (!(rt->rt_flags & RTF_GATEWAY) && in netsrc_common()
H A Dif_llreach.c432 if ((rt->rt_flags & RTF_GATEWAY) && in ifnet_llreach_get_defrouter()
H A Drtsock.c670 if ((rt->rt_flags & RTF_GATEWAY) && in route_output()
/xnu-8792.41.9/tools/lldbmacros/
H A Droutedefines.py2 RTF_GATEWAY = 0x2 variable
H A Dnet.py764 if (rt.rt_flags & RTF_GATEWAY):
/xnu-8792.41.9/bsd/netinet6/
H A Dscope6.c273 VERIFY(rt->rt_flags & RTF_GATEWAY); in rtgw_to_sa6()
H A Dip6_forward.c612 if (rt->rt_flags & RTF_GATEWAY) { in ip6_forward()
H A Dicmp6.c2718 (struct sockaddr *)&sgw, NULL, RTF_GATEWAY | RTF_HOST, in icmp6_redirect_input()
2858 if (rt->rt_gateway && (rt->rt_flags & RTF_GATEWAY)) { in icmp6_redirect_output()
2886 if (rt->rt_flags & RTF_GATEWAY) { in icmp6_redirect_output()
2937 if (!(rt_router->rt_flags & RTF_GATEWAY) && in icmp6_redirect_output()
H A Din6_rmx.c300 RTF_GATEWAY)) == RTF_CLONING && in in6_addroute()
H A Dnd6.c2452 if ((rt->rt_flags & RTF_GATEWAY) || (rt->rt_flags & RTF_LLINFO) == 0 || in nd6_lookup()
2724 if (rt->rt_flags & RTF_GATEWAY) { in nd6_rtrequest()
3769 if ((rt->rt_flags & (RTF_GATEWAY | RTF_LLINFO)) != RTF_LLINFO) { in nd6_cache_lladdr()
4145 if (rt->rt_flags & RTF_GATEWAY) { in nd6_output_list()
H A Dnd6_rtr.c913 int rtflags = RTF_GATEWAY; in defrouter_addreq()
1148 (struct sockaddr *)&mask, RTF_GATEWAY, &oldrt, ifscope); in defrouter_delreq()
3765 if (temp_route != NULL && temp_route->rt_flags & RTF_GATEWAY && temp_route->rt_ifp != NULL) { in nd6_prefix_onlink_common()
H A Dipsec.c2608 if (ro6->ro_rt->rt_flags & RTF_GATEWAY) { in ipsec6_update_routecache_and_output()
3274 if (ro4->ro_rt->rt_flags & RTF_GATEWAY) { in ipsec4_output_internal()
3964 if (ro6->ro_rt->rt_flags & RTF_GATEWAY) { in ipsec6_output_tunnel_internal()
H A Din6_src.c913 if ((temp_rt->rt_flags & RTF_GATEWAY) == 0) { in selectroute()
H A Dip6_input.c702 (rin6->ro_rt->rt_flags & (RTF_HOST | RTF_GATEWAY)) == RTF_HOST && in ip6_input_check_interface()
H A Din6.c4699 if (rt == NULL || (rt->rt_flags & RTF_GATEWAY) || rt->rt_ifp != ifp) { in in6_lltable_rtcheck()
4927 ndpc.rtm.rtm_flags |= RTF_GATEWAY; in in6_lltable_dump_entry()
/xnu-8792.41.9/bsd/kern/
H A Dnetboot.c523 flags |= RTF_GATEWAY; in default_route_add()
/xnu-8792.41.9/tests/
H A Dudp_bind_connect.c82 rtm->rtm_flags = RTF_UP | RTF_STATIC | RTF_GATEWAY | RTF_HOST; in has_v4_default_route()
H A Dnet_bridge.c628 rtmsg.hdr.rtm_flags |= RTF_GATEWAY; in IPv4RouteApply()
644 if ((rtmsg.hdr.rtm_flags & RTF_GATEWAY) != 0) { in IPv4RouteApply()
/xnu-8792.41.9/bsd/netinet/
H A Dip_output.c833 if (ro->ro_rt->rt_flags & RTF_GATEWAY) { in ip_output_list()
3187 (rt->rt_flags & RTF_GATEWAY)) { in in_selectsrcif()
3212 !(ro->ro_rt->rt_flags & RTF_GATEWAY) && in in_selectsrcif()
H A Din_arp.c913 if (rt->rt_flags & RTF_GATEWAY) { in arp_rtrequest()
1172 if (rt->rt_flags & RTF_GATEWAY) { in arp_lookup_route()
H A Dip_icmp.c779 (struct sockaddr *)&icmpdst, NULL, RTF_GATEWAY | RTF_HOST, in icmp_input()
H A Din.c2482 if (rt == NULL || (rt->rt_flags & RTF_GATEWAY) || rt->rt_ifp != ifp) { in in_lltable_rtcheck()
/xnu-8792.41.9/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_route.c519 if (gwrt != rt && (rt->rt_flags & RTF_GATEWAY) && in flow_route_configure()

12