Subject: kern/27081: ip_input() bad csum count not incremented on sw csum
To: None <gnats-bugs@gnats.netbsd.org>
From: None <seanb@qnx.com>
List: netbsd-bugs
Date: 09/29/2004 16:59:13
>Number: 27081
>Category: kern
>Synopsis: ip_input() bad csum count not incremented on sw csum
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Sep 29 20:27:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Sean Boudreau
>Release: NetBSD 2.0
>Organization:
QNX
>Environment:
System: NetBSD 1.6 NetBSD 1.6 (seanb) #6: Wed Nov 12 15:38:53 EST 2003 seanb@:/usr/src/sys/arch/i386/compile/seanb i386
Architecture: i386
Machine: i386
>Description:
ip_input() bad csum count not incremented on sw csum
>How-To-Repeat:
>Fix:
Index: netinet/ip_input.c
===================================================================
RCS file: /cvsroot/src/sys/netinet/ip_input.c,v
retrieving revision 1.203
diff -c -r1.203 ip_input.c
*** netinet/ip_input.c 25 May 2004 04:34:00 -0000 1.203
--- netinet/ip_input.c 29 Sep 2004 19:36:55 -0000
***************
*** 575,581 ****
/* Must compute it ourselves. */
INET_CSUM_COUNTER_INCR(&ip_swcsum);
if (in_cksum(m, hlen) != 0)
! goto bad;
break;
}
--- 575,581 ----
/* Must compute it ourselves. */
INET_CSUM_COUNTER_INCR(&ip_swcsum);
if (in_cksum(m, hlen) != 0)
! goto badcsum;
break;
}
>Release-Note:
>Audit-Trail:
>Unformatted: