summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_ipip.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2017-05-06 15:55:15 +0000
committerbluhm <bluhm@openbsd.org>2017-05-06 15:55:15 +0000
commitdde15c32177640638824d536d764f3baf06a13d5 (patch)
tree42906d222f1fbce7ce8a177aef18df2a747a185b /sys/netinet/ip_ipip.c
parentPrint full MIDR for CPUs that can't be identified. (diff)
downloadwireguard-openbsd-dde15c32177640638824d536d764f3baf06a13d5.tar.xz
wireguard-openbsd-dde15c32177640638824d536d764f3baf06a13d5.zip
Convert the xformsw definition to C99 style initializer. Also fix
the function declaration of ipe4_input() and avoid a wrong cast. OK mikeb@ dhill@
Diffstat (limited to 'sys/netinet/ip_ipip.c')
-rw-r--r--sys/netinet/ip_ipip.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/ip_ipip.c b/sys/netinet/ip_ipip.c
index c809bcc3b80..72dd138922a 100644
--- a/sys/netinet/ip_ipip.c
+++ b/sys/netinet/ip_ipip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipip.c,v 1.76 2017/05/04 17:58:46 bluhm Exp $ */
+/* $OpenBSD: ip_ipip.c,v 1.77 2017/05/06 15:55:15 bluhm Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -587,12 +587,13 @@ ipe4_zeroize(struct tdb *tdbp)
return 0;
}
-void
-ipe4_input(struct mbuf *m, int hlen, int proto)
+int
+ipe4_input(struct mbuf *m, struct tdb *tdb, int hlen, int proto)
{
/* This is a rather serious mistake, so no conditional printing. */
printf("ipe4_input(): should never be called\n");
m_freem(m);
+ return EINVAL;
}
#endif /* IPSEC */