summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-01-08 06:22:06 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-01-08 06:22:06 +0000
commit21ead5d4b3c4cc344a607c991885cd2ea5aebe3b (patch)
tree0b01dc42dd8b0c6a03c74b49f6bbc651e3d63d9c /sys/netinet6
parentb079fb855deef13fbaba4077a8992e145ce705f7 (diff)
wrap "icmp6 checksum error" message into #ifdef ND6DEBUG. NetBSD PR 11911.
sync with kame aVS: ----------------------------------------------------------------------
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/icmp6.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c
index 3b0632123a2..db8c4ff3e79 100644
--- a/sys/netinet6/icmp6.c
+++ b/sys/netinet6/icmp6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: icmp6.c,v 1.27 2000/12/11 19:29:50 itojun Exp $ */
+/* $OpenBSD: icmp6.c,v 1.28 2001/01/08 06:22:05 itojun Exp $ */
/* $KAME: icmp6.c,v 1.172 2000/12/11 19:27:06 itojun Exp $ */
/*
@@ -417,11 +417,11 @@ icmp6_input(mp, offp, proto)
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;
}