local-addresses: ignore tentative addresses

As tentative addresses may be dropped soon if DAD failed.
This commit is contained in:
Yu Watanabe
2024-01-20 16:07:19 +09:00
parent 5cb56068d0
commit e90863f231
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ int local_addresses(
r = sd_rtnl_message_addr_get_flags(m, &flags);
if (r < 0)
return r;
if (flags & IFA_F_DEPRECATED)
if ((flags & (IFA_F_DEPRECATED|IFA_F_TENTATIVE)) != 0)
continue;
if (!GREEDY_REALLOC0(list, n_list+1))