]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
+ - Fix #347: IP_DONTFRAG broken on Apple xcode 12.2.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 23 Nov 2020 08:56:01 +0000 (09:56 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 23 Nov 2020 08:56:01 +0000 (09:56 +0100)
doc/Changelog
services/listen_dnsport.c

index a4c4792ffc0371c492070bcf8514805cd60cc1c3..8ac0d50e427fa6d4bb1b77fa16acc54b0e9dff92 100644 (file)
@@ -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,
index 10a7aec60df2612f0cbb6a70e9b27c264c317133..bd87aac56fa7b880b5d2f954769631400bce80a0 100644 (file)
@@ -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) {