IFA_F_OPTIMISTIC is not supported?

2 messages, 2 authors, 2017-09-08 · open the first message on its own page

IFA_F_OPTIMISTIC is not supported?

From: <hidden>
Date: 2017-09-08 14:39:16

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.

Re: IFA_F_OPTIMISTIC is not supported?

From: Sabrina Dubroca <sd@queasysnail.net>
Date: 2017-09-08 15:07:36

2017-09-08, 10:29:03 -0400, soohoon.lee@f5.com wrote:
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 was planning to submit a patch to allow that soon (when net-next
reopens). While testing, I've found you need a few other small changes
once you allow userspace to set the optimistic flag on addresses.


Thanks,

-- 
Sabrina
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help