/freebsd/tests/sys/net/routing/ |
H A D | test_rtsock_multipath.py | 110 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 D | test_rtsock_l3.c | 439 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 D | route.c | 204 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 D | route.h | 167 #define RTF_GATEWAY 0x2 /* destination is a gateway */ macro
|
H A D | rtsock.c | 664 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 D | netstat-anr.gdb | 17 set $RTF_GATEWAY = 0x2 toplevelVariable 59 if ($arg0 & $RTF_GATEWAY)
|
/freebsd/sys/net/route/ |
H A D | nhop_ctl.c | 197 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 D | nhop.h | 73 (RTF_GATEWAY | RTF_HOST | RTF_REJECT | RTF_BLACKHOLE | \
|
H A D | route_ctl.c | 740 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 D | findsaddr-socket.c | 77 RTF_UP | RTF_GATEWAY | RTF_HOST | RTF_STATIC,
|
/freebsd/libexec/bootpd/ |
H A D | rtmsg.c | 148 !(rtm->rtm_flags & RTF_GATEWAY)) switch (sdl->sdl_type) { in bsd_arp_set()
|
/freebsd/sbin/route/ |
H A D | route_netlink.c | 229 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 D | route.c | 533 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 D | netconfig.c | 146 rtm.rtm_flags = RTF_UP | RTF_GATEWAY | RTF_STATIC; in netcfg_rump_route()
|
/freebsd/usr.sbin/ppp/ |
H A D | route.c | 154 { 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 D | arp.c | 409 (rtm->rtm_flags & RTF_GATEWAY) || in set_rtsock() 493 !(rtm->rtm_flags & RTF_GATEWAY) && in delete_rtsock()
|
H A D | arp_netlink.c | 132 if (r.rta_multipath.num_nhops > 0 || (r.rta_rtflags & RTF_GATEWAY)) in guess_ifindex()
|
/freebsd/usr.sbin/ndp/ |
H A D | ndp.c | 480 !(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 D | ndp_netlink.c | 167 if (r.rta_multipath.num_nhops > 0 || (r.rta_rtflags & RTF_GATEWAY)) in guess_ifindex()
|
/freebsd/sbin/routed/ |
H A D | table.c | 914 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 D | route6d.c | 1411 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 D | route.c | 70 { RTF_GATEWAY, 'G', "gateway" },
|
/freebsd/sbin/dumpon/ |
H A D | dumpon.c | 142 if ((rtm->rtm_flags & RTF_GATEWAY) == 0 || in find_gateway()
|
/freebsd/tests/atf_python/sys/net/ |
H A D | rtsock.py | 55 RTF_GATEWAY = 0x2 variable in RtConst
|
/freebsd/tests/atf_python/sys/netlink/ |
H A D | netlink_route.py | 220 RTF_GATEWAY = 0x2 variable in RtFlagsBSD
|