Browse Source

[NET]: Introduce types for checksums.

New types - for 16bit checksums and "unfolded" 32bit variant.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Al Viro 18 years ago
parent
commit
2bc357987a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/linux/types.h

+ 2 - 0
include/linux/types.h

@@ -182,6 +182,8 @@ typedef __u32 __bitwise __be32;
 typedef __u64 __bitwise __le64;
 typedef __u64 __bitwise __le64;
 typedef __u64 __bitwise __be64;
 typedef __u64 __bitwise __be64;
 #endif
 #endif
+typedef __u16 __bitwise __sum16;
+typedef __u32 __bitwise __wsum;
 
 
 #ifdef __KERNEL__
 #ifdef __KERNEL__
 typedef unsigned __bitwise__ gfp_t;
 typedef unsigned __bitwise__ gfp_t;