summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2008-06-06 13:29:44 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2008-06-06 13:29:44 +0000
commit199ccd4de410849cd37ff474bd38e5808513b888 (patch)
tree455411d3b879d0ed3f01d0fcf0029b03fb54c90a /sys
parent0259b0f4b115467d517e64a6e5b3477ff1a2852d (diff)
we must not hardcode the route priority in arplookup, it does not
just insert arp entries. the inserted routes will have the right priority no matter what, most times cloned. problem found by Joerg Goltermann <jg@osn.de>, fix by his colleague Armin Wolgermann <aw@osn.de>, ok claudio
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/if_ether.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index 1f1adef8b8b..60d0ec86fd1 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ether.c,v 1.74 2008/05/11 03:50:23 krw Exp $ */
+/* $OpenBSD: if_ether.c,v 1.75 2008/06/06 13:29:43 henning Exp $ */
/* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */
/*
@@ -794,7 +794,6 @@ arplookup(addr, create, proxy)
if (rt == 0)
return (0);
rt->rt_refcnt--;
- rt->rt_priority = RTP_CONNECTED;
if ((rt->rt_flags & RTF_GATEWAY) || (rt->rt_flags & RTF_LLINFO) == 0 ||
rt->rt_gateway->sa_family != AF_LINK) {
if (create) {