]> git.baikalelectronics.ru Git - kernel.git/commit
net: IP6 defrag: use rbtrees in nf_conntrack_reasm.c
authorPeter Oskolkov <posk@google.com>
Tue, 22 Jan 2019 18:02:52 +0000 (10:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Jan 2019 05:37:11 +0000 (21:37 -0800)
commit392f526bbd3e9b76ad49b9770efe7f87295be6f4
tree13dba3118a055a9d207cc7e3f4cd31edb49f10fb
parent7e40af923a022b927bbc16afce9541b89db0b446
net: IP6 defrag: use rbtrees in nf_conntrack_reasm.c

Currently, IPv6 defragmentation code drops non-last fragments that
are smaller than 1280 bytes: see
commit 08099d67b071 ("ipv6: defrag: drop non-last frags smaller than min mtu")

This behavior is not specified in IPv6 RFCs and appears to break
compatibility with some IPv6 implemenations, as reported here:
https://www.spinics.net/lists/netdev/msg543846.html

This patch re-uses common IP defragmentation queueing and reassembly
code in IP6 defragmentation in nf_conntrack, removing the 1280 byte
restriction.

Signed-off-by: Peter Oskolkov <posk@google.com>
Reported-by: Tom Herbert <tom@herbertland.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/netfilter/nf_conntrack_reasm.c