Hi Forest,

On Fri, May 13, 2011 at 11:05:07AM -0400, Forest Bond wrote:
> > The additional issue is that it seems that we are trying to release the old
> > lease and then acquire a new one but the release isn't actually working.  
> > From
> > the logs (with CONNMAN_DHCP_DEBUG=1) I see that a DHCP release request is 
> > being
> > sent ("DHCP: sending DHCP release request"), and I do see "eth0 ip release"
> > debug messages, too, so I'm not sure what is going wrong.
> 
> This issue happens because we do the DHCP release and then immediately free 
> the
> DHCP client without waiting for the callback, 
Which callback ? There is no callback for a DHCP_RELEASE packet because the
DHCP server will not answer to it.

> so the address is never removed
> from the interface.  Thierry, your patch addresses this by always removing the
> address, which makes some sense because we know that we are not going to 
> remove
> it otherwise (since we free the DHCP client).  But I am also unsure about it
> being the best fix.  It does seem to be a reasonable work-around.
It is, but I think it should be handled from the dhcp ConnMan layer.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to