summaryrefslogtreecommitdiff
path: root/include/linux/ip.h
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-01-06 13:24:29 -0800
committerDavid S. Miller <davem@davemloft.net>2006-01-06 13:24:29 -0800
commit76ab608d86cf1ef5c5c46819b5733eb9f9f964f8 (patch)
treeaa8d9947a722459a0ae0e54c9391a8de7c59aeee /include/linux/ip.h
parent5f8ac64b15172c7ced7d7990eb28342092bc751b (diff)
[NET]: Endian-annotate struct iphdr
And fix trivial warnings that emerged. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/ip.h')
-rw-r--r--include/linux/ip.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/ip.h b/include/linux/ip.h
index 9e2eb9a602e..4b55cf1df73 100644
--- a/include/linux/ip.h
+++ b/include/linux/ip.h
@@ -90,14 +90,14 @@ struct iphdr {
#error "Please fix <asm/byteorder.h>"
#endif
__u8 tos;
- __u16 tot_len;
- __u16 id;
- __u16 frag_off;
+ __be16 tot_len;
+ __be16 id;
+ __be16 frag_off;
__u8 ttl;
__u8 protocol;
__u16 check;
- __u32 saddr;
- __u32 daddr;
+ __be32 saddr;
+ __be32 daddr;
/*The options start here. */
};