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>