mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-24 00:49:42 +08:00
mDNSResponder: Do not use SO_RECV_ANYIF socket opt
This socket option is not supported by FreeBSD.
This commit is contained in:
parent
b54bd9546e
commit
446f887000
@ -666,6 +666,7 @@ mDNSlocal int SetupSocket(struct sockaddr *intfAddr, mDNSIPPort port, int interf
|
|||||||
#endif
|
#endif
|
||||||
if (err < 0) { err = errno; perror("setsockopt - SO_REUSExxxx"); }
|
if (err < 0) { err = errno; perror("setsockopt - SO_REUSExxxx"); }
|
||||||
|
|
||||||
|
#ifndef __rtems__
|
||||||
// Enable inbound packets on IFEF_AWDL interface.
|
// Enable inbound packets on IFEF_AWDL interface.
|
||||||
// Only done for multicast sockets, since we don't expect unicast socket operations
|
// 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.
|
// 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 */
|
#define SO_RECV_ANYIF 0x1104 /* unrestricted inbound processing */
|
||||||
#endif
|
#endif
|
||||||
if (setsockopt(*sktPtr, SOL_SOCKET, SO_RECV_ANYIF, &kOn, sizeof(kOn)) < 0) perror("setsockopt - SO_RECV_ANYIF");
|
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.
|
// We want to receive destination addresses and interface identifiers.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user