Message ID | 20240710081521.3809742-4-nicolas.dichtel@6wind.com (mailing list archive) |
---|---|
State | Accepted |
Commit | abb9a68d2c64dd9b128ae1f2e635e4d805e7ce64 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | vrf: fix source address selection with route leak | expand |
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 5c424a0e7232..4f2c5cc31015 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -1873,7 +1873,8 @@ int ipv6_dev_get_saddr(struct net *net, const struct net_device *dst_dev, master, &dst, scores, hiscore_idx); - if (scores[hiscore_idx].ifa) + if (scores[hiscore_idx].ifa && + scores[hiscore_idx].scopedist >= 0) goto out; }