diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-05 11:10:13 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-05 11:10:13 +0000 |
commit | 99ffc6fa7e0db4d7406b8ee2997aa61d7457312a (patch) | |
tree | d0496d779df226c04a30564fbf0d378ab9183be1 | |
parent | 4680100e8d40e22a6fc9cb002e552581780207b0 (diff) |
Add a few DPRINTF()'s
-rw-r--r-- | sys/netinet/ip_esp.c | 4 | ||||
-rw-r--r-- | sys/netinet/ipsec_input.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/sys/netinet/ip_esp.c b/sys/netinet/ip_esp.c index 1b580793b6c..509df9a8c3b 100644 --- a/sys/netinet/ip_esp.c +++ b/sys/netinet/ip_esp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_esp.c,v 1.63 2001/06/01 00:09:23 angelos Exp $ */ +/* $OpenBSD: ip_esp.c,v 1.64 2001/06/05 11:10:10 angelos Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -849,6 +849,8 @@ esp_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip, if (n == NULL) { + DPRINTF(("esp_output(): bad mbuf chain, SA %s/%08x\n", + ipsp_address(tdb->tdb_dst), ntohl(tdb->tdb_spi))); espstat.esps_hdrops++; m_freem(m); return ENOBUFS; 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; } |