modified setHost() in OCResource for ipv6 with scope ID
authorJaewook Jung <jw0213.jung@samsung.com>
Mon, 8 Aug 2016 08:17:59 +0000 (17:17 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Tue, 16 Aug 2016 12:15:18 +0000 (12:15 +0000)
commit0d893c9240268b29f3a569ffda9dbb1d29877d86
tree658eb4520d4836de21ab1a97e9ab25f48f758b76
parente9dfd521490835233d789a8a3529ec6a7b37db35
modified setHost() in OCResource for ipv6 with scope ID

Since scope ID info has been appended to address info of resource object,
checking address validity logic should be modified
to check only address part of full string but not scope ID.

and added unit tests to check validation of host for constructResourceObject.

Change-Id: I6d1771a5573bf6324c8565adb3ff2abb53c2ac76
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10129
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/src/OCResource.cpp
resource/unittests/OCResourceTest.cpp