Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netipsec remove some DPRINTFs which are not just diagnos...



details:   https://anonhg.NetBSD.org/src/rev/3a2abe5f46e4
branches:  trunk
changeset: 773064:3a2abe5f46e4
user:      drochner <drochner%NetBSD.org@localhost>
date:      Thu Jan 26 21:10:24 2012 +0000

description:
remove some DPRINTFs which are not just diagnostics but cause noise
even on regular operation

diffstat:

 sys/netipsec/xform_ah.c |  25 ++-----------------------
 1 files changed, 2 insertions(+), 23 deletions(-)

diffs (60 lines):

diff -r 28bd710c5a6c -r 3a2abe5f46e4 sys/netipsec/xform_ah.c
--- a/sys/netipsec/xform_ah.c   Thu Jan 26 19:18:25 2012 +0000
+++ b/sys/netipsec/xform_ah.c   Thu Jan 26 21:10:24 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xform_ah.c,v 1.36 2012/01/25 20:31:23 drochner Exp $   */
+/*     $NetBSD: xform_ah.c,v 1.37 2012/01/26 21:10:24 drochner Exp $   */
 /*     $FreeBSD: src/sys/netipsec/xform_ah.c,v 1.1.4.1 2003/01/24 05:11:36 sam Exp $   */
 /*     $OpenBSD: ip_ah.c,v 1.63 2001/06/26 06:18:58 angelos Exp $ */
 /*
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xform_ah.c,v 1.36 2012/01/25 20:31:23 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xform_ah.c,v 1.37 2012/01/26 21:10:24 drochner Exp $");
 
 #include "opt_inet.h"
 #ifdef __FreeBSD__
@@ -328,12 +328,6 @@
 #else  /*!__FreeBSD__ */
                        ip->ip_len = htons(inlen);
 #endif /*!__FreeBSD__ */
-                       DPRINTF(("ip len: skip %d, "
-                                "in %d host %d: new: raw %d host %d\n",
-                                skip,
-                                inlen, TOHOST(inlen),
-                                ip->ip_len, ntohs(ip->ip_len)));
-
 
                        if (alg == CRYPTO_MD5_KPDK || alg == CRYPTO_SHA1_KPDK)
                                ip->ip_off  &= IP_OFF_CONVERT(IP_DF);
@@ -690,11 +684,6 @@
                return EACCES;
        }
        AH_STATADD(AH_STAT_IBYTES, m->m_pkthdr.len - skip - hl);
-       DPRINTF(("ah_input skip %d poff %d\n"
-                "len: hl %d authsize %d rpl %d expect %ld\n",
-                skip, protoff,
-                hl, authsize, rplen,
-                (long)(authsize + rplen - sizeof(struct ah))));
 
        /* Get crypto descriptors. */
        crp = crypto_getreq(1);
@@ -764,16 +753,6 @@
                 */
                m_copydata(m, 0, skip + rplen + authsize, (tc + 1));
 
-               {
-                       u_int8_t *pppp = ((char *)(tc+1))+skip+rplen;
-                       DPRINTF(("ah_input: zeroing %d bytes of authent " \
-                   "%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x\n",
-                                authsize,
-                                pppp[0], pppp[1], pppp[2], pppp[3],
-                                pppp[4], pppp[5], pppp[6], pppp[7],
-                                pppp[8], pppp[9], pppp[10], pppp[11]));
-               }
-
                /* Zeroize the authenticator on the packet. */
                m_copyback(m, skip + rplen, authsize, ipseczeroes);
 



Home | Main Index | Thread Index | Old Index