diff options
author | 2015-12-02 13:29:25 +0000 | |
---|---|---|
committer | 2015-12-02 13:29:25 +0000 | |
commit | 12d3c25ce67843c3bd1fecdb30de4e5fb2cc0b91 (patch) | |
tree | 2f2bd0fc404cbf4cbfe2e6ab09733214e6bedf87 /sys/netinet/ip_output.c | |
parent | remove unimplemented PF_KEY algorithms; ok sthen@ mpi@ mikeb@ (diff) | |
download | wireguard-openbsd-12d3c25ce67843c3bd1fecdb30de4e5fb2cc0b91.tar.xz wireguard-openbsd-12d3c25ce67843c3bd1fecdb30de4e5fb2cc0b91.zip |
Kill the RT_REPORT flag to rtalloc() and stop sending RTM_MISS messages
for failed route lookups. This is something that was maybe useful in the
90is but in this modern times it is just annoying and nothing expect it
anyway. OK mpi@, sthen@
Diffstat (limited to 'sys/netinet/ip_output.c')
-rw-r--r-- | sys/netinet/ip_output.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 58dce03f26d..0c1c8f8f291 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_output.c,v 1.309 2015/12/01 00:49:12 mmcc Exp $ */ +/* $OpenBSD: ip_output.c,v 1.310 2015/12/02 13:29:26 claudio Exp $ */ /* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */ /* @@ -501,7 +501,7 @@ sendit: if (ro && ro->ro_rt != NULL) { rtfree(ro->ro_rt); ro->ro_rt = rtalloc(&ro->ro_dst, - RT_REPORT|RT_RESOLVE, + RT_RESOLVE, m->m_pkthdr.ph_rtableid); } if (rt_mtucloned) @@ -1443,8 +1443,7 @@ ip_setmoptions(int optname, struct ip_moptions **imop, struct mbuf *m, sin.sin_len = sizeof(sin); sin.sin_family = AF_INET; sin.sin_addr = mreq->imr_multiaddr; - rt = rtalloc(sintosa(&sin), RT_REPORT|RT_RESOLVE, - rtableid); + rt = rtalloc(sintosa(&sin), RT_RESOLVE, rtableid); if (!rtisvalid(rt)) { rtfree(rt); error = EADDRNOTAVAIL; @@ -1455,7 +1454,7 @@ ip_setmoptions(int optname, struct ip_moptions **imop, struct mbuf *m, sin.sin_len = sizeof(sin); sin.sin_family = AF_INET; sin.sin_addr = mreq->imr_interface; - rt = rtalloc(sintosa(&sin), RT_REPORT, rtableid); + rt = rtalloc(sintosa(&sin), 0, rtableid); if (!rtisvalid(rt) || !ISSET(rt->rt_flags, RTF_LOCAL)) { rtfree(rt); error = EADDRNOTAVAIL; |