From 1b092acd5ecafb2aa6d635ee437368c1e2c58a35 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Thu, 10 Feb 2011 17:52:20 +0200 Subject: [PATCH] ipconfig: Enable ipconfig if loading autoconfigurable IPv6 config --- src/ipconfig.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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); -- 2.7.4