summaryrefslogtreecommitdiff
path: root/src/dhcp.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-06-01 00:16:26 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2011-06-01 00:16:26 +0200
commit39825846a219b47b216d89cc036cf9640aaeead4 (patch)
tree2c90c201c3cba526e77d4488c8c3db98a9ac670c /src/dhcp.c
parent6fd94b729495d6b9cdb66ae33adafd59f8b38957 (diff)
downloadconnman-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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dhcp.c b/src/dhcp.c
index b391ddf6..ab8ee5a0 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -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);