]> bbs.cooldavid.org Git - net-next-2.6.git/commit - include/linux/ipv6.h
ipv6: Make IP6CB(skb)->nhoff 16-bit.
authorDavid S. Miller <davem@davemloft.net>
Tue, 20 Jul 2010 05:01:26 +0000 (22:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jul 2010 05:01:26 +0000 (22:01 -0700)
commite7c38157c61649e66f853d7b9f109119b8361448
tree177568b25a74f50fbc876d983a4fae1dae7ea468
parent5ae482e01d60bd4e8fc181f78355047e52999ce8
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>
include/linux/ipv6.h