OSDN Git Service

netfilter: xt_HL: prefer skb_ensure_writable
authorFlorian Westphal <fw@strlen.de>
Thu, 23 May 2019 13:44:10 +0000 (15:44 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 31 May 2019 16:02:47 +0000 (18:02 +0200)
commit8e03707f118cd2f8dc993b01dd15e78da147a29e
tree83bb5a07ba2a7d820059cdb7d74a81f745c6a398
parent7418ee4c8810e4ad74fb05a8b8d4cf406738ac81
netfilter: xt_HL: prefer skb_ensure_writable

Also, make the argument to be only the needed size of the header
we're altering, no need to pull in the full packet into linear area.

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