aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-09-27 00:24:24 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-28 20:54:01 -0400
commit046d033148e6936ee2466d38214cf0743a210f39 (patch)
treebc82c7d00502da04ab1fde6c356a99516521e05b /include/linux
parentb4229934bd11e1dd03d433072ef3871915fc5e4f (diff)
[IPV4]: headers endianness
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ip.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/ip.h b/include/linux/ip.h
index 2f4600146f83..6b25d36fc54c 100644
--- a/include/linux/ip.h
+++ b/include/linux/ip.h
@@ -96,7 +96,7 @@ struct iphdr {
96 __be16 frag_off; 96 __be16 frag_off;
97 __u8 ttl; 97 __u8 ttl;
98 __u8 protocol; 98 __u8 protocol;
99 __u16 check; 99 __be16 check;
100 __be32 saddr; 100 __be32 saddr;
101 __be32 daddr; 101 __be32 daddr;
102 /*The options start here. */ 102 /*The options start here. */
@@ -105,22 +105,22 @@ struct iphdr {
105struct ip_auth_hdr { 105struct ip_auth_hdr {
106 __u8 nexthdr; 106 __u8 nexthdr;
107 __u8 hdrlen; /* This one is measured in 32 bit units! */ 107 __u8 hdrlen; /* This one is measured in 32 bit units! */
108 __u16 reserved; 108 __be16 reserved;
109 __u32 spi; 109 __be32 spi;
110 __u32 seq_no; /* Sequence number */ 110 __be32 seq_no; /* Sequence number */
111 __u8 auth_data[0]; /* Variable len but >=4. Mind the 64 bit alignment! */ 111 __u8 auth_data[0]; /* Variable len but >=4. Mind the 64 bit alignment! */
112}; 112};
113 113
114struct ip_esp_hdr { 114struct ip_esp_hdr {
115 __u32 spi; 115 __be32 spi;
116 __u32 seq_no; /* Sequence number */ 116 __be32 seq_no; /* Sequence number */
117 __u8 enc_data[0]; /* Variable len but >=8. Mind the 64 bit alignment! */ 117 __u8 enc_data[0]; /* Variable len but >=8. Mind the 64 bit alignment! */
118}; 118};
119 119
120struct ip_comp_hdr { 120struct ip_comp_hdr {
121 __u8 nexthdr; 121 __u8 nexthdr;
122 __u8 flags; 122 __u8 flags;
123 __u16 cpi; 123 __be16 cpi;
124}; 124};
125 125
126#endif /* _LINUX_IP_H */ 126#endif /* _LINUX_IP_H */