patch-2.4.0-test5 linux/include/asm-sh/checksum.h
Next file: linux/include/asm-sh/hardirq.h
Previous file: linux/include/asm-sh/bitops.h
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Sat Jul 22 07:42:06 2000
- Orig file:
v2.4.0-test4/linux/include/asm-sh/checksum.h
- Orig date:
Tue May 23 15:31:36 2000
diff -u --recursive --new-file v2.4.0-test4/linux/include/asm-sh/checksum.h linux/include/asm-sh/checksum.h
@@ -9,6 +9,8 @@
* Copyright (C) 1999 by Kaz Kojima & Niibe Yutaka
*/
+#include <linux/config.h>
+
/*
* computes the checksum of a memory block at buff, length len,
* and adds in "sum" (32-bit)
@@ -164,6 +166,7 @@
}
#define _HAVE_ARCH_IPV6_CSUM
+#ifdef CONFIG_IPV6
static __inline__ unsigned short int csum_ipv6_magic(struct in6_addr *saddr,
struct in6_addr *daddr,
__u32 len,
@@ -198,6 +201,7 @@
return csum_fold(sum);
}
+#endif
/*
* Copy and checksum to user
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)