fixed the bug related to coap over tcp pdu creation.
authorhyuna0213.jo <hyuna0213.jo@samsung.com>
Tue, 15 Mar 2016 05:58:46 +0000 (14:58 +0900)
committerJon A. Cruz <jon@joncruz.org>
Thu, 17 Mar 2016 14:47:39 +0000 (14:47 +0000)
commitbf182061cd1e3146e568278cb99e73216f6da3e4
treec45d6417026070fb22633413eb7d3a011ad4a3fc
parent5c7cc35ff92ed6f51d978337253a1c7ee9dd37ba
fixed the bug related to coap over tcp pdu creation.

The first nibble of the frame is used to indecate the length of
the options/payload. and if a value is 13, an 8-bit unsigned integer
follows the initial byte and indicates the length of options/payload
minus 13. even in case the length of options/payload is 13, an 8-bit
unsigned interger has to be used to indicate 0.

Change-Id: I580e126755ae4b3018fe7eb11eae34035b0efa6c
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5901
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
(cherry picked from commit 417ac656bad3f3c84f5cbbc8a4c88b5426a4fe1d)
Reviewed-on: https://gerrit.iotivity.org/gerrit/5999
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
resource/csdk/connectivity/lib/libcoap-4.1.1/pdu.c