Enable IPv6 Interface for Android, Tizen
authorhyuna0213.jo <hyuna0213.jo@samsung.com>
Mon, 5 Sep 2016 02:43:54 +0000 (11:43 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Mon, 12 Sep 2016 06:36:34 +0000 (06:36 +0000)
Enable IPv6 Interface for Android, Tizen

Change-Id: Ic92d724556240e4a9f5f77ea2c4b546dc93c2226
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11379
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/connectivity/src/ip_adapter/android/caipnwmonitor.c
resource/csdk/connectivity/src/ip_adapter/tizen/caipnwmonitor.c

index 24c8224..ec426d9 100644 (file)
@@ -255,6 +255,13 @@ u_arraylist_t *CAIPGetInterfaceInformation(int desiredIndex)
         {
             goto exit;
         }
+
+        // Add IPv6 interface
+        result = CAAddInterfaceItem(iflist, ifindex, name, AF_INET6, addr, flags);
+        if (CA_STATUS_OK != result)
+        {
+            goto exit;
+        }
     }
     return iflist;
 
index fa66949..3635f15 100644 (file)
@@ -269,6 +269,13 @@ u_arraylist_t *CAIPGetInterfaceInformation(int desiredIndex)
         {
             goto exit;
         }
+
+        // Add IPv6 interface
+        result = CAAddInterfaceItem(iflist, ifindex, name, AF_INET6, addr, flags);
+        if (CA_STATUS_OK != result)
+        {
+            goto exit;
+        }
     }
     return iflist;