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)
commitd6b3347bf178266259af64b1f27b5cf54acf62c8
tree73511ca46445418d5dba23d91ebfb4371b679593
parentefaea94aaf0decd55b15aa7068d4d516a352e56e
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