]> 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)
commit0c15109e0c868d78f7f35f66d8e6a00fb43cfa7f
tree864d71bf1b3b36328fc921a1f5ac388746371183
parent27328949fae725bac8423f9fd970fae82140e10e
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: fb0f8e678cd4 (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