mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
+ - Fix #347: IP_DONTFRAG broken on Apple xcode 12.2.
This commit is contained in:
parent
097e530c49
commit
cca128b871
2 changed files with 4 additions and 1 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
- Fix #350: with the AF_NETLINK permission, to fix 1.12.0 error:
|
- Fix #350: with the AF_NETLINK permission, to fix 1.12.0 error:
|
||||||
failed to list interfaces: getifaddrs: Address family not
|
failed to list interfaces: getifaddrs: Address family not
|
||||||
supported by protocol.
|
supported by protocol.
|
||||||
|
- Fix #347: IP_DONTFRAG broken on Apple xcode 12.2.
|
||||||
|
|
||||||
12 November 2020: Wouter
|
12 November 2020: Wouter
|
||||||
- Fix to connect() to UDP destinations, default turned on,
|
- Fix to connect() to UDP destinations, default turned on,
|
||||||
|
|
|
||||||
|
|
@ -531,7 +531,9 @@ create_udp_sock(int family, int socktype, struct sockaddr* addr,
|
||||||
return -1;
|
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;
|
int off = 0;
|
||||||
if (setsockopt(s, IPPROTO_IP, IP_DONTFRAG,
|
if (setsockopt(s, IPPROTO_IP, IP_DONTFRAG,
|
||||||
&off, (socklen_t)sizeof(off)) < 0) {
|
&off, (socklen_t)sizeof(off)) < 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue