patch-2.3.42 linux/include/asm-i386/checksum.h

Next file: linux/include/asm-m68k/checksum.h
Previous file: linux/include/asm-arm/checksum.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.41/linux/include/asm-i386/checksum.h linux/include/asm-i386/checksum.h
@@ -154,7 +154,7 @@
 #define _HAVE_ARCH_IPV6_CSUM
 static __inline__ unsigned short int csum_ipv6_magic(struct in6_addr *saddr,
 						     struct in6_addr *daddr,
-						     __u16 len,
+						     __u32 len,
 						     unsigned short proto,
 						     unsigned int sum) 
 {
@@ -173,7 +173,7 @@
 		"
 		: "=&r" (sum)
 		: "r" (saddr), "r" (daddr), 
-		  "r"(htonl((__u32) (len))), "r"(htonl(proto)), "0"(sum));
+		  "r"(htonl(len)), "r"(htonl(proto)), "0"(sum));
 
 	return csum_fold(sum);
 }

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