patch-2.1.9 linux/include/net/checksum.h

Next file: linux/include/net/ipv6_route.h
Previous file: linux/include/net/ax25.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.8/linux/include/net/checksum.h linux/include/net/checksum.h
@@ -81,8 +81,8 @@
 	csum += carry;
 
 	uproto = htonl(proto);
-	csum += proto;
-	carry = (csum < proto);
+	csum += uproto;
+	carry = (csum < uproto);
 	csum += carry;
 
 	return csum_fold(csum);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov