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
- Lines: 14
- Date:
2004-04-14 06:05:28.000000000 -0700
- Orig file:
linux-2.4.25/arch/x86_64/lib/csum-partial.c
- Orig date:
2003-06-13 07:51:32.000000000 -0700
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)