2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-22 10:10:06 +00:00

3392. [func] Keep statistics on REFUSED responses. [RT #31412]

This commit is contained in:
Mark Andrews 2012-10-16 10:21:22 +11:00
parent 6829b261a5
commit 71dfdcbfae
4 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,5 @@
3392. [func] Keep statistics on REFUSED responses. [RT #31412]
3391. [bug] A DNSKEY lookup that encountered a CNAME failed.
[RT #31262]

View File

@ -280,6 +280,7 @@ init_desc(void) {
"QryRTT" DNS_RESOLVER_QRYRTTCLASS4STR "+");
SET_RESSTATDESC(nfetch, "active fetches", "NumFetch");
SET_RESSTATDESC(buckets, "bucket size", "BucketSize");
SET_RESSTATDESC(refused, "REFUSED received", "REFUSED");
INSIST(i == dns_resstatscounter_max);
/* Initialize adb statistics */

View File

@ -65,8 +65,9 @@ enum {
dns_resstatscounter_disprequdp = 31,
dns_resstatscounter_dispreqtcp = 32,
dns_resstatscounter_buckets = 33,
dns_resstatscounter_refused = 34,
dns_resstatscounter_max = 34,
dns_resstatscounter_max = 35,
/*
* DNSSEC stats.

View File

@ -6833,6 +6833,9 @@ resquery_response(isc_task_t *task, isc_event_t *event) {
case dns_rcode_formerr:
inc_stats(fctx->res, dns_resstatscounter_formerr);
break;
case dns_rcode_refused:
inc_stats(fctx->res, dns_resstatscounter_refused);
break;
default:
inc_stats(fctx->res, dns_resstatscounter_othererror);
break;