netfilter: nf_flow_table_offload: fix the nat port mangle.
authorwenxu <wenxu@ucloud.cn>
Fri, 20 Dec 2019 04:14:38 +0000 (12:14 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 5 Jan 2020 09:06:34 +0000 (10:06 +0100)
commit73327d47d2c04214f23217b982a004c22a493c78
tree25e1d3ef010defff7e59a7437c39c41a584355b4
parentf31ad71c44c17e55d9a6fa24f8249a15365cf8b2
netfilter: nf_flow_table_offload: fix the nat port mangle.

Shift on 32-bit word to define the port number depends on the flow
direction.

Fixes: c29f74e0df7a ("netfilter: nf_flow_table: hardware offload support")
Fixes: 7acd9378dc652 ("netfilter: nf_flow_table_offload: Correct memcpy size for flow_overload_mangle()")
Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_flow_table_offload.c