Home
last modified time | relevance | path

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

12

/freebsd/tests/sys/net/routing/
H A Dtest_rtsock_multipath.py110 msg.rtm_flags = RtConst.RTF_GATEWAY
147 msg.rtm_flags = RtConst.RTF_GATEWAY
171 msg.rtm_flags = RtConst.RTF_GATEWAY
174 msg.rtm_flags = RtConst.RTF_GATEWAY
196 msg.rtm_flags = RtConst.RTF_GATEWAY
199 msg.rtm_flags = RtConst.RTF_GATEWAY
212 msg.rtm_flags = RtConst.RTF_GATEWAY
238 msg.rtm_flags = RtConst.RTF_GATEWAY
H A Dtest_rtsock_l3.c439 RTF_UP | RTF_DONE | RTF_GATEWAY | RTF_STATIC); in ATF_TC_BODY()
512 verify_route_message_extra(rtm, c->ifindex, RTF_DONE | RTF_GATEWAY | RTF_STATIC); in ATF_TC_BODY()
575 RTF_UP | RTF_DONE | RTF_GATEWAY | RTF_STATIC); in ATF_TC_BODY()
593 RTF_UP | RTF_DONE | RTF_GATEWAY | RTF_STATIC); in ATF_TC_BODY()
668 desired_flags = RTF_UP | RTF_DONE | RTF_GATEWAY | test_flags; in ATF_TC_BODY()
731 RTF_UP | RTF_DONE | RTF_GATEWAY | RTF_STATIC); in ATF_TC_BODY()
780 verify_route_message_extra(rtm, c->ifindex, RTF_DONE | RTF_GATEWAY | RTF_STATIC); in ATF_TC_BODY()
847 RTF_UP | RTF_DONE | RTF_GATEWAY | RTF_STATIC); in ATF_TC_BODY()
865 RTF_UP | RTF_DONE | RTF_GATEWAY | RTF_STATIC); in ATF_TC_BODY()
940 desired_flags = RTF_UP | RTF_DONE | RTF_GATEWAY | test_flags; in ATF_TC_BODY()
[all …]
/freebsd/sys/net/
H A Droute.c204 KASSERT(((flags & ~(RTF_GATEWAY)) == 0), in rib_add_redirect()
216 nhop_set_gw(nh, gateway, flags & RTF_GATEWAY); in rib_add_redirect()
275 if ((flags & RTF_GATEWAY) == 0) { in ifa_ifwithroute()
408 ifa = ifa_ifwithroute(RTF_GATEWAY, gw, gw, fibnum); in rt_getifa_family()
460 if ((info->rti_ifa == NULL) && ((info->rti_flags & RTF_GATEWAY) != 0) && in rt_getifa_fib()
486 else if ((info->rti_flags & RTF_GATEWAY) != 0 && in rt_getifa_fib()
576 if (rt->rt_flags & RTF_GATEWAY) {
H A Droute.h167 #define RTF_GATEWAY 0x2 /* destination is a gateway */ macro
H A Drtsock.c664 info->rti_flags |= RTF_GATEWAY; in fill_blackholeinfo()
733 info->rti_flags &= ~RTF_GATEWAY; in fill_addrinfo()
1015 rtm->rtm_flags = RTF_GATEWAY | in update_rtm_from_rc()
2310 rtm->rtm_flags = RTF_GATEWAY | in sysctl_dumpnhop()
/freebsd/tools/debugscripts/
H A Dnetstat-anr.gdb17 set $RTF_GATEWAY = 0x2 toplevelVariable
59 if ($arg0 & $RTF_GATEWAY)
/freebsd/sys/net/route/
H A Dnhop_ctl.c197 bool is_gw = info->rti_flags & RTF_GATEWAY; in set_nhop_gw_from_info()
724 nh->nh_priv->rt_flags &= ~RTF_GATEWAY; in nhop_set_direct_gw()
774 nh->nh_priv->rt_flags |= RTF_GATEWAY; in nhop_set_gw()
778 nh->nh_priv->rt_flags &= ~RTF_GATEWAY; in nhop_set_gw()
832 nh->nh_priv->rt_flags &= ~RTF_GATEWAY; in nhop_set_blackhole()
H A Dnhop.h73 (RTF_GATEWAY | RTF_HOST | RTF_REJECT | RTF_BLACKHOLE | \
H A Droute_ctl.c740 if ((info->rti_flags & RTF_GATEWAY) && !gateway) { in add_route_byinfo()
1061 if ((info->rti_flags & RTF_GATEWAY) && in rib_change_route()
1069 info->rti_flags &= ~RTF_GATEWAY; in rib_change_route()
/freebsd/usr.sbin/traceroute/
H A Dfindsaddr-socket.c77 RTF_UP | RTF_GATEWAY | RTF_HOST | RTF_STATIC,
/freebsd/libexec/bootpd/
H A Drtmsg.c148 !(rtm->rtm_flags & RTF_GATEWAY)) switch (sdl->sdl_type) { in bsd_arp_set()
/freebsd/sbin/route/
H A Droute_netlink.c229 if (rtm_flags & RTF_GATEWAY) { in rtmsg_nl_int()
366 if (r.rta_gw && (r.rta_rtflags & RTF_GATEWAY)) in print_getmsg()
894 if ((r.rta_rtflags & RTF_GATEWAY) == 0) in flushroutes_fib_nl()
H A Droute.c533 if ((rtm->rtm_flags & RTF_GATEWAY) == 0) in flushroutes_fib_rtsock()
1048 flags |= RTF_GATEWAY; in newroute()
1830 if (sp[RTAX_GATEWAY] && (rtm->rtm_flags & RTF_GATEWAY)) in print_getmsg()
/freebsd/contrib/netbsd-tests/net/config/
H A Dnetconfig.c146 rtm.rtm_flags = RTF_UP | RTF_GATEWAY | RTF_STATIC; in netcfg_rump_route()
/freebsd/usr.sbin/ppp/
H A Droute.c154 { RTF_GATEWAY, 'G' },
436 (all || (rtm->rtm_flags & RTF_GATEWAY))) { in route_IfDelete()
759 rtmes.m_rtm.rtm_flags = RTF_UP | RTF_GATEWAY | RTF_STATIC; in rt_Set()
/freebsd/usr.sbin/arp/
H A Darp.c409 (rtm->rtm_flags & RTF_GATEWAY) || in set_rtsock()
493 !(rtm->rtm_flags & RTF_GATEWAY) && in delete_rtsock()
H A Darp_netlink.c132 if (r.rta_multipath.num_nhops > 0 || (r.rta_rtflags & RTF_GATEWAY)) in guess_ifindex()
/freebsd/usr.sbin/ndp/
H A Dndp.c480 !(rtm->rtm_flags & RTF_GATEWAY)) { in set()
570 !(rtm->rtm_flags & RTF_GATEWAY)) { in delete_rtsock()
794 isrouter = rtm->rtm_flags & RTF_GATEWAY; in dump_rtsock()
H A Dndp_netlink.c167 if (r.rta_multipath.num_nhops > 0 || (r.rta_rtflags & RTF_GATEWAY)) in guess_ifindex()
/freebsd/sbin/routed/
H A Dtable.c914 if (rtm->rtm_flags & RTF_GATEWAY) in rtm_add()
1530 ? RTF_GATEWAY : 0)); in fix_kern()
1535 ? RTF_GATEWAY : 0)); in fix_kern()
/freebsd/usr.sbin/route6d/
H A Droute6d.c1411 rrt->rrt_flags = RTF_UP|RTF_GATEWAY; in riprecv()
2513 RTFLAG("G", RTF_GATEWAY); in rtflags()
2674 if (!(rtm->rtm_flags & (RTF_GATEWAY|RTF_HOST|RTF_STATIC))) in rt_entry()
2727 if ((rtm->rtm_flags & (RTF_HOST|RTF_GATEWAY)) == RTF_HOST) in rt_entry()
2908 rtm->rtm_flags = RTF_UP | RTF_GATEWAY; in delroute()
/freebsd/usr.bin/netstat/
H A Droute.c70 { RTF_GATEWAY, 'G', "gateway" },
/freebsd/sbin/dumpon/
H A Ddumpon.c142 if ((rtm->rtm_flags & RTF_GATEWAY) == 0 || in find_gateway()
/freebsd/tests/atf_python/sys/net/
H A Drtsock.py55 RTF_GATEWAY = 0x2 variable in RtConst
/freebsd/tests/atf_python/sys/netlink/
H A Dnetlink_route.py220 RTF_GATEWAY = 0x2 variable in RtFlagsBSD

12