| /openbsd/src/sys/net/ |
| D | route.c | 326 if (ISSET(rt->rt_flags, RTF_GATEWAY)) { in rtisvalid() 328 KASSERT(!ISSET(rt->rt_gwroute->rt_flags, RTF_GATEWAY)); in rtisvalid() 551 if (ISSET(nhrt->rt_flags, RTF_CLONING|RTF_GATEWAY)) { in rt_setgwroute() 594 if (!ISSET(rt->rt_flags, RTF_GATEWAY)) in rt_putgwroute() 678 int flags = RTF_GATEWAY|RTF_HOST; in rtredirect() 685 if (!rtisvalid(rt) || ISSET(rt->rt_flags, RTF_GATEWAY)) { in rtredirect() 725 if (ISSET(rt->rt_flags, RTF_GATEWAY)) { in rtredirect() 1148 if (ISSET(rt->rt_flags, RTF_GATEWAY)) in rt_setgate() 1165 if (ISSET(rt->rt_flags, RTF_GATEWAY)) { in rt_getll()
|
| D | route.h | 148 #define RTF_GATEWAY 0x2 /* destination is a gateway */ macro
|
| D | bfd.c | 183 if (ISSET(rt->rt_flags, RTF_GATEWAY) || !ISSET(rt->rt_flags, RTF_HOST)) in bfdset()
|
| /openbsd/src/sbin/iked/ |
| D | vroute.c | 209 vroute_doroute(env, RTF_UP | RTF_GATEWAY | RTF_STATIC, in vroute_cleanup() 602 flags = RTF_UP | RTF_GATEWAY | RTF_STATIC; in vroute_getroute() 690 flags |= RTF_GATEWAY; in vroute_getcloneroute() 843 flags & RTF_GATEWAY ? "G" : "", in vroute_doroute() 894 *need_gw = rtm.rtm_flags & RTF_GATEWAY; in vroute_process()
|
| /openbsd/src/sys/netinet6/ |
| D | nd6.c | 577 if ((rt->rt_flags & RTF_GATEWAY) || (rt->rt_flags & RTF_LLINFO) == 0 || in nd6_lookup() 714 if ((rt->rt_flags & RTF_GATEWAY) != 0 || in nd6_nud_hint() 758 if (ISSET(rt->rt_flags, RTF_GATEWAY|RTF_MULTICAST|RTF_MPLS)) in nd6_rtrequest() 1088 if ((rt->rt_flags & (RTF_GATEWAY | RTF_LLINFO)) != RTF_LLINFO) { in nd6_cache_lladdr()
|
| D | icmp6.c | 1516 if (rt->rt_gateway && (rt->rt_flags & RTF_GATEWAY)) { in icmp6_redirect_output() 1542 if (rt->rt_flags & RTF_GATEWAY) { in icmp6_redirect_output() 1579 (nrt->rt_flags & (RTF_GATEWAY|RTF_LLINFO)) == RTF_LLINFO && in icmp6_redirect_output() 1815 info.rti_flags = RTF_GATEWAY | RTF_HOST | RTF_DYNAMIC; in icmp6_mtudisc_clone()
|
| D | ip6_forward.c | 265 if (rt->rt_flags & RTF_GATEWAY) in ip6_forward()
|
| /openbsd/src/usr.sbin/relayd/ |
| D | pfe_route.c | 136 hdr.rtm_flags = RTF_STATIC | RTF_GATEWAY | RTF_MPATH; in pfe_route()
|
| /openbsd/src/usr.sbin/rarpd/ |
| D | arptab.c | 128 !(rtm->rtm_flags & RTF_GATEWAY)) in arptab_set()
|
| /openbsd/src/usr.sbin/ndp/ |
| D | ndp.c | 364 !(rtm->rtm_flags & RTF_GATEWAY)) { in set() 436 if ((rtm->rtm_flags & RTF_GATEWAY) == 0) in delete()
|
| /openbsd/src/usr.sbin/arp/ |
| D | arp.c | 331 !(rtm->rtm_flags & RTF_GATEWAY)) in set() 421 if ((rtm->rtm_flags & RTF_GATEWAY) == 0) in delete()
|
| /openbsd/src/sys/netinet/ |
| D | if_ether.c | 167 RTF_GATEWAY|RTF_BROADCAST|RTF_MULTICAST|RTF_MPLS)) in arp_rtrequest() 784 if (!rtisvalid(rt) || ISSET(rt->rt_flags, RTF_GATEWAY) || in arplookup()
|
| D | ip_input.c | 1287 ISSET(rt->rt_flags, RTF_GATEWAY))) { in ip_dooptions() 1623 if (rt->rt_flags & RTF_GATEWAY) in ip_forward()
|
| D | ip_icmp.c | 975 info.rti_flags = RTF_GATEWAY | RTF_HOST | RTF_DYNAMIC; in icmp_mtudisc_clone()
|
| /openbsd/src/usr.sbin/npppd/npppd/ |
| D | npppd_subr.c | 175 rtm->rtm_flags |= RTF_GATEWAY; in in_route0()
|
| /openbsd/src/sbin/dhcpleased/ |
| D | dhcpleased.c | 1039 RTF_GATEWAY); in configure_routes() 1044 &dst, &mask, &gw, NULL, RTF_GATEWAY); in configure_routes()
|
| /openbsd/src/usr.bin/netstat/ |
| D | show.c | 74 { RTF_GATEWAY, 'G' },
|
| /openbsd/src/sbin/route/ |
| D | route.c | 396 if ((rtm->rtm_flags & (RTF_GATEWAY|RTF_STATIC|RTF_LLINFO)) == 0) in flushroutes() 792 flags |= RTF_GATEWAY; in newroute() 1770 if (gate && rtm->rtm_flags & RTF_GATEWAY) in print_getmsg()
|
| D | show.c | 75 { RTF_GATEWAY, 'G' },
|
| /openbsd/src/usr.sbin/route6d/ |
| D | route6d.c | 1259 rrt->rrt_flags = RTF_UP|RTF_GATEWAY; in riprecv() 2294 RTFLAG("G", RTF_GATEWAY); in rtflags() 2467 if ((rtm->rtm_flags & (RTF_HOST|RTF_GATEWAY)) == RTF_HOST) in rt_entry() 2634 rtm->rtm_flags = RTF_UP | RTF_GATEWAY; in delroute()
|
| /openbsd/src/usr.sbin/eigrpd/ |
| D | kroute.c | 1085 hdr.rtm_flags |= RTF_GATEWAY; in send_rtmsg_v4() 1175 hdr.rtm_flags |= RTF_GATEWAY; in send_rtmsg_v6()
|
| /openbsd/src/usr.sbin/ldpd/ |
| D | kroute.c | 1240 hdr.rtm_flags |= RTF_GATEWAY; in send_rtmsg_v4() 1384 hdr.rtm_flags |= RTF_GATEWAY; in send_rtmsg_v6()
|
| /openbsd/src/sbin/slaacd/ |
| D | slaacd.c | 737 rtm.rtm_flags = RTF_UP | RTF_GATEWAY | RTF_STATIC | RTF_MPATH; in configure_gateway()
|
| /openbsd/src/usr.sbin/pppd/ |
| D | sys-bsd.c | 1091 rtmsg.hdr.rtm_flags = RTF_UP | RTF_GATEWAY; in dodefaultroute()
|
| /openbsd/src/usr.sbin/bgpd/ |
| D | kroute.c | 2760 hdr.rtm_flags |= RTF_GATEWAY; in send_rtmsg() 2810 hdr.rtm_flags &= ~RTF_GATEWAY; in send_rtmsg() 3134 if (rtm->rtm_flags & RTF_GATEWAY) { in dispatch_rtmsg_addr()
|