]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: drop packets with multiple fragmentation headers
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Fri, 16 Aug 2013 11:30:07 +0000 (13:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2013 07:11:24 +0000 (00:11 -0700)
commit0de7e27a40ff46c29229d7746d0f6b5df11a5aff
tree2a0156752e30066c8e52a74e361f0067d6d7d21b
parent54a89345bfcd18c7cc00b2e97b14cd181d2b8445
ipv6: drop packets with multiple fragmentation headers

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>
include/linux/ipv6.h
net/ipv6/reassembly.c