[PATCH ipv6 v1 13/14] ipconfig: Enable ipconfig if loading autoconfigurable IPv6 config.

Jukka Rissanen jukka.rissanen at nokia.com
Mon Jan 24 04:12:14 PST 2011


---
 src/ipconfig.c |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/src/ipconfig.c b/src/ipconfig.c
index 0627b5b..1fb8281 100644
--- a/src/ipconfig.c
+++ b/src/ipconfig.c
@@ -1782,8 +1782,21 @@ int __connman_ipconfig_load(struct connman_ipconfig *ipconfig,
 		if (ipconfig->method == CONNMAN_IPCONFIG_METHOD_OFF)
 			disable_ipv6(ipconfig);
 		else if (ipconfig->method == CONNMAN_IPCONFIG_METHOD_AUTO ||
-			ipconfig->method == CONNMAN_IPCONFIG_METHOD_MANUAL)
+			ipconfig->method == CONNMAN_IPCONFIG_METHOD_MANUAL) {
 			enable_ipv6(ipconfig);
+			__connman_ipconfig_enable(ipconfig);
+
+			if (ipconfig->ops_data) {
+				struct connman_service *service =
+							ipconfig->ops_data;
+				struct connman_network *network;
+				network = __connman_service_get_network(
+								service);
+				if (network)
+					__connman_network_set_ipconfig(network,
+							NULL, ipconfig);
+			}
+		}
 	}
 
 	g_free(method);
-- 
1.7.0.4




More information about the connman mailing list