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

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

diff -u --recursive --new-file v2.3.41/linux/include/asm-mips/checksum.h linux/include/asm-mips/checksum.h
@@ -186,7 +186,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) 
 {
@@ -244,7 +244,7 @@
 		  "=r" (proto)
 		: "r" (saddr),
 		  "r" (daddr),
-		  "0" (htonl((__u32) (len))),
+		  "0" (htonl(len)),
 		  "1" (htonl(proto)),
 		  "r"(sum)
 		: "$1");

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