updated the logic to combining block1 and block2 option
authorjihwanseo <jihwan.seo@samsung.com>
Wed, 29 Jul 2015 04:33:22 +0000 (13:33 +0900)
committerJon A. Cruz <jonc@osg.samsung.com>
Thu, 30 Jul 2015 19:05:34 +0000 (19:05 +0000)
commit80ec432984da1076def91cf911b6e71a9d088832
tree06fb684f6a8cd616e6b430bf2eb68f33d7aff215
parent8c044c478ccafb2faccbff398db02f79e4f58747
updated the logic to combining block1 and block2 option

- fixed IOT-637 issue
  Both the request and response may be large enough to
  require the use of blockwise-transfer.
  In this case, we should use the block1 and block2 option together.

- fixed IOT-635 issue
  if a lot of ports is enable in IP adapter.
  Token of CoAP can be used as blockID of BlockData set
  since all messages have same Token in multicast
  so Token + port have to be used.

- fixed klocworks data leak issue
  in CAAddBlockSizeOption, option is created, but the actual option
  doesn't have anything done with it.

Change-Id: I82808856c76cfd343c71460e303744b002d9a745
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1873
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
resource/csdk/connectivity/inc/cablockwisetransfer.h
resource/csdk/connectivity/src/cablockwisetransfer.c
resource/csdk/connectivity/src/camessagehandler.c