]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Squelch EADDRNOTAVAIL errors when the interface goes away,
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 5 Oct 2018 06:29:05 +0000 (06:29 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 5 Oct 2018 06:29:05 +0000 (06:29 +0000)
  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

doc/Changelog
services/listen_dnsport.c

index 2eb32d5a0e78f871011242e33799faa26ce9824c..b82e06e2145e8000506db1e14ef07785fe39274a 100644 (file)
@@ -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.
index 458bf6f513f20a5fac14293fe00c5ecda18e9ad0..a2fb8906702e3f64b2afc5e1b0e47d86b7c5387f 100644 (file)
@@ -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);
                }