]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV6]: IPv6 extension header structures need to be packed.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Mon, 14 Apr 2008 06:33:52 +0000 (23:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Apr 2008 06:33:52 +0000 (23:33 -0700)
commitc4046f6e215fe00423c3bea661022b0c427b5219
tree1e914ceedffbc982af0afe207e6d7243d4bf922f
parent68e0da49402ea15b537f17c25b663dccdb9aaa69
[IPV6]: IPv6 extension header structures need to be packed.

struct ipv6_opt_hdr is the common structure for IPv6 extension
headers, and it is common to increment the pointer to get
the real content.  On the other hand, since the structure
consists only of 1-byte next-header field and 1-byte length
field, size of that structure depends on architecture; 2 or 4.
Add "packed" attribute to get 2.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ipv6.h