+ - Fix #347: IP_DONTFRAG broken on Apple xcode 12.2.

This commit is contained in:
W.C.A. Wijngaards 2020-11-23 09:56:01 +01:00
parent 097e530c49
commit cca128b871
2 changed files with 4 additions and 1 deletions

View 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,

View 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) {