cdsk: fix big endian problem
authorHauke Mehrtens <hauke.mehrtens@lantiq.com>
Mon, 8 Jun 2015 20:03:19 +0000 (22:03 +0200)
committerErich Keane <erich.keane@intel.com>
Tue, 9 Jun 2015 19:38:53 +0000 (19:38 +0000)
commit7189bc088f558945972d82a9a3427001cb20000a
treef818ef444c08874eca590e6cc95de914fc325157
parent995686dc7e22893374b8b2868d445b8896365057
cdsk: fix big endian problem

Without this patch the client will endianes swap the port number when
sending the detailed request after it got the answer for his multicast
get. Use the same method for storing the port number in the address
array in ever part of the code and do not use memcpy and manual
bytewise coping mixed over the code. memcpy was used once and byte wise
copy was used twice so I choose the majority.
This was tested on MIPS BE 32 Bit.

Change-Id: Ib486171987004d10209d2bbf6b1d9ada75235651
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1220
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Doug Hudson <douglas.hudson@intel.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/stack/src/ocstack.c