Fixed broken presence after IPv6 plumbing merge to master.
authorErich Keane <erich.keane@verizon.net>
Sat, 11 Jul 2015 05:37:41 +0000 (22:37 -0700)
committerErich Keane <erich.keane@intel.com>
Sat, 11 Jul 2015 17:12:10 +0000 (17:12 +0000)
commit8bbdd4b071d8c061f436b1c67e267ba82c10e612
treed23b2c6c28153ca1cc100387779ca52be3df5659
parent9965a87e82da3742a8ae5ef07734c9b5cbd23b6b
Fixed broken presence after IPv6 plumbing merge to 

Presence wasn't working for multiple reasons. oc/presence was not moved
to oic/ad, probably lost in the merge to master.
resourceUri in CA data structures was moved form the endpoint to the
CAInfo struct. But wasn't included in a clone operation which resulted
in a race condition when the memory was free'd in the main thread before
being accessed by the thread in CA.
Other adapter/flag issues.
Unicast presence failed to work because host() from OCResource only
returned the IP without the port.

Change-Id: If2e46f4677ebe369cbaee9609de38c369bf4c524
Signed-off-by: Mandeep Shetty <mandeep.shetty@intel.com>
Signed-off-by: Erich Keane <erich.keane@verizon.net>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1424
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/connectivity/src/ip_adapter/caipserver.c
resource/csdk/stack/include/octypes.h
resource/csdk/stack/src/ocserverrequest.c
resource/csdk/stack/src/ocstack.c
resource/src/InProcClientWrapper.cpp