From: Wouter Wijngaards Date: Tue, 19 Jan 2016 15:37:54 +0000 (+0000) Subject: - Squelch 'cannot assign requested address' log messages unless X-Git-Tag: release-1.5.8~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6484f6b9b874b245ce8db5d3fcd0eaba643d394d;p=thirdparty%2Funbound.git - Squelch 'cannot assign requested address' log messages unless verbosity is high, it was spammed after network down. git-svn-id: file:///svn/unbound/trunk@3602 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index e4a51eabc..b92d37a1a 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,7 @@ +19 January 2016: Wouter + - Squelch 'cannot assign requested address' log messages unless + verbosity is high, it was spammed after network down. + 14 January 2016: Wouter - Fix to simplify empty string checking from Michael McConville. - iana portlist update. diff --git a/util/netevent.c b/util/netevent.c index 3bb894888..614446806 100644 --- a/util/netevent.c +++ b/util/netevent.c @@ -356,7 +356,12 @@ udp_send_errno_needs_log(struct sockaddr* addr, socklen_t addrlen) #endif /* permission denied is gotten for every send if the * network is disconnected (on some OS), squelch it */ - if(errno == EPERM && verbosity < VERB_DETAIL) + if( ((errno == EPERM) +# ifdef EADDRNOTAVAIL + /* 'Cannot assign requested address' also when disconnected */ + || (errno == EADDRNOTAVAIL) +# endif + ) && verbosity < VERB_DETAIL) return 0; /* squelch errors where people deploy AAAA ::ffff:bla for * authority servers, which we try for intranets. */