diff options
-rw-r--r-- | include/linux/ip.h | 14 |
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 { | |||
105 | struct ip_auth_hdr { | 105 | struct 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 | ||
114 | struct ip_esp_hdr { | 114 | struct 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 | ||
120 | struct ip_comp_hdr { | 120 | struct 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 */ |