Home
last modified time | relevance | path

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

12

/openbsd/src/sys/net/
Droute.c326 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()
Droute.h148 #define RTF_GATEWAY 0x2 /* destination is a gateway */ macro
Dbfd.c183 if (ISSET(rt->rt_flags, RTF_GATEWAY) || !ISSET(rt->rt_flags, RTF_HOST)) in bfdset()
/openbsd/src/sbin/iked/
Dvroute.c209 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/
Dnd6.c577 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()
Dicmp6.c1516 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()
Dip6_forward.c265 if (rt->rt_flags & RTF_GATEWAY) in ip6_forward()
/openbsd/src/usr.sbin/relayd/
Dpfe_route.c136 hdr.rtm_flags = RTF_STATIC | RTF_GATEWAY | RTF_MPATH; in pfe_route()
/openbsd/src/usr.sbin/rarpd/
Darptab.c128 !(rtm->rtm_flags & RTF_GATEWAY)) in arptab_set()
/openbsd/src/usr.sbin/ndp/
Dndp.c364 !(rtm->rtm_flags & RTF_GATEWAY)) { in set()
436 if ((rtm->rtm_flags & RTF_GATEWAY) == 0) in delete()
/openbsd/src/usr.sbin/arp/
Darp.c331 !(rtm->rtm_flags & RTF_GATEWAY)) in set()
421 if ((rtm->rtm_flags & RTF_GATEWAY) == 0) in delete()
/openbsd/src/sys/netinet/
Dif_ether.c167 RTF_GATEWAY|RTF_BROADCAST|RTF_MULTICAST|RTF_MPLS)) in arp_rtrequest()
784 if (!rtisvalid(rt) || ISSET(rt->rt_flags, RTF_GATEWAY) || in arplookup()
Dip_input.c1287 ISSET(rt->rt_flags, RTF_GATEWAY))) { in ip_dooptions()
1623 if (rt->rt_flags & RTF_GATEWAY) in ip_forward()
Dip_icmp.c975 info.rti_flags = RTF_GATEWAY | RTF_HOST | RTF_DYNAMIC; in icmp_mtudisc_clone()
/openbsd/src/usr.sbin/npppd/npppd/
Dnpppd_subr.c175 rtm->rtm_flags |= RTF_GATEWAY; in in_route0()
/openbsd/src/sbin/dhcpleased/
Ddhcpleased.c1039 RTF_GATEWAY); in configure_routes()
1044 &dst, &mask, &gw, NULL, RTF_GATEWAY); in configure_routes()
/openbsd/src/usr.bin/netstat/
Dshow.c74 { RTF_GATEWAY, 'G' },
/openbsd/src/sbin/route/
Droute.c396 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()
Dshow.c75 { RTF_GATEWAY, 'G' },
/openbsd/src/usr.sbin/route6d/
Droute6d.c1259 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/
Dkroute.c1085 hdr.rtm_flags |= RTF_GATEWAY; in send_rtmsg_v4()
1175 hdr.rtm_flags |= RTF_GATEWAY; in send_rtmsg_v6()
/openbsd/src/usr.sbin/ldpd/
Dkroute.c1240 hdr.rtm_flags |= RTF_GATEWAY; in send_rtmsg_v4()
1384 hdr.rtm_flags |= RTF_GATEWAY; in send_rtmsg_v6()
/openbsd/src/sbin/slaacd/
Dslaacd.c737 rtm.rtm_flags = RTF_UP | RTF_GATEWAY | RTF_STATIC | RTF_MPATH; in configure_gateway()
/openbsd/src/usr.sbin/pppd/
Dsys-bsd.c1091 rtmsg.hdr.rtm_flags = RTF_UP | RTF_GATEWAY; in dodefaultroute()
/openbsd/src/usr.sbin/bgpd/
Dkroute.c2760 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()

12