mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-24 00:29:58 -05:00
ignore transient sendto conditions.
git-svn-id: file:///svn/unbound/trunk@1731 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
b5f7bf86ac
commit
f1bd145b60
2 changed files with 23 additions and 3 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
20 July 2009: Wouter
|
||||||
|
- Ignore transient sendto errors, no route to host, and host, net down.
|
||||||
|
|
||||||
16 July 2009: Wouter
|
16 July 2009: Wouter
|
||||||
- fix replacement malloc code. Used in crosscompile.
|
- fix replacement malloc code. Used in crosscompile.
|
||||||
- makedist -w creates crosscompiled setup.exe on fedora11.
|
- makedist -w creates crosscompiled setup.exe on fedora11.
|
||||||
|
|
|
||||||
|
|
@ -250,9 +250,26 @@ comm_point_send_udp_msg(struct comm_point *c, ldns_buffer* packet,
|
||||||
ldns_buffer_remaining(packet), 0,
|
ldns_buffer_remaining(packet), 0,
|
||||||
addr, addrlen);
|
addr, addrlen);
|
||||||
if(sent == -1) {
|
if(sent == -1) {
|
||||||
#ifdef ENETUNREACH
|
/* do not log transient errors (unless high verbosity) */
|
||||||
if(errno == ENETUNREACH && verbosity < VERB_ALGO)
|
#if defined(ENETUNREACH) || defined(EHOSTDOWN) || defined(EHOSTUNREACH) || defined(ENETDOWN)
|
||||||
return 0;
|
switch(errno) {
|
||||||
|
# ifdef ENETUNREACH
|
||||||
|
case ENETUNREACH:
|
||||||
|
# endif
|
||||||
|
# ifdef EHOSTDOWN
|
||||||
|
case EHOSTDOWN:
|
||||||
|
# endif
|
||||||
|
# ifdef EHOSTUNREACH
|
||||||
|
case EHOSTUNREACH:
|
||||||
|
# endif
|
||||||
|
# ifdef ENETDOWN
|
||||||
|
case ENETDOWN:
|
||||||
|
# endif
|
||||||
|
if(verbosity < VERB_ALGO)
|
||||||
|
return 0;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
/* squelch errors where people deploy AAAA ::ffff:bla for
|
/* squelch errors where people deploy AAAA ::ffff:bla for
|
||||||
* authority servers, which we try for intranets. */
|
* authority servers, which we try for intranets. */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue