]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipv6: take care of scope when choosing the src addr
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 10 Jul 2024 08:14:29 +0000 (10:14 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sun, 14 Jul 2024 14:34:16 +0000 (07:34 -0700)
commitabb9a68d2c64dd9b128ae1f2e635e4d805e7ce64
treef4c0135691678b8cc3c84f1473e7193168ae7b86
parent252442f2ae317d109ef0b4b39ce0608c09563042
ipv6: take care of scope when choosing the src addr

When the source address is selected, the scope must be checked. For
example, if a loopback address is assigned to the vrf device, it must not
be chosen for packets sent outside.

CC: stable@vger.kernel.org
Fixes: afbac6010aec ("net: ipv6: Address selection needs to consider L3 domains")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20240710081521.3809742-4-nicolas.dichtel@6wind.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/addrconf.c