diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-08-26 15:09:27 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-08-26 15:09:27 +0000 |
commit | 166ef3c214d019317916f1ea9985b06016dfaec4 (patch) | |
tree | 093669d2815efa831f3353b79e00c1650a61492d /sys/netinet | |
parent | 8d5ab534d4eaf1b45ac75c9317eeef66ad62d1dd (diff) |
Revert the addition of broadcast addresses, it apparently also corrupts
the tree. Found by millert@.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/if_ether.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 11f7876a472..4d40891c279 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ether.c,v 1.134 2014/08/19 12:49:41 mpi Exp $ */ +/* $OpenBSD: if_ether.c,v 1.135 2014/08/26 15:09:26 mpi Exp $ */ /* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */ /* @@ -232,18 +232,6 @@ arp_rtrequest(int req, struct rtentry *rt) rt->rt_flags |= RTF_LLINFO; LIST_INSERT_HEAD(&llinfo_arp, la, la_list); - /* - * Routes to broadcast addresses must be incomplete - * arp entries so that they won't be picked up, but - * since we expect them to always be present in the - * routing table, make sure arptimer() won't free - * them. - */ - if (rt->rt_flags & RTF_BROADCAST) { - rt->rt_expire = 0; - break; - } - TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list) { if ((ifa->ifa_addr->sa_family == AF_INET) && ifatoia(ifa)->ia_addr.sin_addr.s_addr == |