Hi Thierry,

On Wed, May 11, 2011 at 01:04:16AM +0200, Thierry Boureille wrote:
> Hi,
> 
> I'm currently doing some tests after moving from connman-0.64 to
> last release. Maybe I"m wrong but it seems that now ip v4 address is
> not correctly released when changing configuration from dhcp to
> manual. That leads to have multiple IP on interface (is it quite
> similar to
> http://lists.connman.net/pipermail/connman/2011-April/004699.html ?)
> 
> my test:
> ip addr show dev eth0
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
> state UNKNOWN qlen 1000
>     link/ether 00:1a:92:db:f2:7a brd ff:ff:ff:ff:ff:ff
>     inet 192.168.0.11/24 brd 192.168.0.255 scope global eth0
> 
> ./set-ipv4-method ethernet_001a92dbf27a_cable manual 10.23.23.23
> 255.255.255.0
> 
> ip addr show dev eth0
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
> state UNKNOWN qlen 1000
>     link/ether 00:1a:92:db:f2:7a brd ff:ff:ff:ff:ff:ff
>     inet 192.168.0.11/24 brd 192.168.0.255 scope global eth0
>     inet 10.23.23.23/24 brd 10.23.23.255 scope global eth0
> 
> ./set-ipv4-method ethernet_001a92dbf27a_cable dhcp
> 
> ip addr show dev eth0
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
> state UNKNOWN qlen 1000
>     link/ether 00:1a:92:db:f2:7a brd ff:ff:ff:ff:ff:ff
>     inet 192.168.0.11/24 brd 192.168.0.255 scope global eth0
> 
> 
> I found something which seems to correct this, but I'm not sure it's
> the correct way to do it
The idea is good, but I think the fix should be part of the dhcp.c routines.
For examples, calling dhcp_invalid() from dhcp.c:remove_network() would be a
better solution. Could you please try that out ?

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