On Mon, 2014-09-15 at 13:33 +0200, Peter Meerwald wrote:
> From: Peter Meerwald <[email protected]>
> 
> Connman constantly updates the IP when a lease without gateway is received, 
> e.g.
> connmand[7607]: eth0.42 {del} route 0.0.0.0 gw 0.0.0.0 scope 253 <LINK>
> connmand[7607]: eth0.42 {add} route 0.0.0.0 gw 0.0.0.0 scope 253 <LINK>
> connmand[7607]: eth0.42 {del} route 0.0.0.0 gw 0.0.0.0 scope 253 <LINK>
> connmand[7607]: eth0.42 {add} route 0.0.0.0 gw 0.0.0.0 scope 253 <LINK>
> 
> the problematic condition in dhcp.c/lease_available_cb() is:
> if (!c_address || !c_gateway)
>   ip_change = true;
> i.e. no address or gateway configured -> IP changed?!
> 
> the remaining checks need to be fixed as well, g_strcmp0() already handles
> the case when one or both of the strings is NULL

And applied, thanks!

Cheers,

        Patrik


_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to