From: Jukka Rissanen Date: Thu, 10 Feb 2011 15:52:14 +0000 (+0200) Subject: ipconfig: Enable or disable IPv6 when loading the saved service X-Git-Tag: 2.0_alpha~1741 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e50d8ca9de65d8be4e4a14ab3f4484e4070c45ee;p=framework%2Fconnectivity%2Fconnman.git ipconfig: Enable or disable IPv6 when loading the saved service --- diff --git a/src/ipconfig.c b/src/ipconfig.c index 4d9b30f..0627b5b 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -1778,6 +1778,14 @@ int __connman_ipconfig_load(struct connman_ipconfig *ipconfig, if (ipconfig->method == CONNMAN_IPCONFIG_METHOD_UNKNOWN) ipconfig->method = CONNMAN_IPCONFIG_METHOD_OFF; + if (ipconfig->type == CONNMAN_IPCONFIG_TYPE_IPV6) { + if (ipconfig->method == CONNMAN_IPCONFIG_METHOD_OFF) + disable_ipv6(ipconfig); + else if (ipconfig->method == CONNMAN_IPCONFIG_METHOD_AUTO || + ipconfig->method == CONNMAN_IPCONFIG_METHOD_MANUAL) + enable_ipv6(ipconfig); + } + g_free(method); g_free(key);