diff options
author | Eldad Zack <eldad@fogrefinery.com> | 2012-04-12 21:36:17 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-12 21:36:44 (GMT) |
commit | c1412fce7eccae62b4de22494f6ab3ff8a90c0c6 (patch) | |
tree | 57ac851f1858a7641cc3a83c486491d4ed1bcd18 /net/ipv6/ip6mr.c | |
parent | 46ba5b23c32667821b748b4e0b74667e750621cd (diff) | |
download | linux-c1412fce7eccae62b4de22494f6ab3ff8a90c0c6.tar.xz |
net/ipv6/exthdrs.c: Strict PadN option checking
Added strict checking of PadN, as PadN can be used to increase header
size and thus push the protocol header into the 2nd fragment.
PadN is used to align the options within the Hop-by-Hop or
Destination Options header to 64-bit boundaries. The maximum valid
size is thus 7 bytes.
RFC 4942 recommends to actively check the "payload" itself and
ensure that it contains only zeroes.
See also RFC 4942 section 2.1.9.5.
Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6mr.c')
0 files changed, 0 insertions, 0 deletions