Code Review
/
hicn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
7734174
)
[HICN-81] UDP face data dropped due to struct sockaddr inconsistency
88/17788/1
author
michele papalini
<micpapal@cisco.com>
Fri, 22 Feb 2019 16:18:52 +0000
(17:18 +0100)
committer
michele papalini
<micpapal@cisco.com>
Fri, 22 Feb 2019 16:18:52 +0000
(17:18 +0100)
Change-Id: I174b2b9beaaee8cab89044a1d9ad3aa686da6ca3
Signed-off-by: michele papalini <micpapal@cisco.com>
hicn-light/src/io/udpListener.c
patch
|
blob
|
history
diff --git
a/hicn-light/src/io/udpListener.c
b/hicn-light/src/io/udpListener.c
index
6cdb928
..
c49571d
100644
(file)
--- 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;