summaryrefslogtreecommitdiff
path: root/sys/netinet/if_ether.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2015-12-02 13:29:27 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2015-12-02 13:29:27 +0000
commit829c3f1d9e6988fa2c4497774dcb2330bc439d45 (patch)
tree979514c43c1b84f23454d53733e3462eed85e9eb /sys/netinet/if_ether.c
parent62e621509c602e1241ab5aa91d796d395e2527d7 (diff)
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/if_ether.c')
-rw-r--r--sys/netinet/if_ether.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index 533dcd746f7..33d71c9d6c4 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ether.c,v 1.192 2015/12/02 09:28:46 mpi Exp $ */
+/* $OpenBSD: if_ether.c,v 1.193 2015/12/02 13:29:26 claudio Exp $ */
/* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */
/*
@@ -704,7 +704,7 @@ arplookup(u_int32_t addr, int create, int proxy, u_int tableid)
sin.sin_family = AF_INET;
sin.sin_addr.s_addr = addr;
sin.sin_other = proxy ? SIN_PROXY : 0;
- flags = (create) ? (RT_REPORT|RT_RESOLVE) : 0;
+ flags = (create) ? RT_RESOLVE : 0;
rt = rtalloc((struct sockaddr *)&sin, flags, tableid);
if (!rtisvalid(rt) || ISSET(rt->rt_flags, RTF_GATEWAY) ||