mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-09 22:03:15 -05:00
Squelch ipv6 network unreachable from verbosity default (1).
git-svn-id: file:///svn/unbound/trunk@1443 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
7ca106cc8c
commit
37c3bef544
3 changed files with 11 additions and 4 deletions
|
|
@ -1,3 +1,8 @@
|
|||
16 January 2009: Wouter
|
||||
- more quiet about ipv6 network failures, i.e. when ipv6 is not
|
||||
available (network unreachable). Debug still printed on high
|
||||
verbosity.
|
||||
|
||||
15 January 2009: Wouter
|
||||
- bug #229: fixup configure checks for compilation with Solaris
|
||||
Sun cc compiler, ./configure CC=/opt/SUNWspro/bin/cc
|
||||
|
|
|
|||
|
|
@ -1369,9 +1369,7 @@ processQueryTargets(struct module_qstate* qstate, struct iter_qstate* iq,
|
|||
iq->chase_flags | (iq->chase_to_rd?BIT_RD:0), EDNS_DO|BIT_CD,
|
||||
&target->addr, target->addrlen, qstate);
|
||||
if(!outq) {
|
||||
verbose(VERB_OPS, "error sending query to auth server; "
|
||||
"skip this address");
|
||||
log_addr(VERB_OPS, "error for address:",
|
||||
log_addr(VERB_DETAIL, "error sending query to auth server",
|
||||
&target->addr, target->addrlen);
|
||||
return next_state(iq, QUERYTARGETS_STATE);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -239,13 +239,17 @@ comm_point_send_udp_msg(struct comm_point *c, ldns_buffer* packet,
|
|||
log_assert(c->fd != -1);
|
||||
#ifdef UNBOUND_DEBUG
|
||||
if(ldns_buffer_remaining(packet) == 0)
|
||||
log_err("internal error: send empty UDP packet");
|
||||
log_err("error: send empty UDP packet");
|
||||
#endif
|
||||
log_assert(addr && addrlen > 0);
|
||||
sent = sendto(c->fd, ldns_buffer_begin(packet),
|
||||
ldns_buffer_remaining(packet), 0,
|
||||
addr, addrlen);
|
||||
if(sent == -1) {
|
||||
#ifdef ENETUNREACH
|
||||
if(errno == ENETUNREACH && verbosity < VERB_ALGO)
|
||||
return 0;
|
||||
#endif
|
||||
#ifndef USE_WINSOCK
|
||||
verbose(VERB_OPS, "sendto failed: %s", strerror(errno));
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in a new issue