mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Extend dns_db_allrdatasets to control interation results
Add an options parameter to control what rdatasets are returned when iteratating over the node. Specific modes will be added later.
This commit is contained in:
@@ -3209,7 +3209,7 @@ rpz_find_p(ns_client_t *client, dns_name_t *self_name, dns_rdatatype_t qtype,
|
||||
dns_rdatasetiter_t *rdsiter;
|
||||
|
||||
rdsiter = NULL;
|
||||
result = dns_db_allrdatasets(*dbp, *nodep, *versionp, 0,
|
||||
result = dns_db_allrdatasets(*dbp, *nodep, *versionp, 0, 0,
|
||||
&rdsiter);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
rpz_log_fail(client, DNS_RPZ_ERROR_LEVEL, p_name,
|
||||
@@ -7829,7 +7829,7 @@ query_respond_any(query_ctx_t *qctx) {
|
||||
|
||||
CALL_HOOK(NS_QUERY_RESPOND_ANY_BEGIN, qctx);
|
||||
|
||||
result = dns_db_allrdatasets(qctx->db, qctx->node, qctx->version, 0,
|
||||
result = dns_db_allrdatasets(qctx->db, qctx->node, qctx->version, 0, 0,
|
||||
&rdsiter);
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
CCTRACE(ISC_LOG_ERROR, "query_respond_any: allrdatasets "
|
||||
|
Reference in New Issue
Block a user