ipv6: drop packets with multiple fragmentation headers
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Fri, 16 Aug 2013 11:30:07 +0000 (13:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 May 2014 05:53:54 +0000 (07:53 +0200)
commitede46183818537a2da12ad7bed33d8f2d3cb35d0
tree7fc9a5182eeaebb8d94b779e6af5de245b75500c
parent789ee2aee7f7765e5bd4825541b16e957151c9d1
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: Willy Tarreau <w@1wt.eu>
include/linux/ipv6.h
net/ipv6/reassembly.c