]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 22 Jun 2022 12:22:59 +0000 (14:22 +0200)
commitb26dd37a1a110a5ccec9208d27d7cfc2caa98ea0
tree60042d6e314cb19d089823c5c8ab85a58e35bbf7
parent38f868d7bba92b1429722f0b545f770af039cb42
netfilter: Update ip6_route_me_harder to consider L3 domain

BugLink: https://bugs.launchpad.net/bugs/1978234
commit 8ddffdb9442a9d60b4a6e679ac48d7d21403a674 upstream.

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: 6d8b49c3a3a3 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
net/ipv6/netfilter.c