Home
last modified time | relevance | path

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

12

/netbsd/usr.sbin/ldpd/
H A Dmpls_routes.c355 rm.m_rtm.rtm_flags |= RTF_HOST; in add_route()
420 rm.m_rtm.rtm_flags |= RTF_HOST; in delete_route()
680 rg->m_rtm.rtm_flags & RTF_HOST); in check_route()
690 rg->m_rtm.rtm_flags & RTF_HOST); in check_route()
697 rg->m_rtm.rtm_flags & RTF_HOST); in check_route()
893 if (rtmes->rtm_flags & RTF_HOST) { in bind_current_routes()
912 rtmes->rtm_flags & RTF_HOST ? NULL : so_pref, in bind_current_routes()
914 if (rtmes->rtm_flags & RTF_HOST) in bind_current_routes()
925 rtmes->rtm_flags & RTF_HOST); in bind_current_routes()
927 if (rtmes->rtm_flags & RTF_HOST) in bind_current_routes()
[all …]
/netbsd/sbin/route/
H A Dshow.c82 flags |= RTF_HOST; in parse_show_opts()
136 RTF_CONNECTED | RTF_DYNAMIC | RTF_GATEWAY | RTF_HOST | RTF_LLDATA | in show()
H A Drtutil.c76 { RTF_HOST, 'H' },
280 p_sockaddr(rti_info[RTAX_GATEWAY], NULL, RTF_HOST, in p_rtentry()
358 if (rflags & RTF_HOST) in p_sockaddr()
366 if ((rflags & RTF_HOST) || mask == NULL) in p_sockaddr()
798 p_sockaddr(sa, 0, RTF_HOST, WID_GW(gwaf), flags); in p_gwaddr()
/netbsd/sys/net/
H A Droute.c399 if ((rt->rt_flags & RTF_HOST) == 0 && ifa->ifa_netmask) { in rt_ifa_connected()
879 if (((rt->rt_flags & RTF_HOST) == 0) && (flags & RTF_HOST)) { in rtredirect()
996 if ((flags & RTF_HOST) && gateway->sa_family != AF_LINK) in ifa_ifwithroute_psref()
1165 if (flags & RTF_HOST) in rtrequest1()
1625 dst = flags & RTF_HOST ? ifa->ifa_dstaddr : ifa->ifa_addr; in rtinit()
1627 if ((flags & RTF_HOST) == 0 && ifa->ifa_netmask) { in rtinit()
1636 return (flags & RTF_HOST) ? EHOSTUNREACH in rtinit()
1700 if (rt == NULL || (rt->rt_flags & RTF_HOST) == 0 || in rt_ifa_addlocal()
1707 info.rti_flags = RTF_HOST | RTF_LOCAL | RTF_DONTCHANGEIFA; in rt_ifa_addlocal()
1753 (rt->rt_flags & RTF_HOST) && in rt_ifa_remlocal()
[all …]
H A Dif_faith.c195 rt->rt_flags & RTF_HOST ? EHOSTUNREACH : ENETUNREACH); in faithoutput()
H A Dif_loop.c263 rt->rt_flags & RTF_HOST ? EHOSTUNREACH : ENETUNREACH); in looutput()
H A Droute.h155 #define RTF_HOST 0x4 /* host entry (net otherwise) */ macro
H A Drtsock.c163 flags |= RTF_HOST | RTF_CLONED | RTF_LLINFO; in rt_clonedmsg()
/netbsd/sys/netinet/
H A Dip_icmp.c645 NULL, RTF_GATEWAY | RTF_HOST, sintosa(&icmpgw), &rt); in _icmp_input()
1160 if ((rt->rt_flags & RTF_HOST) == 0) { in icmp_mtudisc()
1164 RTF_GATEWAY | RTF_HOST | RTF_DYNAMIC, &nrt); in icmp_mtudisc()
1280 if ((rt->rt_flags & (RTF_DYNAMIC | RTF_HOST)) == in icmp_mtudisc_timeout()
1281 (RTF_DYNAMIC | RTF_HOST)) { in icmp_mtudisc_timeout()
1302 if ((rt->rt_flags & (RTF_DYNAMIC | RTF_HOST)) == in icmp_redirect_timeout()
1303 (RTF_DYNAMIC | RTF_HOST)) { in icmp_redirect_timeout()
H A Din.c635 rtinit(&ia->ia_ifa, RTM_DELETE, RTF_HOST); in in_control0()
637 rtinit(&ia->ia_ifa, RTM_ADD, RTF_HOST|RTF_UP); in in_control0()
1267 flags |= RTF_HOST; in in_ifinit()
1271 flags |= RTF_HOST; in in_ifinit()
1303 ? RTF_HOST : 0)
1317 if ((flags & RTF_HOST) != 0) in in_addprefix()
2097 if (!(rt->rt_flags & RTF_HOST) || !rt->rt_ifp || in in_lltable_rtcheck()
2113 if (!(rt->rt_flags & RTF_HOST) && rt->rt_ifp != ifp) { in in_lltable_rtcheck()
H A Dip_carp.c415 RTF_HOST, NULL); in carp_setroute()
419 ifa->ifa_netmask, RTF_HOST, &rt); in carp_setroute()
442 RTF_UP | RTF_HOST, NULL); in carp_setroute()
H A Dtcp_subr.c1563 if ((rt->rt_flags & RTF_HOST) == 0) { in tcp_mtudisc()
1623 if ((rt->rt_flags & RTF_HOST) == 0) { in tcp6_mtudisc()
H A Dip_output.c371 if (rt->rt_flags & RTF_HOST) in ip_output()
399 if (rt->rt_flags & RTF_HOST) in ip_output()
/netbsd/usr.bin/rump_dhcpclient/
H A Dif-bsd.c224 rtm.hdr.rtm_flags |= RTF_HOST; in if_route()
234 if (rtm.hdr.rtm_flags & RTF_HOST || in if_route()
/netbsd/sys/netatalk/
H A Dat_control.c366 error = rtinit(&aa->aa_ifa, RTM_DELETE, RTF_HOST); in at_scrub()
811 flags |= RTF_HOST; in aa_dosingleroute()
817 printf("on %s %x.%x\n", (flags & RTF_HOST) ? "host" : "net", in aa_dosingleroute()
/netbsd/usr.sbin/ndp/
H A Dndp.c505 if (!(rtm->rtm_flags & RTF_HOST)) in do_foreach()
738 rtm->rtm_flags |= (RTF_HOST | RTF_STATIC | RTF_LLDATA); in rtmsg()
741 rtm->rtm_flags &= ~RTF_HOST; in rtmsg()
/netbsd/external/bsd/dhcpcd/dist/src/
H A Droute.c109 if (rt1->rt_flags & RTF_HOST && rt2->rt_flags & RTF_HOST) in rt_cmp_netmask()
274 if (rt->rt_flags & RTF_HOST) { in rt_desc()
H A Dif-bsd.c744 rtm->rtm_flags |= RTF_HOST; in if_route()
769 rtm->rtm_flags &= ~RTF_HOST; in if_route()
784 if (!(rtm->rtm_flags & RTF_HOST)) in if_route()
1278 (rt.rt_flags & RTF_HOST || rtm->rtm_type == RTM_MISS) && in if_rtm()
/netbsd/sys/netinet6/
H A Dicmp6.c1184 if (rt && (rt->rt_flags & RTF_HOST) && in icmp6_mtudisc_update()
2436 RTF_GATEWAY | RTF_HOST, sin6tosa(&ssrc), &newrt); in icmp6_redirect_input()
2832 if ((rt->rt_flags & RTF_HOST) == 0) { in icmp6_mtudisc_clone()
2836 RTF_GATEWAY | RTF_HOST | RTF_DYNAMIC, &nrt); in icmp6_mtudisc_clone()
2868 if ((rt->rt_flags & (RTF_DYNAMIC | RTF_HOST)) == in icmp6_mtudisc_timeout()
2869 (RTF_DYNAMIC | RTF_HOST)) { in icmp6_mtudisc_timeout()
2889 if ((rt->rt_flags & (RTF_GATEWAY | RTF_DYNAMIC | RTF_HOST)) == in icmp6_redirect_timeout()
2890 (RTF_GATEWAY | RTF_DYNAMIC | RTF_HOST)) { in icmp6_redirect_timeout()
H A Dip6_input.c461 (rt->rt_flags & (RTF_HOST|RTF_GATEWAY)) == RTF_HOST && in ip6_input()
H A Din6_src.c781 error = (rt->rt_flags & RTF_HOST ? EHOSTUNREACH : ENETUNREACH); in in6_selectif()
/netbsd/usr.sbin/rarpd/
H A Dmkarp.c236 rtm->rtm_flags |= (RTF_HOST | RTF_STATIC | RTF_LLDATA); in rtmsg()
/netbsd/usr.sbin/route6d/
H A Droute6d.c1219 rrt->rrt_flags |= RTF_HOST; in riprecv()
1607 if ((rtm->rtm_flags & RTF_HOST) != 0) { in rtrecv()
1941 rrt->rrt_flags = RTF_HOST; in ifrt()
2263 RTFLAG("H", RTF_HOST); in rtflags()
2470 if ((rtm->rtm_flags & (RTF_HOST|RTF_GATEWAY)) == RTF_HOST) in rt_entry()
2480 if (rtm->rtm_flags & RTF_HOST) in rt_entry()
2648 rtm->rtm_flags |= RTF_HOST; in delroute()
/netbsd/usr.sbin/arp/
H A Darp.c716 rtm->rtm_flags |= (RTF_HOST | RTF_STATIC | RTF_LLDATA); in rtmsg()
720 rtm->rtm_flags &= ~RTF_HOST; in rtmsg()
/netbsd/sbin/routed/
H A Dtable.c722 w.w_rtm.rtm_flags |= RTF_HOST; in rtioctl()
897 if (rtm->rtm_flags & RTF_HOST) { in rtm_add()
1260 : (m.r.rtm.rtm_flags & RTF_HOST) in read_rt()

12