Eldad Zack 9b905fe684 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>
2012-05-20 16:58:39 -04:00
..
2012-05-18 02:24:13 -04:00
2012-05-19 01:08:16 -04:00
2012-05-19 01:08:16 -04:00
2012-05-19 01:08:16 -04:00
2012-05-19 01:08:16 -04:00
2012-05-18 02:24:13 -04:00
2012-05-15 13:13:34 -04:00
2012-05-19 01:08:16 -04:00
2012-05-19 01:08:16 -04:00
2012-01-17 23:56:18 -05:00
2012-05-19 01:08:16 -04:00
2012-05-19 01:08:16 -04:00
2011-11-22 16:43:32 -05:00
2012-05-17 14:59:59 -04:00
2011-11-22 16:43:32 -05:00