kernel-netlink: Don't enumerate deprecated IPv6 addresses

This commit is contained in:
Tobias Brunner
2019-10-22 14:13:32 +02:00
parent cf98706bb8
commit 64795cc416
@@ -1603,8 +1603,9 @@ CALLBACK(filter_addresses, bool,
{ /* address is regular, but not requested */ { /* address is regular, but not requested */
continue; continue;
} }
if (addr->scope >= RT_SCOPE_LINK) if (addr->flags & IFA_F_DEPRECATED ||
{ /* skip addresses with a unusable scope */ addr->scope >= RT_SCOPE_LINK)
{ /* skip deprecated addresses or those with an unusable scope */
continue; continue;
} }
*out = addr->ip; *out = addr->ip;