netfilter: flowtable: reload ip{v6}h in nf_flow_nat_ip{v6}
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Tue, 17 Mar 2020 02:02:52 +0000 (10:02 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 19 Mar 2020 20:04:50 +0000 (21:04 +0100)
commit61abaf02d2ec3d4575c66fa1b4a863877736b932
tree4ef87c6a748e4ede1d3c4ba3d8076ea2e8444ffd
parent3c025b6317272ee8493ee20fa5035c087626af48
netfilter: flowtable: reload ip{v6}h in nf_flow_nat_ip{v6}

Since nf_flow_snat_port and nf_flow_snat_ip{v6} call pskb_may_pull()
which may change skb->data, so we need to reload ip{v6}h at the right
place.

Fixes: a908fdec3dda ("netfilter: nf_flow_table: move ipv6 offload hook code to nf_flow_table")
Fixes: 7d2086871762 ("netfilter: nf_flow_table: move ipv4 offload hook code to nf_flow_table")
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_flow_table_ip.c