modified some code to make tcp header.
authorjihwan.seo <jihwan.seo@samsung.com>
Fri, 2 Oct 2015 04:42:15 +0000 (13:42 +0900)
committerPatrick Lankswert <patrick.lankswert@intel.com>
Tue, 6 Oct 2015 00:38:08 +0000 (00:38 +0000)
commit24b2526a8f611d0cfc5437017cdeea9e9fbdd1f4
treecd860c3311eb041256dd554bb70fe030e55466bf
parent0f03309b96ec7ffff6156109e9f243e12a72fac8
modified some code to make tcp header.

I have modified for tcp header which
has 0 ~ 12 length or 8bit message length.
since previous code has potential issue for byte ordering.

Change-Id: Id2f63608442ccf85558c61dbfd631a01f59ad8b9
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3401
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
(cherry picked from commit 27f18c55a2d55c5f9b3e3006d5ca8845f27d69a5)
Reviewed-on: https://gerrit.iotivity.org/gerrit/3519
resource/csdk/connectivity/lib/libcoap-4.1.1/option.c
resource/csdk/connectivity/lib/libcoap-4.1.1/pdu.c
resource/csdk/connectivity/lib/libcoap-4.1.1/pdu.h