Sebastien Roy wrote:
> On Mon, 2009-08-17 at 21:44 -0400, Anurag Maskey wrote:
>   
>> I looked at the debug logs from routing_events_v4() and I did't see 
>> flags for IFF_DUPLICATE in the routing socket messages, neither in 
>> RTM_NEWADDR nor RTM_IFINFO.  Will the flags in the routing socket 
>> messages be different than what icfg_get_flags() return?
>>     
>
> Yes, the folks who invented the if_msghdr_t only allocated 32-bits of
> flag space in ifm_flags.  The flags above 32-bits (anything above
> IFF_OFFLINE in <net/if.h>) can't be seen by routing sockets as a result.
>   
Thanks Seb.  We'll have to get the flags via icfg_get_flags() when 
RTM_NEWADDR and RTM_IFINFO routing socket messages are received (rather 
than the current flags from the routing socket messages).  Then, 
nwamd_ncu_handle_if_event() can look at the flags and transition to 
"maintenance/duplicate address detected"  state (Or the method itself 
can call icfg_get_flags()).  When both DHCP and static addresses are 
added, we end up in nwamd_ncu_handle_if_event() and transitioning the 
state here consolidates state transitions.

Anurag

Reply via email to