]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: flowtable: fix nft_flow_route source address for nat case
authorwenxu <wenxu@chinatelecom.cn>
Thu, 26 May 2022 01:25:46 +0000 (21:25 -0400)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 31 May 2022 21:32:53 +0000 (23:32 +0200)
commit97629b237a8cb7ac655c3969b8d5e57300ff6598
tree864d71bf1b3b36328fc921a1f5ac388746371183
parentf1896d45fee90a868dfd0b3cc119e4cc1bbd7ca2
netfilter: flowtable: fix nft_flow_route source address for nat case

For snat and dnat cases, the saddr should be taken from reverse tuple.

Fixes: 3412e1641828 (netfilter: flowtable: nft_flow_route use more data for reverse route)
Signed-off-by: wenxu <wenxu@chinatelecom.cn>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_flow_offload.c