mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Set IPPROTO_IP6 for ipv6 sockets otherwise invalid argument error.
git-svn-id: file:///svn/unbound/trunk@3625 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
9eeb489243
commit
df8ff4f745
2 changed files with 5 additions and 2 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
16 February 2016: Wouter
|
||||||
|
- Set IPPROTO_IP6 for ipv6 sockets otherwise invalid argument error.
|
||||||
|
|
||||||
15 February 2016: Wouter
|
15 February 2016: Wouter
|
||||||
- ip-transparent option for FreeBSD with IP_BINDANY socket option.
|
- ip-transparent option for FreeBSD with IP_BINDANY socket option.
|
||||||
- wait for sendto to drain socket buffers when they are full.
|
- wait for sendto to drain socket buffers when they are full.
|
||||||
|
|
|
||||||
|
|
@ -189,8 +189,8 @@ create_udp_sock(int family, int socktype, struct sockaddr* addr,
|
||||||
}
|
}
|
||||||
#elif defined(IP_BINDANY)
|
#elif defined(IP_BINDANY)
|
||||||
if (transparent &&
|
if (transparent &&
|
||||||
setsockopt(s, IPPROTO_IP, IP_BINDANY, (void*)&on,
|
setsockopt(s, (family==AF_INET6? IPPROTO_IPV6:IPPROTO_IP),
|
||||||
(socklen_t)sizeof(on)) < 0) {
|
IP_BINDANY, (void*)&on, (socklen_t)sizeof(on)) < 0) {
|
||||||
log_warn("setsockopt(.. IP_BINDANY ..) failed: %s",
|
log_warn("setsockopt(.. IP_BINDANY ..) failed: %s",
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue