summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaesub.kim <taesub.kim@samsung.com>2015-05-27 09:40:23 (GMT)
committertaesub kim <taesub.kim@samsung.com>2015-05-27 09:42:02 (GMT)
commit1e3486770b5de4f0e496a7a4103b0e5cb1da8433 (patch)
treed1e963fb98677d20577bf165053488420683da04
parent9e7ccc53900e9fe24bfcf56c22a4c6be7b002dc5 (diff)
downloadconnman-1e3486770b5de4f0e496a7a4103b0e5cb1da8433.zip
connman-1e3486770b5de4f0e496a7a4103b0e5cb1da8433.tar.gz
connman-1e3486770b5de4f0e496a7a4103b0e5cb1da8433.tar.bz2
Add support for ipv6refs/changes/94/39994/2
Support the IPv6 auto in cellular network desc : Add the logic if the IPv6 configuration is auto conf in cellular network Change-Id: Ibb0602a449469d42d8caf4c6162caab95136aeff Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
-rw-r--r--plugins/telephony.c5
-rw-r--r--src/network.c11
2 files changed, 15 insertions, 1 deletions
diff --git a/plugins/telephony.c b/plugins/telephony.c
index ea0bf65..88703ed 100644
--- a/plugins/telephony.c
+++ b/plugins/telephony.c
@@ -1202,8 +1202,11 @@ static void __set_network_connected(struct telephony_network *network,
case CONNMAN_IPCONFIG_METHOD_OFF:
case CONNMAN_IPCONFIG_METHOD_MANUAL:
case CONNMAN_IPCONFIG_METHOD_DHCP:
+ break;
case CONNMAN_IPCONFIG_METHOD_AUTO:
- DBG("ipv6 not supported");
+ connman_network_set_ipv6_method(network->network,
+ network->ipv6_method);
+ setip = TRUE;
break;
case CONNMAN_IPCONFIG_METHOD_FIXED:
diff --git a/src/network.c b/src/network.c
index 8c9fdcb..eba068b 100644
--- a/src/network.c
+++ b/src/network.c
@@ -614,6 +614,11 @@ static void autoconf_ipv6_set(struct connman_network *network)
network->connecting = false;
+#if defined TIZEN_EXT
+ if(network->type == CONNMAN_NETWORK_TYPE_CELLULAR)
+ return;
+#endif
+
service = connman_service_lookup_from_network(network);
if (!service)
return;
@@ -664,6 +669,12 @@ static void set_connected(struct connman_network *network)
break;
case CONNMAN_IPCONFIG_METHOD_DHCP:
case CONNMAN_IPCONFIG_METHOD_AUTO:
+#if defined TIZEN_EXT
+ if(network->type == CONNMAN_NETWORK_TYPE_CELLULAR)
+ __connman_service_ipconfig_indicate_state(service,
+ CONNMAN_SERVICE_STATE_CONFIGURATION,
+ CONNMAN_IPCONFIG_TYPE_IPV6);
+#endif
autoconf_ipv6_set(network);
break;
case CONNMAN_IPCONFIG_METHOD_FIXED: