aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-light/src')
-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;