mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix #454: listen_dnsport.c:825: error: ‘IPV6_TCLASS’ undeclared.
This commit is contained in:
parent
7c0cb7198b
commit
3dbda3aac3
2 changed files with 7 additions and 1 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
- Merge PR #562 from Willem: Reset keepalive per new tcp session.
|
- Merge PR #562 from Willem: Reset keepalive per new tcp session.
|
||||||
- Merge PR #522 from sibeream: memory management violations fixed.
|
- Merge PR #522 from sibeream: memory management violations fixed.
|
||||||
- Merge PR #530 from Shchelk: Fix: dereferencing a null pointer.
|
- Merge PR #530 from Shchelk: Fix: dereferencing a null pointer.
|
||||||
|
- Fix #454: listen_dnsport.c:825: error: ‘IPV6_TCLASS’ undeclared.
|
||||||
|
|
||||||
30 November 2021: Wouter
|
30 November 2021: Wouter
|
||||||
- Fix to remove git tracking and ci information from release tarballs.
|
- Fix to remove git tracking and ci information from release tarballs.
|
||||||
|
|
|
||||||
|
|
@ -869,9 +869,14 @@ set_ip_dscp(int socket, int addrfamily, int dscp)
|
||||||
ds = dscp << 2;
|
ds = dscp << 2;
|
||||||
switch(addrfamily) {
|
switch(addrfamily) {
|
||||||
case AF_INET6:
|
case AF_INET6:
|
||||||
if(setsockopt(socket, IPPROTO_IPV6, IPV6_TCLASS, (void*)&ds, sizeof(ds)) < 0)
|
#ifdef IPV6_TCLASS
|
||||||
|
if(setsockopt(socket, IPPROTO_IPV6, IPV6_TCLASS, (void*)&ds,
|
||||||
|
sizeof(ds)) < 0)
|
||||||
return sock_strerror(errno);
|
return sock_strerror(errno);
|
||||||
break;
|
break;
|
||||||
|
#else
|
||||||
|
return "IPV6_TCLASS not defined on this system";
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
if(setsockopt(socket, IPPROTO_IP, IP_TOS, (void*)&ds, sizeof(ds)) < 0)
|
if(setsockopt(socket, IPPROTO_IP, IP_TOS, (void*)&ds, sizeof(ds)) < 0)
|
||||||
return sock_strerror(errno);
|
return sock_strerror(errno);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue