diff options
Diffstat (limited to 'include/linux/ip.h')
-rw-r--r-- | include/linux/ip.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/include/linux/ip.h b/include/linux/ip.h index 4b55cf1df73..6b25d36fc54 100644 --- a/include/linux/ip.h +++ b/include/linux/ip.h | |||
@@ -57,6 +57,7 @@ | |||
57 | #define IPOPT_SEC (2 |IPOPT_CONTROL|IPOPT_COPY) | 57 | #define IPOPT_SEC (2 |IPOPT_CONTROL|IPOPT_COPY) |
58 | #define IPOPT_LSRR (3 |IPOPT_CONTROL|IPOPT_COPY) | 58 | #define IPOPT_LSRR (3 |IPOPT_CONTROL|IPOPT_COPY) |
59 | #define IPOPT_TIMESTAMP (4 |IPOPT_MEASUREMENT) | 59 | #define IPOPT_TIMESTAMP (4 |IPOPT_MEASUREMENT) |
60 | #define IPOPT_CIPSO (6 |IPOPT_CONTROL|IPOPT_COPY) | ||
60 | #define IPOPT_RR (7 |IPOPT_CONTROL) | 61 | #define IPOPT_RR (7 |IPOPT_CONTROL) |
61 | #define IPOPT_SID (8 |IPOPT_CONTROL|IPOPT_COPY) | 62 | #define IPOPT_SID (8 |IPOPT_CONTROL|IPOPT_COPY) |
62 | #define IPOPT_SSRR (9 |IPOPT_CONTROL|IPOPT_COPY) | 63 | #define IPOPT_SSRR (9 |IPOPT_CONTROL|IPOPT_COPY) |
@@ -95,7 +96,7 @@ struct iphdr { | |||
95 | __be16 frag_off; | 96 | __be16 frag_off; |
96 | __u8 ttl; | 97 | __u8 ttl; |
97 | __u8 protocol; | 98 | __u8 protocol; |
98 | __u16 check; | 99 | __be16 check; |
99 | __be32 saddr; | 100 | __be32 saddr; |
100 | __be32 daddr; | 101 | __be32 daddr; |
101 | /*The options start here. */ | 102 | /*The options start here. */ |
@@ -104,22 +105,22 @@ struct iphdr { | |||
104 | struct ip_auth_hdr { | 105 | struct ip_auth_hdr { |
105 | __u8 nexthdr; | 106 | __u8 nexthdr; |
106 | __u8 hdrlen; /* This one is measured in 32 bit units! */ | 107 | __u8 hdrlen; /* This one is measured in 32 bit units! */ |
107 | __u16 reserved; | 108 | __be16 reserved; |
108 | __u32 spi; | 109 | __be32 spi; |
109 | __u32 seq_no; /* Sequence number */ | 110 | __be32 seq_no; /* Sequence number */ |
110 | __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! */ |
111 | }; | 112 | }; |
112 | 113 | ||
113 | struct ip_esp_hdr { | 114 | struct ip_esp_hdr { |
114 | __u32 spi; | 115 | __be32 spi; |
115 | __u32 seq_no; /* Sequence number */ | 116 | __be32 seq_no; /* Sequence number */ |
116 | __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! */ |
117 | }; | 118 | }; |
118 | 119 | ||
119 | struct ip_comp_hdr { | 120 | struct ip_comp_hdr { |
120 | __u8 nexthdr; | 121 | __u8 nexthdr; |
121 | __u8 flags; | 122 | __u8 flags; |
122 | __u16 cpi; | 123 | __be16 cpi; |
123 | }; | 124 | }; |
124 | 125 | ||
125 | #endif /* _LINUX_IP_H */ | 126 | #endif /* _LINUX_IP_H */ |