IOT-1447 Fix scope_id usage
authorDave Thaler <dthaler@microsoft.com>
Wed, 12 Oct 2016 17:32:13 +0000 (10:32 -0700)
committerAshok Babu Channa <ashok.channa@samsung.com>
Fri, 14 Oct 2016 05:01:58 +0000 (05:01 +0000)
commitac60c98eb4d77b73d5cfe614133607eec0bdd3ae
treea0a4a04753da5bff8e11677f02e6c245a496ee46
parent610ccf9aa9ac4e61f2af702f201e49f5fb6e4c7c
IOT-1447 Fix scope_id usage

Never assume that a scope id and an interface index are the same.
Removed bad code from the tcp adapter; the scope id should always
be present in the addr string of a scoped IPv6 address, and is correctly
handled by CAConvertNameToAddr and CAConvertAddrToName.

Change-Id: I19f8739d7da2e7944e3904770ca0d8e914608ba2
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13181
Reviewed-by: Jaewook Jung <jw0213.jung@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: David Antler <david.a.antler@intel.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/c_common/SConscript
resource/csdk/connectivity/src/ip_adapter/caipserver.c
resource/csdk/connectivity/src/tcp_adapter/catcpserver.c