Provided option to set IPType as Auto for IPv6 55/75555/2 accepted/tizen/common/20160621.184503 accepted/tizen/ivi/20160623.120459 accepted/tizen/mobile/20160623.120402 accepted/tizen/tv/20160623.120415 accepted/tizen/wearable/20160623.120438 submit/tizen/20160621.060739 submit/tizen/20160621.234856
authorSumit Aggarwal <aggarwal.s@samsung.com>
Mon, 20 Jun 2016 16:29:53 +0000 (21:59 +0530)
committerSumit Aggarwal <aggarwal.s@samsung.com>
Mon, 20 Jun 2016 17:52:06 +0000 (23:22 +0530)
Change-Id: I68a5eb90d3f635b0e7f7e4c5dd59ff52226fd689
Signed-off-by: Sumit Aggarwal <aggarwal.s@samsung.com>
test/connection_test.c

index 4fec771..332b1f2 100755 (executable)
@@ -644,7 +644,7 @@ static int test_update_network_info(connection_profile_h profile)
 
        test_get_user_int("Input Address Family (0:IPv4 1:IPv6) :", &address_family);
 
-       if (test_get_user_int("Input IPv4 Address Type (DHCP:1, Static:2)"
+       if (test_get_user_int("Input IPv4/IPv6 Address Type (DHCP:1, Static:2, Auto:3)"
                                " - (Enter for skip) :", &input_int)) {
                switch (input_int) {
                case 1:
@@ -665,6 +665,11 @@ static int test_update_network_info(connection_profile_h profile)
                        if (test_update_proxy_info(profile, address_family) == -1)
                                return -1;
                        break;
+               case 3:
+                       rv = connection_profile_set_ip_config_type(profile,
+                                                               address_family,
+                                                               CONNECTION_IP_CONFIG_TYPE_AUTO);
+                       break;
                default:
                        return -1;
                }