diff options
author | David S. Miller <davem@davemloft.net> | 2010-07-20 01:01:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-20 01:01:26 -0400 |
commit | e7c38157c61649e66f853d7b9f109119b8361448 (patch) | |
tree | 177568b25a74f50fbc876d983a4fae1dae7ea468 /include | |
parent | 5ae482e01d60bd4e8fc181f78355047e52999ce8 (diff) |
ipv6: Make IP6CB(skb)->nhoff 16-bit.
Even with jumbograms I cannot see any way in which we would need
to records a larger than 65535 valued next-header offset.
The maximum extension header length is (256 << 3) == 2048.
There are only a handful of extension headers specified which
we'd even accept (say 5 or 6), therefore the largest next-header
offset we'd ever have to contend with is something less than
say 16k.
Therefore make it a u16 instead of a u32.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ipv6.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h index 940e21595351..ab9e9e89e407 100644 --- a/include/linux/ipv6.h +++ b/include/linux/ipv6.h | |||
@@ -246,7 +246,7 @@ struct inet6_skb_parm { | |||
246 | __u16 srcrt; | 246 | __u16 srcrt; |
247 | __u16 dst1; | 247 | __u16 dst1; |
248 | __u16 lastopt; | 248 | __u16 lastopt; |
249 | __u32 nhoff; | 249 | __u16 nhoff; |
250 | __u16 flags; | 250 | __u16 flags; |
251 | #if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE) | 251 | #if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE) |
252 | __u16 dsthao; | 252 | __u16 dsthao; |