Alan Maguire wrote: > Anurag S. Maskey wrote: >> In creating this duplicate address, I found that the RTM_IFINFO >> messages do not contain the IFF_DUPLICATE flag. Instead >> icfg_set_addr() and icfg_set_flags() (in libinetcfg) perform DAD and >> return ICFG_DAD_FOUND if duplicate address is found. >> >> The return value from icfg_set_addr() and icfg_set_flags() are >> checked and the state transition to MAINTENANCE if it is >> ICFG_DAD_FOUND. Does this sound reasonable? >> > Will that work for DHCP - i.e. what if someone > else has set a static address and the DHCP server > returns a duplicate? In that case, dhcpagent is > responsible for setting the address, right? Do we - > or should we - use icfg_get_flags when we get > an address so we can pick up the ICFG_DAD_FOUND? 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?
Anurag
