ipv6: drop packets with multiple fragmentation headers
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Fri, 16 Aug 2013 11:30:07 +0000 (13:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Sep 2013 12:50:48 +0000 (05:50 -0700)
commit1eeceae48fdc6e6fcb71403010ef5dd863b7ef2f
tree9e8335bb405093f5f8459b71b2d1bc2287f0d8f9
parent9b7bb7587b9165ad6325b2908a19849dbded3ce0
ipv6: drop packets with multiple fragmentation headers

[ Upstream commit f46078cfcd77fa5165bf849f5e568a7ac5fa569c ]

It is not allowed for an ipv6 packet to contain multiple fragmentation
headers. So discard packets which were already reassembled by
fragmentation logic and send back a parameter problem icmp.

The updates for RFC 6980 will come in later, I have to do a bit more
research here.

Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/ipv6.h
net/ipv6/reassembly.c