Re: The mystery of optimistic ipv6 DAD handling
From: David Miller <davem@davemloft.net>
Date: 2012-01-03 19:49:19
From: David Miller <davem@davemloft.net>
Date: 2012-01-03 19:49:19
From: Neil Horman <nhorman@tuxdriver.com> Date: Tue, 3 Jan 2012 14:45:59 -0500
Because of the above, we can compeltely ignore the manual address add path as far as the optimistic path is concerned. Since we only call addrconf_prefix_rcv (where we add the SLAAC address), from ndisc_router_discovery (where we receive the new router advertisement, and parse its options), I think we can just augment addrconf_prefix_rcv with an extra parameter (a bool flag), which is set or cleared based on the value of the ND_OPT_SOURCE_LL_ADDR option in the ndopts array. addrconf_prefix_rcv can use that flag to set or clear the optimistic flag. Thoughts?
Sounds perfect, thanks Neil.