Subject: ip_input() bad csum count not incremented on sw csum
To: None <tech-net@NetBSD.org>
From: Sean Boudreau <seanb@qnx.com>
List: tech-net
Date: 09/29/2004 15:39:32
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;
}