Set socket family for IPv4 00/216600/3
authorSenthil Kumar G S <senthil.gs@samsung.com>
Thu, 24 Oct 2019 07:11:00 +0000 (12:41 +0530)
committerPyun DoHyun <dh79.pyun@samsung.com>
Wed, 30 Oct 2019 00:56:08 +0000 (00:56 +0000)
commit9b11c0b174bd543ababb4d8b757f49cd37edab55
tree255e9cc32c2e2c733a251ff15972c82548a5696a
parent9073f78abbe9eb9a40c1082fd616af3c5f8ebde6
Set socket family for IPv4

Patch for [CONPRO-1509] https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/588 has a bug
due to which the following error comes in Tizen Platform.

"01-01 11:43:56.060+0900 E/OIC_CA_TCP_SERVER_1023(P 2022, T 2031): catcpserver.c:
CATCPCreateSocket(1029) > bind socket failed: Address family not supported by protocol"

Reason: Address family is not set.

This patch fixes the issue.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/992729fd6eab4f1b57280f6502ce09d460ace39c
(cherry-picked from 992729fd6eab4f1b57280f6502ce09d460ace39c)

Change-Id: I98edd8c18ec8183bd2208d587599bf9ae294db12
Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
resource/csdk/connectivity/src/tcp_adapter/catcpserver.c