projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
84c2a95
)
ipconfig: Enable or disable IPv6 when loading the saved service
author
Jukka Rissanen
<jukka.rissanen@nokia.com>
Thu, 10 Feb 2011 15:52:14 +0000
(17:52 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 11 Feb 2011 11:26:01 +0000
(12:26 +0100)
src/ipconfig.c
patch
|
blob
|
history
diff --git
a/src/ipconfig.c
b/src/ipconfig.c
index
4d9b30f
..
0627b5b
100644
(file)
--- 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);