mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +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:
@@ -1009,7 +1009,8 @@ find(dns_db_t *db, const dns_name_t *name, dns_dbversion_t *version,
|
||||
|
||||
static isc_result_t
|
||||
allrdatasets(dns_db_t *db, dns_dbnode_t *node, dns_dbversion_t *version,
|
||||
isc_stdtime_t now, dns_rdatasetiter_t **iteratorp) {
|
||||
unsigned int options, isc_stdtime_t now,
|
||||
dns_rdatasetiter_t **iteratorp) {
|
||||
dns_sdlz_db_t *sdlz = (dns_sdlz_db_t *)db;
|
||||
sdlz_rdatasetiter_t *iterator;
|
||||
|
||||
@@ -1029,6 +1030,7 @@ allrdatasets(dns_db_t *db, dns_dbnode_t *node, dns_dbversion_t *version,
|
||||
iterator->common.node = NULL;
|
||||
attachnode(db, node, &iterator->common.node);
|
||||
iterator->common.version = version;
|
||||
iterator->common.options = options;
|
||||
iterator->common.now = now;
|
||||
|
||||
*iteratorp = (dns_rdatasetiter_t *)iterator;
|
||||
|
Reference in New Issue
Block a user