]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: Update ip6_route_me_harder to consider L3 domain
authorMartin Willi <martin@strongswan.org>
Tue, 19 Apr 2022 13:47:00 +0000 (15:47 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 25 Apr 2022 09:09:20 +0000 (11:09 +0200)
commit92862edc9bbe5319b1fb2c7a544f8c39cbe6c23d
tree318056aa1c84871df74f896718ef6d1075ccd392
parent457da0915a148adca0b8806852a6cc2d66c2668a
netfilter: Update ip6_route_me_harder to consider L3 domain

The commit referenced below fixed packet re-routing if Netfilter mangles
a routing key property of a packet and the packet is routed in a VRF L3
domain. The fix, however, addressed IPv4 re-routing, only.

This commit applies the same behavior for IPv6. While at it, untangle
the nested ternary operator to make the code more readable.

Fixes: 576f7d15f41a ("netfilter: Update ip_route_me_harder to consider L3 domain")
Cc: stable@vger.kernel.org
Signed-off-by: Martin Willi <martin@strongswan.org>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv6/netfilter.c