]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
netfilter: bridge: honor frag_max_size when refragmenting
authorFlorian Westphal <fw@strlen.de>
Thu, 9 Mar 2017 22:22:30 +0000 (23:22 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 13 Mar 2017 12:31:53 +0000 (13:31 +0100)
commit4ca60d08cbe65f501baad64af50fceba79c19fbb
treebe372957b85ba2ec2bb420fc96cf2ab3b7e02fe9
parent10596608c4d62cb8c1c2b806debcbd32fe657e71
netfilter: bridge: honor frag_max_size when refragmenting

consider a bridge with mtu 9000, but end host sending smaller
packets to another host with mtu < 9000.

In this case, after reassembly, bridge+defrag would refragment,
and then attempt to send the reassembled packet as long as it
was below 9k.

Instead we have to cap by the largest fragment size seen.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/bridge/br_netfilter_hooks.c