]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2ad0834496a8df6777b744862a0ccf44a6c2a573
tree25e1d3ef010defff7e59a7437c39c41a584355b4
parent12fdd67298b6758a6e0efef0e0aa016cbaafefb9
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: c550be63df75 ("netfilter: nf_flow_table: hardware offload support")
Fixes: 513f32e36a2cf ("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