http://defect.opensolaris.org/bz/show_bug.cgi?id=11103



--- Comment #9 from Anurag S. Maskey <Anurag.Maskey at Sun.COM> 2009-09-22 
18:20:06 UTC ---
(In reply to comment #8)
> (In reply to comment #7)
> > This bug wasn't fixed completely.  nwamd_ncu_handle_if_state_event() ignores
> > link-local addresses when RTM_NEWADDR routing socket messages are received. 
> > But more is needed.  After dhcpagent is started, we check if the ncu is up,
> > with nwamd_interface_ncu_up().  This, in turn, checks if stateless is 
> > running,
> > with stateless_running() and shifts the ncu to online.  I think there is no
> > need to check for stateless_running() here.
> 
> I don't follow this.  Stateless and link-local are not the same.

My bad, got confused over here ...

It turns out that nwamd_dhcp_managing() is returning B_TRUE after dhcpagent
starts but before the interface gets an address.

In nwamd_dhcp_managing(), icfg_get_addr() returns 0.0.0.0 and when that address
is checked with find_address(), it doesn't find a match and returns NULL.  When
the flags are checked with icfg_get_flags(), IFF_DHCPRUNNING is set right after
dhcp is requested and the interface doesn't have an address yet.

It seems we should check for 0.0.0.0 after icfg_get_addr() and skip checking
the flags in that case.

-- 
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Reply via email to