summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2002-07-05 23:11:09 +0000
committerangelos <angelos@openbsd.org>2002-07-05 23:11:09 +0000
commit05020a0907c3a6160fa3a71193c08cdba4190cad (patch)
treec60f8e588166b5973ec3a676215b254d27b821b1
parentNever call crp_callback directly, use crypto_done() instead (diff)
downloadwireguard-openbsd-05020a0907c3a6160fa3a71193c08cdba4190cad.tar.xz
wireguard-openbsd-05020a0907c3a6160fa3a71193c08cdba4190cad.zip
Bump ipips_family in ipipstat in all cases where EAFNOSUPPORT is returned.
-rw-r--r--sys/netinet/ip_ipip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/ip_ipip.c b/sys/netinet/ip_ipip.c
index 4e89fcb7f2b..81cf18692b2 100644
--- a/sys/netinet/ip_ipip.c
+++ b/sys/netinet/ip_ipip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipip.c,v 1.25 2002/06/10 18:04:55 itojun Exp $ */
+/* $OpenBSD: ip_ipip.c,v 1.26 2002/07/05 23:11:09 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -493,6 +493,7 @@ ipip_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip,
else {
m_freem(m);
*mp = NULL;
+ ipipstat.ipips_family++;
return EAFNOSUPPORT;
}
@@ -568,6 +569,7 @@ ipip_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip,
} else {
m_freem(m);
*mp = NULL;
+ ipipstat.ipips_family++;
return EAFNOSUPPORT;
}