patch-2.3.42 linux/include/asm-sparc64/checksum.h
Next file: linux/include/asm-sparc64/dma.h
Previous file: linux/include/asm-sparc/unistd.h
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Mon Jan 31 23:41:14 2000
- Orig file:
v2.3.41/linux/include/asm-sparc64/checksum.h
- Orig date:
Fri Jan 28 15:09:09 2000
diff -u --recursive --new-file v2.3.41/linux/include/asm-sparc64/checksum.h linux/include/asm-sparc64/checksum.h
@@ -1,4 +1,4 @@
-/* $Id: checksum.h,v 1.15 2000/01/19 04:06:09 davem Exp $ */
+/* $Id: checksum.h,v 1.16 2000/01/31 01:26:54 davem Exp $ */
#ifndef __SPARC64_CHECKSUM_H
#define __SPARC64_CHECKSUM_H
@@ -167,7 +167,7 @@
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)
{
@@ -192,7 +192,7 @@
addccc %%g3, %%g7, %0
addc 0, %0, %0
" : "=&r" (sum)
- : "r" (saddr), "r" (daddr), "r"(htonl((__u32) (len))),
+ : "r" (saddr), "r" (daddr), "r"(htonl(len)),
"r"(htonl(proto)), "r"(sum)
: "g2", "g3", "g7", "cc");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)