]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Squelch 'cannot assign requested address' log messages unless
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 19 Jan 2016 15:37:54 +0000 (15:37 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 19 Jan 2016 15:37:54 +0000 (15:37 +0000)
  verbosity is high, it was spammed after network down.

git-svn-id: file:///svn/unbound/trunk@3602 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
util/netevent.c

index e4a51eabc192cc3d7b026f89c6413b613e6e4bde..b92d37a1a9ef13ae99f6da350b9d9e925d9f57ae 100644 (file)
@@ -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.
index 3bb8948889c58b5b6cb21b9bdc92a94888d5bdf9..614446806d1aa5d49bb452097390151f49abaec1 100644 (file)
@@ -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. */