diff --git a/doc/Changelog b/doc/Changelog index a4c4792ff..8ac0d50e4 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -4,6 +4,7 @@ - Fix #350: with the AF_NETLINK permission, to fix 1.12.0 error: failed to list interfaces: getifaddrs: Address family not supported by protocol. + - Fix #347: IP_DONTFRAG broken on Apple xcode 12.2. 12 November 2020: Wouter - Fix to connect() to UDP destinations, default turned on, diff --git a/services/listen_dnsport.c b/services/listen_dnsport.c index 10a7aec60..bd87aac56 100644 --- a/services/listen_dnsport.c +++ b/services/listen_dnsport.c @@ -531,7 +531,9 @@ create_udp_sock(int family, int socktype, struct sockaddr* addr, return -1; } } -# elif defined(IP_DONTFRAG) +# elif defined(IP_DONTFRAG) && !defined(__APPLE__) + /* the IP_DONTFRAG option if defined in the 11.0 OSX headers, + * but does not work on that version, so we exclude it */ int off = 0; if (setsockopt(s, IPPROTO_IP, IP_DONTFRAG, &off, (socklen_t)sizeof(off)) < 0) {