[rtems-libbsd commit] mDNSResponder: Do not use SO_RECV_ANYIF socket opt
Sebastian Huber
sebh at rtems.org
Tue Oct 2 05:13:12 UTC 2018
Module: rtems-libbsd
Branch: master
Commit: 446f887000604e194e0ce06be5a46ed3110cc030
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=446f887000604e194e0ce06be5a46ed3110cc030
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Oct 2 07:07:05 2018 +0200
mDNSResponder: Do not use SO_RECV_ANYIF socket opt
This socket option is not supported by FreeBSD.
---
mDNSResponder/mDNSPosix/mDNSPosix.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mDNSResponder/mDNSPosix/mDNSPosix.c b/mDNSResponder/mDNSPosix/mDNSPosix.c
index fb9718a..701374b 100755
--- a/mDNSResponder/mDNSPosix/mDNSPosix.c
+++ b/mDNSResponder/mDNSPosix/mDNSPosix.c
@@ -666,6 +666,7 @@ mDNSlocal int SetupSocket(struct sockaddr *intfAddr, mDNSIPPort port, int interf
#endif
if (err < 0) { err = errno; perror("setsockopt - SO_REUSExxxx"); }
+#ifndef __rtems__
// Enable inbound packets on IFEF_AWDL interface.
// Only done for multicast sockets, since we don't expect unicast socket operations
// on the IFEF_AWDL interface. Operation is a no-op for other interface types.
@@ -673,6 +674,7 @@ mDNSlocal int SetupSocket(struct sockaddr *intfAddr, mDNSIPPort port, int interf
#define SO_RECV_ANYIF 0x1104 /* unrestricted inbound processing */
#endif
if (setsockopt(*sktPtr, SOL_SOCKET, SO_RECV_ANYIF, &kOn, sizeof(kOn)) < 0) perror("setsockopt - SO_RECV_ANYIF");
+#endif /* __rtems__ */
}
// We want to receive destination addresses and interface identifiers.
More information about the vc
mailing list