]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xt_TCPMSS: handle CHECKSUM_COMPLETE in tcpmss_tg6()
authorEric Dumazet <edumazet@google.com>
Fri, 15 Jan 2016 16:21:32 +0000 (08:21 -0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 18 Jan 2016 11:18:17 +0000 (12:18 +0100)
commit4279c16969512253812e6e8317641fb3af24d312
tree73511ca46445418d5dba23d91ebfb4371b679593
parent1f12bd4cb8890a33b137aa99b27b3a7436676ab1
netfilter: xt_TCPMSS: handle CHECKSUM_COMPLETE in tcpmss_tg6()

In case MSS option is added in TCP options, skb length increases by 4.
IPv6 needs to update skb->csum if skb has CHECKSUM_COMPLETE,
otherwise kernel complains loudly in netdev_rx_csum_fault() with a
stack dump.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_TCPMSS.c