Hi,
following "dhcp released: Ip configuration not cleaned" exchanges,
please find bellow a patch to clean ip configuration when dhcp is released.
regards
Thierry
---
src/dhcp.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/dhcp.c b/src/dhcp.c
index 03a2b90..2b27fad 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -75,6 +75,7 @@ static void dhcp_invalid(struct connman_dhcp *dhcp)
__connman_6to4_remove(ipconfig);
+ __connman_ipconfig_address_remove(ipconfig);
__connman_service_set_domainname(service, NULL);
__connman_service_set_pac(service, NULL);
__connman_service_timeserver_remove(service, dhcp->timeserver);
@@ -414,6 +415,8 @@ static void remove_network(gpointer user_data)
dhcp_release(dhcp);
+ dhcp_invalid(dhcp);
+
dhcp_free(dhcp);
g_free(dhcp);
}
--
1.7.3
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman