From: Wouter Wijngaards Date: Fri, 5 Oct 2018 06:29:05 +0000 (+0000) Subject: - Squelch EADDRNOTAVAIL errors when the interface goes away, X-Git-Tag: release-1.8.2rc1~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=945452bff41be1f8907c9015cb9a5d01787cc59a;p=thirdparty%2Funbound.git - Squelch EADDRNOTAVAIL errors when the interface goes away, this omits 'can't assign requested address' errors unless verbosity is set to a high value. git-svn-id: file:///svn/unbound/trunk@4931 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 2eb32d5a0..b82e06e21 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,8 @@ +5 October 2018: Wouter + - Squelch EADDRNOTAVAIL errors when the interface goes away, + this omits 'can't assign requested address' errors unless + verbosity is set to a high value. + 2 October 2018: Wouter - updated contrib/fastrpz.patch to apply for this version - dnscrypt.c removed sizeof to get array bounds. diff --git a/services/listen_dnsport.c b/services/listen_dnsport.c index 458bf6f51..a2fb89067 100644 --- a/services/listen_dnsport.c +++ b/services/listen_dnsport.c @@ -565,7 +565,11 @@ create_udp_sock(int family, int socktype, struct sockaddr* addr, if(family==AF_INET6 && errno==EINVAL) *noproto = 1; else if(errno != EADDRINUSE && - !(errno == EACCES && verbosity < 4 && !listen)) { + !(errno == EACCES && verbosity < 4 && !listen) +#ifdef EADDRNOTAVAIL + && !(errno == EADDRNOTAVAIL && verbosity < 4 && !listen) +#endif + ) { log_err_addr("can't bind socket", strerror(errno), (struct sockaddr_storage*)addr, addrlen); }