diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2011-06-01 00:16:26 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-06-01 00:16:26 +0200 |
commit | 39825846a219b47b216d89cc036cf9640aaeead4 (patch) | |
tree | 2c90c201c3cba526e77d4488c8c3db98a9ac670c /src/dhcp.c | |
parent | 6fd94b729495d6b9cdb66ae33adafd59f8b38957 (diff) | |
download | connman-39825846a219b47b216d89cc036cf9640aaeead4.tar.gz connman-39825846a219b47b216d89cc036cf9640aaeead4.tar.bz2 connman-39825846a219b47b216d89cc036cf9640aaeead4.zip |
dhcp: Call ipconfig_address_remove from dhcp_invalidate
Clearing the ipconfig fields is not enough, the actual rntl command needs
to be sent for the IP to be cleared.
Diffstat (limited to 'src/dhcp.c')
-rw-r--r-- | src/dhcp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -101,6 +101,8 @@ static void dhcp_invalidate(struct connman_dhcp *dhcp, connman_bool_t callback) dhcp->nameservers[i]); } + __connman_ipconfig_address_remove(ipconfig); + __connman_ipconfig_set_local(ipconfig, NULL); __connman_ipconfig_set_broadcast(ipconfig, NULL); __connman_ipconfig_set_gateway(ipconfig, NULL); |