Home
last modified time | relevance | path

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

12

/netbsd/src/sbin/route/
Dshow.c136 RTF_CONNECTED | RTF_DYNAMIC | RTF_GATEWAY | RTF_HOST | RTF_LLDATA | in show()
Droute.c343 if (!(rtm->rtm_flags & (RTF_GATEWAY | RTF_STATIC)) && !doall) in flushroutes()
645 flags |= RTF_GATEWAY; in newroute()
1569 if (gate && rtm->rtm_flags & RTF_GATEWAY) { in print_getmsg()
1624 return (rtm->rtm_addrs & RTF_GATEWAY) == 0; in print_getmsg()
Drtutil.c75 { RTF_GATEWAY, 'G' },
/netbsd/src/sys/net/
Droute.c134 #define PRESERVED_RTF (RTF_UP | RTF_GATEWAY | RTF_HOST | RTF_DONE | RTF_MASK)
878 if (rt->rt_flags & RTF_GATEWAY) { in rtredirect()
887 flags |= RTF_GATEWAY | RTF_DYNAMIC; in rtredirect()
988 if ((flags & RTF_GATEWAY) == 0) { in ifa_ifwithroute_psref()
1017 if (rt->rt_flags & RTF_GATEWAY) { in ifa_ifwithroute_psref()
1343 if (rt->rt_flags & RTF_GATEWAY) { in rt_setgate()
2301 return (rt->rt_flags & RTF_GATEWAY) ? in rt_check_reject_route()
Dif_mpls.c434 if ((rt->rt_flags & RTF_GATEWAY) == 0 || in mpls_lse()
482 if ((rt->rt_flags & RTF_GATEWAY) == 0) { in mpls_lse()
Droute.h154 #define RTF_GATEWAY 0x2 /* destination is a gateway */ macro
Dnd.c402 error = (rt != NULL && rt->rt_flags & RTF_GATEWAY) ? in nd_resolve()
/netbsd/src/share/examples/rump/virtual_ip_router/
Drumprouter.c136 rtm.rtm_flags = RTF_UP | RTF_GATEWAY | RTF_STATIC; in configure_routing()
/netbsd/src/usr.sbin/rarpd/
Dmkarp.c94 (rtflags & (RTF_LLDATA|RTF_GATEWAY)) != RTF_LLDATA) in is_llinfo()
/netbsd/src/tests/net/config/
Dnetconfig.c149 rtm.rtm_flags = RTF_UP | RTF_GATEWAY | RTF_STATIC; in netcfg_rump_route()
/netbsd/src/usr.bin/rump_dhcpclient/
Dif-bsd.c228 rtm.hdr.rtm_flags |= RTF_GATEWAY; in if_route()
/netbsd/src/sys/netinet6/
Dicmp6.c2436 RTF_GATEWAY | RTF_HOST, sin6tosa(&ssrc), &newrt); in icmp6_redirect_input()
2554 if (rt->rt_gateway && (rt->rt_flags & RTF_GATEWAY)) { in icmp6_redirect_output()
2580 if (rt->rt_flags & RTF_GATEWAY) { in icmp6_redirect_output()
2832 RTF_GATEWAY | RTF_HOST | RTF_DYNAMIC, &nrt); in icmp6_mtudisc_clone()
2885 if ((rt->rt_flags & (RTF_GATEWAY | RTF_DYNAMIC | RTF_HOST)) == in icmp6_redirect_timeout()
2886 (RTF_GATEWAY | RTF_DYNAMIC | RTF_HOST)) { in icmp6_redirect_timeout()
Dip6_forward.c298 if (rt->rt_flags & RTF_GATEWAY) in ip6_forward()
Dip6_flow.c344 if (rt->rt_flags & RTF_GATEWAY) in ip6flow_fastforward()
Din6_src.c661 if (rt == NULL || (rt->rt_flags & RTF_GATEWAY) != 0 || in in6_selectroute()
/netbsd/src/sys/netinet/
Dip_icmp.c645 NULL, RTF_GATEWAY | RTF_HOST, sintosa(&icmpgw), &rt); in _icmp_input()
1164 RTF_GATEWAY | RTF_HOST | RTF_DYNAMIC, &nrt); in icmp_mtudisc()
Dip_flow.c348 if (rt->rt_flags & RTF_GATEWAY) in ipflow_fastforward()
Dip_output.c369 if (rt->rt_flags & RTF_GATEWAY) in ip_output()
397 if (rt->rt_flags & RTF_GATEWAY) in ip_output()
/netbsd/src/sbin/routed/
Dtable.c929 if (rtm->rtm_flags & RTF_GATEWAY) in rtm_add()
1550 ? RTF_GATEWAY : 0)); in fix_kern()
1555 ? RTF_GATEWAY : 0)); in fix_kern()
/netbsd/src/sys/nfs/
Dnfs_boot.c554 (RTF_UP | RTF_GATEWAY | RTF_STATIC), NULL); in nfs_boot_defrt()
/netbsd/src/usr.sbin/route6d/
Droute6d.c1214 rrt->rrt_flags = RTF_UP|RTF_GATEWAY; in riprecv()
2262 RTFLAG("G", RTF_GATEWAY); in rtflags()
2470 if ((rtm->rtm_flags & (RTF_HOST|RTF_GATEWAY)) == RTF_HOST) in rt_entry()
2646 rtm->rtm_flags = RTF_UP | RTF_GATEWAY; in delroute()
/netbsd/src/external/bsd/ppp/usr.sbin/pppd/
Dsys-bsd.c1636 rtmsg.hdr.rtm_flags = RTF_UP | RTF_GATEWAY | RTF_STATIC; in dodefaultroute()
1697 rmsg.rtm.rtm_flags = RTF_GATEWAY; in dodefaultroute6()
/netbsd/src/usr.sbin/arp/
Darp.c390 (rtflags & (RTF_LLDATA|RTF_GATEWAY)) != RTF_LLDATA) in is_llinfo()
/netbsd/src/sys/fs/nfs/common/
Dbootp_subr.c1092 (RTF_UP | RTF_GATEWAY | RTF_STATIC), NULL, RT_DEFAULT_FIB); in bootpc_add_default_route()
1113 (RTF_UP | RTF_GATEWAY | RTF_STATIC), NULL, RT_DEFAULT_FIB); in bootpc_remove_default_route()
/netbsd/src/usr.sbin/ndp/
Dndp.c338 !(rtm->rtm_flags & RTF_GATEWAY)) { in set()

12