OSDN Git Service

ipv6/exthdrs: accept tlv which includes only padding
authorJiri Pirko <jiri@resnulli.us>
Fri, 6 Sep 2013 14:02:25 +0000 (16:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Oct 2013 23:08:28 +0000 (16:08 -0700)
commit711b8c96842e7e93b01caad6403488498d5cecfa
treea0aec69b999bf930de5abd48bd88e13822a2b6f0
parenta4ae4c6176a7c878018adf470a47c1fae9090978
ipv6/exthdrs: accept tlv which includes only padding

[ Upstream commit 8112b1fe071be01a28a774ed55909e6f4b29712d ]

In rfc4942 and rfc2460 I cannot find anything which would implicate to
drop packets which have only padding in tlv.

Current behaviour breaks TAHI Test v6LC.1.2.6.

Problem was intruduced in:
9b905fe6843 "ipv6/exthdrs: strict Pad1 and PadN check"

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/exthdrs.c