diff options
author | Eldad Zack | 2012-05-20 01:59:33 +0000 |
---|---|---|
committer | David S. Miller | 2012-05-20 16:58:39 -0400 |
commit | 9b905fe68433378032b851c4d81a59187689fa52 (patch) | |
tree | 307801197cf9ce8b520a026962bf1e73f0019f9f /net/ax25/af_ax25.c | |
parent | f7142e6c226076fd40c2ebaad9fb0c9a631b790e (diff) |
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 'net/ax25/af_ax25.c')
0 files changed, 0 insertions, 0 deletions