/netbsd/usr.sbin/ldpd/ |
H A D | mpls_routes.c | 355 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 D | show.c | 82 flags |= RTF_HOST; in parse_show_opts() 136 RTF_CONNECTED | RTF_DYNAMIC | RTF_GATEWAY | RTF_HOST | RTF_LLDATA | in show()
|
H A D | rtutil.c | 76 { 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 D | route.c | 399 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 D | if_faith.c | 195 rt->rt_flags & RTF_HOST ? EHOSTUNREACH : ENETUNREACH); in faithoutput()
|
H A D | if_loop.c | 263 rt->rt_flags & RTF_HOST ? EHOSTUNREACH : ENETUNREACH); in looutput()
|
H A D | route.h | 155 #define RTF_HOST 0x4 /* host entry (net otherwise) */ macro
|
H A D | rtsock.c | 163 flags |= RTF_HOST | RTF_CLONED | RTF_LLINFO; in rt_clonedmsg()
|
/netbsd/sys/netinet/ |
H A D | ip_icmp.c | 645 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 D | in.c | 635 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 D | ip_carp.c | 415 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 D | tcp_subr.c | 1563 if ((rt->rt_flags & RTF_HOST) == 0) { in tcp_mtudisc() 1623 if ((rt->rt_flags & RTF_HOST) == 0) { in tcp6_mtudisc()
|
H A D | ip_output.c | 371 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 D | if-bsd.c | 224 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 D | at_control.c | 366 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 D | ndp.c | 505 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 D | route.c | 109 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 D | if-bsd.c | 744 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 D | icmp6.c | 1184 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 D | ip6_input.c | 461 (rt->rt_flags & (RTF_HOST|RTF_GATEWAY)) == RTF_HOST && in ip6_input()
|
H A D | in6_src.c | 781 error = (rt->rt_flags & RTF_HOST ? EHOSTUNREACH : ENETUNREACH); in in6_selectif()
|
/netbsd/usr.sbin/rarpd/ |
H A D | mkarp.c | 236 rtm->rtm_flags |= (RTF_HOST | RTF_STATIC | RTF_LLDATA); in rtmsg()
|
/netbsd/usr.sbin/route6d/ |
H A D | route6d.c | 1219 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 D | arp.c | 716 rtm->rtm_flags |= (RTF_HOST | RTF_STATIC | RTF_LLDATA); in rtmsg() 720 rtm->rtm_flags &= ~RTF_HOST; in rtmsg()
|
/netbsd/sbin/routed/ |
H A D | table.c | 722 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()
|