Re: [PATCH 7/7] netconfig: Control optimistic DAD
Andrew Zaborowski <[email protected]>
| Newsgroups | dev.linux.lists.ell |
|---|---|
| Message-ID | <CAOq732JQmp_GuQagrvcksZZCrqDcUyQTDwdxbBu3WEPetahn1Q@mail.gmail.com> |
Hi Denis, On Mon, 19 Sept 2022 at 20:59, Denis Kenzior <[email protected]> wrote: > > @@ -1724,7 +1737,8 @@ static void netconfig_ifaddr_ipv6_added(struct l_netconfig *nc, > > struct in6_addr in6; > > _auto_(l_free) char *ip = NULL; > > > > - if (ifa->ifa_flags & IFA_F_TENTATIVE) > > + if ((ifa->ifa_flags & IFA_F_TENTATIVE) && > > + !(ifa->ifa_flags & IFA_F_OPTIMISTIC)) > > return; > > This implies that we set the link local address even if it is still OPTIMISTIC. > Do we now need to update icmp6_send_router_solicitation() logic to make sure > we do not include SLLAO from optimistic addresses? Good point. I'll add an extra l_icmp6_client_set_link_local_address() parameter to indicate whether the address is optimistic and make sure we call it again after DAD finishes. Best regards