aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/io/udpListener.c
diff options
context:
space:
mode:
authormichele papalini <micpapal@cisco.com>2019-02-22 17:18:52 +0100
committermichele papalini <micpapal@cisco.com>2019-02-22 17:18:52 +0100
commit880795dec24dc966f8196e66b0fa1dd6debd958f (patch)
tree6f5a72e13ee9b51bf931293e5c355920f6461e6e /hicn-light/src/io/udpListener.c
parent7734174f81412b1544243d1d358ee2641dcdb3dd (diff)
[HICN-81] UDP face data dropped due to struct sockaddr inconsistency
Change-Id: I174b2b9beaaee8cab89044a1d9ad3aa686da6ca3 Signed-off-by: michele papalini <micpapal@cisco.com>
Diffstat (limited to 'hicn-light/src/io/udpListener.c')
-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;