aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-02-22 16:48:54 +0000
committerGerrit Code Review <gerrit@fd.io>2019-02-22 16:48:54 +0000
commit9c88e58ffe33a869caf63d5cc72ae1bdd6411ba9 (patch)
tree9cb83b698faf91e1a54760716f609e29221dc7ff
parenta41f31d2c8610cf458bbb3b6279dc27954b1f73f (diff)
parent880795dec24dc966f8196e66b0fa1dd6debd958f (diff)
Merge "[HICN-81] UDP face data dropped due to struct sockaddr inconsistency"
-rw-r--r--hicn-light/src/io/udpListener.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hicn-light/src/io/udpListener.c b/hicn-light/src/io/udpListener.c
index 6cdb9283e..c49571dd4 100644
--- a/hicn-light/src/io/udpListener.c
+++ b/hicn-light/src/io/udpListener.c
@@ -520,6 +520,10 @@ static void _readcb(int fd, PARCEventType what, void *udpVoid) {
ssize_t readLength = recvfrom(fd, packet, 1500, 0,
(struct sockaddr *)&peerIpAddress, &peerIpAddressLength);
+#ifdef __APPLE__
+ peerIpAddress.ss_len = 0x00;
+#endif
+
if(readLength < 0) {
printf("unable to read the message\n");
return;