Fix presence with ipv6 changes
authorOmkar Hegde <omkar.m.hegde@intel.com>
Thu, 20 Aug 2015 17:59:11 +0000 (10:59 -0700)
committerJon A. Cruz <jonc@osg.samsung.com>
Fri, 21 Aug 2015 19:38:11 +0000 (19:38 +0000)
commit61aebb520d1cf8fc250400e2d3fa3858c7ce8c24
treefaa8d95a38902cefdc1f9ecb1a822a03ce28fd18
parent2762e0becadbf35003fb829994120a9336f952f3
Fix presence with ipv6 changes

Previously, the CA layer code was assuming that
all responses are always sent as unicast messages. But, in
the case of presence, it is always multicast. As a result,
the server sent presence notifications only to the ipv4
address and the clients subscribed to server's ipv6 address ignored
the notification. Adding isMulticast flag to the CAResponseInfo_t
structure and changing camessagehandler to handle multicast responses.

Change-Id: I4a0991aca6cf60b4b1ad3f0dfcda683284680adc
Signed-off-by: Omkar Hegde <omkar.m.hegde@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2252
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Mandeep Shetty <mandeep.shetty@intel.com>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
resource/csdk/connectivity/api/cacommon.h
resource/csdk/connectivity/common/src/caremotehandler.c
resource/csdk/connectivity/src/camessagehandler.c
resource/csdk/stack/src/ocserverrequest.c
resource/csdk/stack/src/ocstack.c