Commit 43505077 authored by Al Viro's avatar Al Viro Committed by David S. Miller

[IPV6]: IPv6 headers annotations

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 48818f82
...@@ -99,22 +99,22 @@ struct ipv6_destopt_hao { ...@@ -99,22 +99,22 @@ struct ipv6_destopt_hao {
struct ipv6_auth_hdr { struct ipv6_auth_hdr {
__u8 nexthdr; __u8 nexthdr;
__u8 hdrlen; /* This one is measured in 32 bit units! */ __u8 hdrlen; /* This one is measured in 32 bit units! */
__u16 reserved; __be16 reserved;
__u32 spi; __be32 spi;
__u32 seq_no; /* Sequence number */ __be32 seq_no; /* Sequence number */
__u8 auth_data[0]; /* Length variable but >=4. Mind the 64 bit alignment! */ __u8 auth_data[0]; /* Length variable but >=4. Mind the 64 bit alignment! */
}; };
struct ipv6_esp_hdr { struct ipv6_esp_hdr {
__u32 spi; __be32 spi;
__u32 seq_no; /* Sequence number */ __be32 seq_no; /* Sequence number */
__u8 enc_data[0]; /* Length variable but >=8. Mind the 64 bit alignment! */ __u8 enc_data[0]; /* Length variable but >=8. Mind the 64 bit alignment! */
}; };
struct ipv6_comp_hdr { struct ipv6_comp_hdr {
__u8 nexthdr; __u8 nexthdr;
__u8 flags; __u8 flags;
__u16 cpi; __be16 cpi;
}; };
/* /*
...@@ -136,7 +136,7 @@ struct ipv6hdr { ...@@ -136,7 +136,7 @@ struct ipv6hdr {
#endif #endif
__u8 flow_lbl[3]; __u8 flow_lbl[3];
__u16 payload_len; __be16 payload_len;
__u8 nexthdr; __u8 nexthdr;
__u8 hop_limit; __u8 hop_limit;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment