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
+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.
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);
}