From 913260d2ee5f1d5b18b6eb4a258abd071b50adff Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Fri, 25 Mar 2011 15:03:17 +0200 Subject: service: Create/remove 6to4 tunnel. --- src/dhcp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/dhcp.c') diff --git a/src/dhcp.c b/src/dhcp.c index 3106c3d1..03a2b903 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -73,6 +73,8 @@ static void dhcp_invalid(struct connman_dhcp *dhcp) if (ipconfig == NULL) return; + __connman_6to4_remove(ipconfig); + __connman_service_set_domainname(service, NULL); __connman_service_set_pac(service, NULL); __connman_service_timeserver_remove(service, dhcp->timeserver); @@ -289,6 +291,8 @@ static void lease_available_cb(GDHCPClient *dhcp_client, gpointer user_data) if (ip_change == TRUE) dhcp_valid(dhcp); + __connman_6to4_probe(service); + g_free(address); g_free(netmask); g_free(gateway); -- cgit v1.2.3