summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ipsec_input.c
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2001-06-05 11:10:10 +0000
committerangelos <angelos@openbsd.org>2001-06-05 11:10:10 +0000
commit4eb3b6994c3e5f13e197a9008013711f4823e1f9 (patch)
tree84c65e447b722e09aa26d78d92b38331b359f489 /sys/netinet/ipsec_input.c
parentThat debug message was just too chatty, even as a debug message :-) (diff)
downloadwireguard-openbsd-4eb3b6994c3e5f13e197a9008013711f4823e1f9.tar.xz
wireguard-openbsd-4eb3b6994c3e5f13e197a9008013711f4823e1f9.zip
Add a few DPRINTF()'s
Diffstat (limited to 'sys/netinet/ipsec_input.c')
-rw-r--r--sys/netinet/ipsec_input.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet/ipsec_input.c b/sys/netinet/ipsec_input.c
index d6eaf8ebe66..9aac39a36e9 100644
--- a/sys/netinet/ipsec_input.c
+++ b/sys/netinet/ipsec_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipsec_input.c,v 1.41 2001/05/29 01:19:37 angelos Exp $ */
+/* $OpenBSD: ipsec_input.c,v 1.42 2001/06/05 11:10:12 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -114,7 +114,7 @@ ipsec_common_input(struct mbuf *m, int skip, int protoff, int af, int sproto)
if (m == 0)
{
- DPRINTF(("%s: NULL packet received\n"));
+ DPRINTF(("ipsec_common_input(): NULL packet received\n"));
IPSEC_ISTAT(espstat.esps_hdrops, ahstat.ahs_hdrops);
return EINVAL;
}
@@ -131,6 +131,7 @@ ipsec_common_input(struct mbuf *m, int skip, int protoff, int af, int sproto)
{
m_freem(m);
IPSEC_ISTAT(espstat.esps_hdrops, ahstat.ahs_hdrops);
+ DPRINTF(("ipsec_common_input(): packet too small\n"));
return EINVAL;
}
@@ -466,6 +467,7 @@ ipsec_common_input_cb(struct mbuf *m, struct tdb *tdbp, int skip, int protoff,
if (mtag == NULL)
{
m_freem(m);
+ DPRINTF(("ipsec_common_input_cb(): failed to get tag\n"));
IPSEC_ISTAT(espstat.esps_hdrops, ahstat.ahs_hdrops);
return ENOMEM;
}