Enable error responses to be sent back to the client.
authorMandeep Shetty <mandeep.shetty@intel.com>
Thu, 10 Sep 2015 21:35:05 +0000 (14:35 -0700)
committerJon A. Cruz <jonc@osg.samsung.com>
Sat, 12 Sep 2015 03:31:21 +0000 (03:31 +0000)
commit289ff6d919059fb5655ba19122eb05cb7b5000a8
treec40337de78d1ecc70b220eb8d874f81ed2d3932f
parent835c993d20a48687f5ff095e347e5831939c6e96
Enable error responses to be sent back to the client.

The resource uri was moved from the endpoint to the uri response info
struct in IPv6.
The function sendDirectStackResponses responsible for sending out ACKs,
RESETs and error codes back to the client was not updated to take in the
resource uri.
As a result, the CA layer ate this error with a uri is NULL log and the
client did not receive any response.

Added resource Uri to the responseInfo struct to fix the problem.

Change-Id: Ic3b964c646244698c1621860922fc06b40842bc3
Signed-off-by: Mandeep Shetty <mandeep.shetty@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2454
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
resource/csdk/stack/include/internal/ocstackinternal.h
resource/csdk/stack/src/ocstack.c