netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* IFA_F_OPTIMISTIC is not supported?
@ 2017-09-08 14:29 soohoon.lee
  2017-09-08 15:07 ` Sabrina Dubroca
  0 siblings, 1 reply; 2+ messages in thread
From: soohoon.lee @ 2017-09-08 14:29 UTC (permalink / raw)
  To: netdev

rtm_newaddr masks off OPTIMISTIC.

inet6_rtm_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh)
...
        /* We ignore other flags so far. */
        ifa_flags &= IFA_F_NODAD | IFA_F_HOMEADDRESS | IFA_F_MANAGETEMPADDR |
                     IFA_F_NOPREFIXROUTE;

Is there any problem or not allowed?

I need to do something like adding a route for the address after adding the address but fails because the address is not useable yet.
I tried NODAD but there's still little delay until IFA_F_TENTATIVE is cleared.
	- rtm_newaddr sets IFA_F_TENTATIVE
	- set a timer for dad start with delay=0
	- some delay
	- dad starts but ends immediately because of NODAD flag, and clears TENTATIVE.

And it looks like OPTIMISTIC does what I need but kind of disabled like the code above.

Thanks,
Soohoon.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-08 15:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-08 14:29 IFA_F_OPTIMISTIC is not supported? soohoon.lee
2017-09-08 15:07 ` Sabrina Dubroca

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).