diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1999-02-05 01:57:33 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1999-02-05 01:57:33 +0000 |
commit | 7de5ae58f60cba4030bf9f41d75f07e7a8c5b410 (patch) | |
tree | ee84b069da066644404382b1e1dada198a035970 | |
parent | a53e6b94f4676dbce0267ea909bc0f6c9de4fca0 (diff) |
Don't count IPsec-related "route misses", as we're not really finding
unreachable hosts/networks.
-rw-r--r-- | sys/net/route.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index 7eefced29f4..aa773c3e321 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.10 1999/02/04 00:54:03 deraadt Exp $ */ +/* $OpenBSD: route.c,v 1.11 1999/02/05 01:57:32 angelos Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -204,7 +204,8 @@ rtalloc1(dst, report) } else rt->rt_refcnt++; } else { - rtstat.rts_unreach++; + if (dst->sa_family != AF_ENCAP) + 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 |