summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2002-07-05 23:12:19 +0000
committerangelos <angelos@openbsd.org>2002-07-05 23:12:19 +0000
commit67a9371a86d4eea586741d3ab5159caca0b42171 (patch)
treec7b749ed259297b3bebef3d25e7363c1ca1224ed
parentBump ipips_family in ipipstat in all cases where EAFNOSUPPORT is returned. (diff)
downloadwireguard-openbsd-67a9371a86d4eea586741d3ab5159caca0b42171.tar.xz
wireguard-openbsd-67a9371a86d4eea586741d3ab5159caca0b42171.zip
Also, return EAFNOSUPPORT instead of ENOBUFS. Both this and the
previous commit where noted by sam@errno.com
-rw-r--r--sys/netinet/ip_ipip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_ipip.c b/sys/netinet/ip_ipip.c
index 81cf18692b2..44d9494d9bc 100644
--- a/sys/netinet/ip_ipip.c
+++ b/sys/netinet/ip_ipip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipip.c,v 1.26 2002/07/05 23:11:09 angelos Exp $ */
+/* $OpenBSD: ip_ipip.c,v 1.27 2002/07/05 23:12:19 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -585,7 +585,7 @@ ipip_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip,
m_freem(m);
*mp = NULL;
ipipstat.ipips_family++;
- return ENOBUFS;
+ return EAFNOSUPPORT;
}
ipipstat.ipips_opackets++;