Subject: Re: ip_input() bad csum count not incremented on sw csum
To: None <tech-net@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-net
Date: 09/29/2004 20:03:22
In article <20040929193932.GC2924564@qnx.com>,
Sean Boudreau <seanb@qnx.com> wrote:

You should really be send-pr'ing these so that they don't get lost.

thanks,

christos

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