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

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

diff -u --recursive --new-file v2.3.41/linux/include/asm-m68k/checksum.h linux/include/asm-m68k/checksum.h
@@ -123,7 +123,7 @@
 #define _HAVE_ARCH_IPV6_CSUM
 static __inline__ unsigned short int
 csum_ipv6_magic(struct in6_addr *saddr, struct in6_addr *daddr,
-		__u16 len, unsigned short proto, unsigned int sum) 
+		__u32 len, unsigned short proto, unsigned int sum) 
 {
 	register unsigned long tmp;
 	__asm__("addl %2@,%0\n\t"
@@ -145,7 +145,7 @@
 		"clrl %1\n\t"
 		"addxl %1,%0"
 		: "=&d" (sum), "=&d" (tmp)
-		: "a" (saddr), "a" (daddr), "d" ((__u32) len + proto),
+		: "a" (saddr), "a" (daddr), "d" (len + 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)