From: Ondřej Surý Date: Fri, 28 Nov 2025 14:13:58 +0000 (+0100) Subject: Add more information to the rndc recursing output about fetches X-Git-Tag: v9.21.17~45^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23ae5544beb28b42611168d96bfc5ab9c9ef283e;p=thirdparty%2Fbind9.git Add more information to the rndc recursing output about fetches It is possible to have a fetch that is active, but it has been cloned, so it won't be used when found in the hash table. The fetch options also prevent matching in the hash table, so add a hexadecimal dump of the fctx->options to the output. --- diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index 404086b898e..989f892f6ae 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -10766,9 +10766,11 @@ dns_resolver_dumpfetches(dns_resolver_t *res, isc_statsformat_t format, dns_rdatatype_format(fctx->type, typebuf, sizeof(typebuf)); - fprintf(fp, "/%s (%s): started %s, ", typebuf, - fctx->state == fetchstate_active ? "active" : "done", - timebuf); + fprintf(fp, "/%s (%s), 0x%x: started %s, ", typebuf, + fctx->state == fetchstate_done ? "done" + : fctx->cloned ? "cloned" + : "active", + fctx->options, timebuf); ISC_LIST_FOREACH(fctx->resps, resp, link) { resp_count++;