From 92a856a84670d11de6a440dac3a3395c36d555d4 Mon Sep 17 00:00:00 2001 From: "bg.chun" Date: Wed, 2 Nov 2016 20:38:25 +0900 Subject: [PATCH] Fix CAGetNetworkInfo support to getting ifindex Current CAGetNetworkInfo function always set ifindex as 0. Change logic to set ifindex parsed from platform. Change-Id: I98d53dc0fe4a666b6c9eaf8900d1e68ee4c925f2 Signed-off-by: bg.chun Reviewed-on: https://gerrit.iotivity.org/gerrit/13955 Tested-by: jenkins-iotivity Reviewed-by: Jaewook Jung Reviewed-by: Jaehong Jo Reviewed-by: Ashok Babu Channa --- resource/csdk/connectivity/src/ip_adapter/caipserver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resource/csdk/connectivity/src/ip_adapter/caipserver.c b/resource/csdk/connectivity/src/ip_adapter/caipserver.c index 4cf997b..3a70e93 100644 --- a/resource/csdk/connectivity/src/ip_adapter/caipserver.c +++ b/resource/csdk/connectivity/src/ip_adapter/caipserver.c @@ -1537,7 +1537,7 @@ CAResult_t CAGetIPInterfaceInformation(CAEndpoint_t **info, uint32_t *size) } eps[j].adapter = CA_ADAPTER_IP; - eps[j].ifindex = 0; + eps[j].ifindex = ifitem->index; if (ifitem->family == AF_INET6) { @@ -1555,7 +1555,7 @@ CAResult_t CAGetIPInterfaceInformation(CAEndpoint_t **info, uint32_t *size) j++; eps[j].adapter = CA_ADAPTER_IP; - eps[j].ifindex = 0; + eps[j].ifindex = ifitem->index; if (ifitem->family == AF_INET6) { -- 2.7.4