patch-2.4.26 linux-2.4.26/arch/x86_64/lib/csum-partial.c

Next file: linux-2.4.26/arch/x86_64/lib/usercopy.c
Previous file: linux-2.4.26/arch/x86_64/lib/csum-copy.S
Back to the patch index
Back to the overall index

diff -urN linux-2.4.25/arch/x86_64/lib/csum-partial.c linux-2.4.26/arch/x86_64/lib/csum-partial.c
@@ -136,11 +136,10 @@
 }
 
 /*
- * this routine is used for miscellaneous IP-like checksums, mainly
- * in icmp.c
+ * this routine is used for miscellaneous IP-like checksums.
  */
 unsigned short ip_compute_csum(unsigned char * buff, int len)
 {
-	return ~csum_partial(buff,len,0); 
+	return csum_fold(csum_partial(buff,len,0)); 
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)