diff options
author | Eldad Zack <eldad@fogrefinery.com> | 2012-05-20 01:59:33 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-20 20:58:39 (GMT) |
commit | 9b905fe68433378032b851c4d81a59187689fa52 (patch) | |
tree | 307801197cf9ce8b520a026962bf1e73f0019f9f /include | |
parent | f7142e6c226076fd40c2ebaad9fb0c9a631b790e (diff) | |
download | linux-9b905fe68433378032b851c4d81a59187689fa52.tar.xz |
ipv6/exthdrs: strict Pad1 and PadN check
The following tightens the padding check from commit
c1412fce7eccae62b4de22494f6ab3ff8a90c0c6 :
* Take into account combinations of consecutive Pad1 and PadN.
* Catch the corner case of when only padding is present in the
header, when the extention header length is 0 (i.e., 8 bytes).
In this case, the header would have exactly 6 bytes of padding:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
: Next Header : Hdr Ext Len=0 : :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +
: Padding (Pad1 or PadN) :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions