Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 wrap icmp6 checksum error printf() into #ifdef ...



details:   https://anonhg.NetBSD.org/src/rev/1c0d00a633f3
branches:  trunk
changeset: 501825:1c0d00a633f3
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Jan 08 06:12:46 2001 +0000

description:
wrap icmp6 checksum error printf() into #ifdef ND6DEBUG.
sync with kame,  NetBSD PR 11911.

diffstat:

 sys/netinet6/icmp6.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (24 lines):

diff -r c1e80e3674cd -r 1c0d00a633f3 sys/netinet6/icmp6.c
--- a/sys/netinet6/icmp6.c      Mon Jan 08 04:53:59 2001 +0000
+++ b/sys/netinet6/icmp6.c      Mon Jan 08 06:12:46 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: icmp6.c,v 1.49 2000/12/11 19:28:47 itojun Exp $        */
+/*     $NetBSD: icmp6.c,v 1.50 2001/01/08 06:12:46 itojun Exp $        */
 /*     $KAME: icmp6.c,v 1.172 2000/12/11 19:27:06 itojun Exp $ */
 
 /*
@@ -426,11 +426,11 @@
        code = icmp6->icmp6_code;
 
        if ((sum = in6_cksum(m, IPPROTO_ICMPV6, off, icmp6len)) != 0) {
+#ifdef ND6DEBUG
                log(LOG_ERR,
                    "ICMP6 checksum error(%d|%x) %s\n",
-                   icmp6->icmp6_type,
-                   sum,
-                   ip6_sprintf(&ip6->ip6_src));
+                   icmp6->icmp6_type, sum, ip6_sprintf(&ip6->ip6_src));
+#endif
                icmp6stat.icp6s_checksum++;
                goto freeit;
        }



Home | Main Index | Thread Index | Old Index