summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-08-18 08:56:17 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-08-18 08:56:17 +0000
commit5b416156fa8e8431cc5b9db789be7cf04f209048 (patch)
tree957aa662861b8dfe65185260c104624d17b06d63
parent420a6ab39e04519d29e938db6b138d4c3e232c6b (diff)
Remove PF_KEY-specific hacks from rtalloc(9). They are dead since SPD
lookups use the radix API directly. ok mikeb@
-rw-r--r--sys/net/route.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index 2888fba9cfb..53c629716a3 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.220 2015/08/17 09:50:12 mpi Exp $ */
+/* $OpenBSD: route.c,v 1.221 2015/08/18 08:56:16 mpi Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
@@ -328,15 +328,9 @@ rtalloc(struct sockaddr *dst, int flags, unsigned int tableid)
} else
rt->rt_refcnt++;
} else {
- if (dst->sa_family != PF_KEY)
- rtstat.rts_unreach++;
- /*
- * IP encapsulation does lots of lookups where we don't need nor want
- * the RTM_MISSes that would be generated. It causes RTM_MISS storms
- * sent upward breaking user-level routing queries.
- */
+ rtstat.rts_unreach++;
miss:
- if (ISSET(flags, RT_REPORT) && dst->sa_family != PF_KEY) {
+ if (ISSET(flags, RT_REPORT)) {
bzero((caddr_t)&info, sizeof(info));
info.rti_info[RTAX_DST] = dst;
rt_missmsg(msgtype, &info, 0, NULL, err, tableid);