wrap icmp6 checksum error printf() into #ifdef ND6DEBUG.

sync with kame,  NetBSD PR 11911.
This commit is contained in:
itojun 2001-01-08 06:12:46 +00:00
parent e6550aba7b
commit 9f119cbf91
1 changed files with 4 additions and 4 deletions

View File

@ -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 @@ 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;
}