[NET]: Annotate checksums in on-the-wire packets.
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 15 Nov 2006 05:24:30 +0000 (21:24 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:23:26 +0000 (21:23 -0800)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/dccp.h
include/linux/icmp.h
include/linux/icmpv6.h
include/linux/igmp.h
include/linux/ip.h
include/linux/tcp.h
include/linux/udp.h

index d308f1228b61e389ec9de38bd48f87751fcb168c..72cc355d7a0336bfe35d06048bd5350690db4243 100644 (file)
@@ -30,7 +30,7 @@ struct dccp_hdr {
 #else
 #error  "Adjust your <asm/byteorder.h> defines"
 #endif
-       __u16   dccph_checksum;
+       __sum16 dccph_checksum;
 #if defined(__LITTLE_ENDIAN_BITFIELD)
        __u8    dccph_x:1,
                dccph_type:4,
index 878cfe4e587f29d0d5dd3129180227bed8bf8990..24da4fbc1a2f731c02c62f0732d6b2fb5f4f3cd8 100644 (file)
@@ -68,7 +68,7 @@
 struct icmphdr {
   __u8         type;
   __u8         code;
-  __be16       checksum;
+  __sum16      checksum;
   union {
        struct {
                __be16  id;
index dc79396aac2552813a04211c5193e06c43a99e35..68d3526c3a05dc55c0cbe3fa44bcb2e101d62576 100644 (file)
@@ -7,7 +7,7 @@ struct icmp6hdr {
 
        __u8            icmp6_type;
        __u8            icmp6_code;
-       __be16          icmp6_cksum;
+       __sum16         icmp6_cksum;
 
 
        union {
index 21dd5690527118b1987c8e24234744c501ca926d..6e7ea2f0a57c557b80c7b77de0f8bad13dafba36 100644 (file)
@@ -30,7 +30,7 @@ struct igmphdr
 {
        __u8 type;
        __u8 code;              /* For newer IGMP */
-       __be16 csum;
+       __sum16 csum;
        __be32 group;
 };
 
index ecee9bb27d0e6db993778bb6b82169fd5b8cf8d2..1d36b971a8b53b869b4588fca445382aec25a09a 100644 (file)
@@ -98,7 +98,7 @@ struct iphdr {
        __be16  frag_off;
        __u8    ttl;
        __u8    protocol;
-       __be16  check;
+       __sum16 check;
        __be32  saddr;
        __be32  daddr;
        /*The options start here. */
index 0aecfc9555917d2807ec02c11e685d33b62f77ff..dd61b172ac68173e487b9833a0ef5105214e6c8e 100644 (file)
@@ -52,7 +52,7 @@ struct tcphdr {
 #error "Adjust your <asm/byteorder.h> defines"
 #endif 
        __be16  window;
-       __be16  check;
+       __sum16 check;
        __be16  urg_ptr;
 };
 
index 564f3b050105fa1b6c8a162ac38d47964431f360..7e08c07efe0fa001f59a0c0c36d03c5a2fa52590 100644 (file)
@@ -23,7 +23,7 @@ struct udphdr {
        __be16  source;
        __be16  dest;
        __be16  len;
-       __be16  check;
+       __sum16 check;
 };
 
 /* UDP socket options */