Temp fix for broken multicast presence after WiFi/Ethernet merge.
authorMandeep Shetty <mandeep.shetty@intel.com>
Thu, 7 May 2015 00:04:56 +0000 (17:04 -0700)
committerUze Choi <uzchoi@samsung.com>
Thu, 7 May 2015 04:18:30 +0000 (04:18 +0000)
commite8c8872cd2b63cd04fee754fcc33ecf5519ff172
treea9ea41dfbf25e3383b46a072d976960c6979dd69
parent60f8a0f21a5e75d37eb1a9ce0230f04a0ab3b6c3
Temp fix for broken multicast presence after WiFi/Ethernet merge.

This is a temporary fix.
The multicast notifications from server side need remote endpoint to be
null in caipadapter.c::CAIPSendDataThread().
But the function signature called from the RI layer into the CA layer
to send responses takes a CARemoteEndpoint struct which cannot be null.

The temp fix is to make caipclient.c think that a response is multicast if
the remoteAddress is the fixed multicast ip 224.0.1.187.

Change-Id: I6720ceb123d044b9c2aa510d41488b5003324e4e
Signed-off-by: Mandeep Shetty <mandeep.shetty@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/922
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sakthivel Samidurai <sakthivel.samidurai@intel.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
resource/csdk/connectivity/src/ip_adapter/caipclient.c