netfilter: tcpmss, optstrip: prefer skb_ensure_writable
authorFlorian Westphal <fw@strlen.de>
Thu, 23 May 2019 13:44:11 +0000 (15:44 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 31 May 2019 16:02:48 +0000 (18:02 +0200)
commitfb2eb1c131f8526905a83bd98fd2d4e7c9f950a0
treec9fb6294ce98bb494f6a0bcf2ae9e07dcf3c5e32
parent8e03707f118cd2f8dc993b01dd15e78da147a29e
netfilter: tcpmss, optstrip: prefer skb_ensure_writable

This also changes optstrip to only make the tcp header writeable
rather than the entire packet.

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