Home
last modified time | relevance | path

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

/f-stack/freebsd/net/
H A Droute.c203 KASSERT(((flags & ~(RTF_GATEWAY)) == 0), in rib_add_redirect()
274 if ((flags & RTF_GATEWAY) == 0) { in ifa_ifwithroute()
371 if ((nhop_get_rtflags(nh) & RTF_GATEWAY) && in rt_exportinfo()
385 if (nhop_get_rtflags(nh) & RTF_GATEWAY) { in rt_exportinfo()
569 else if ((info->rti_flags & RTF_GATEWAY) != 0 && in rt_getifa_fib()
661 if (rt->rt_flags & RTF_GATEWAY) {
H A Droute.h173 #define RTF_GATEWAY 0x2 /* destination is a gateway */ macro
H A Drtsock.c610 info->rti_flags |= RTF_GATEWAY; in fill_blackholeinfo()
691 info->rti_flags &= ~RTF_GATEWAY; in fill_addrinfo()
954 rtm->rtm_flags = RTF_GATEWAY | in update_rtm_from_rc()
2185 rtm->rtm_flags = RTF_GATEWAY | in sysctl_dumpnhop()
/f-stack/freebsd/net/route/
H A Dnhop_ctl.c222 if (info->rti_flags & RTF_GATEWAY) { in set_nhop_gw_from_info()
271 res |= (rt_flags & RTF_GATEWAY) ? NHF_GATEWAY : 0; in convert_rt_to_nh_flags()
429 nh->nh_priv->rt_flags &= ~RTF_GATEWAY; in alter_nhop_from_info()
430 nh->nh_priv->rt_flags |= (RTF_GATEWAY & info->rti_flags); in alter_nhop_from_info()
H A Dnhop.h75 (RTF_GATEWAY | RTF_HOST | RTF_REJECT | RTF_BLACKHOLE | \
H A Droute_var.h197 #define NHOP_RT_FLAG_MASK (RTF_GATEWAY | RTF_HOST | RTF_REJECT | RTF_DYNAMIC | \
H A Droute_ctl.c590 if ((flags & RTF_GATEWAY) && !gateway) in create_rtentry()
880 if ((info->rti_flags & RTF_GATEWAY) && in rib_change_route()
888 info->rti_flags &= ~RTF_GATEWAY; in rib_change_route()
/f-stack/tools/compat/include/net/route/
H A Dnhop.h75 (RTF_GATEWAY | RTF_HOST | RTF_REJECT | RTF_BLACKHOLE | \
/f-stack/lib/
H A Dff_route.c495 info->rti_flags |= RTF_GATEWAY; in fill_blackholeinfo()
576 info->rti_flags &= ~RTF_GATEWAY; in fill_addrinfo()
1003 rtm->rtm_flags = RTF_GATEWAY | in update_rtm_from_rc()
1338 info.rti_flags &= ~RTF_GATEWAY;
1544 rtm->rtm_flags = RTF_GATEWAY |
H A Dff_veth.c414 info.rti_flags = RTF_GATEWAY; in ff_veth_set_gateway()
526 info.rti_flags = RTF_GATEWAY; in ff_veth_set_gateway6()
H A Dff_syscall_wrapper.c1346 rtflag = RTF_GATEWAY; in ff_route_ctl()
/f-stack/tools/compat/include/net/
H A Droute.h171 #define RTF_GATEWAY 0x2 /* destination is a gateway */ macro
/f-stack/tools/arp/
H A Darp.c451 (rtm->rtm_flags & RTF_GATEWAY) || in set()
532 !(rtm->rtm_flags & RTF_GATEWAY) && in delete()
/f-stack/tools/ndp/
H A Dndp.c508 !(rtm->rtm_flags & RTF_GATEWAY)) { in set()
601 !(rtm->rtm_flags & RTF_GATEWAY)) { in delete()
807 isrouter = rtm->rtm_flags & RTF_GATEWAY; in dump()
/f-stack/tools/route/
H A Droute.c540 if ((rtm->rtm_flags & RTF_GATEWAY) == 0) in flushroutes_fib()
1083 flags |= RTF_GATEWAY; in newroute()
1849 if (sp[RTAX_GATEWAY] && (rtm->rtm_flags & RTF_GATEWAY))
/f-stack/tools/netstat/
H A Droute.c84 { RTF_GATEWAY, 'G', "gateway" },
/f-stack/freebsd/netinet6/
H A Dnd6_rtr.c693 info.rti_flags = RTF_GATEWAY; in defrouter_addreq()
733 info.rti_flags = RTF_GATEWAY; in defrouter_delreq()
H A Din6.c2452 ndpc.rtm.rtm_flags |= RTF_GATEWAY; in in6_lltable_dump_entry()
H A Dicmp6.c2388 rt_flags |= RTF_GATEWAY; in icmp6_redirect_input()
/f-stack/freebsd/netinet/
H A Dip_icmp.c723 RTF_GATEWAY, V_redirtimeout); in icmp_input()
H A Din.c1405 if (rt_flags & RTF_GATEWAY) { in in_lltable_rtcheck()