Lines Matching defs:ver
340 * Update a single RR in version 'ver' of 'db' and log the
348 do_one_tuple(dns_difftuple_t **tuple, dns_db_t *db, dns_dbversion_t *ver,
363 result = dns_diff_apply(&temp_diff, db, ver);
382 * Perform the updates in 'updates' in version 'ver' of 'db' and log the
389 do_diff(dns_diff_t *updates, dns_db_t *db, dns_dbversion_t *ver,
396 CHECK(do_one_tuple(&t, db, ver, diff));
406 update_one_rr(dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff,
416 return (do_one_tuple(&tuple, db, ver, diff));
482 * For each rdataset of 'name' in 'ver' of 'db', call 'action'
489 foreach_rrset(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name,
504 result = dns_db_allrdatasets(db, node, ver,
537 * For each RR of 'name' in 'ver' of 'db', call 'action'
545 foreach_node_rr(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name,
551 return (foreach_rrset(db, ver, name,
557 * For each of the RRs specified by 'db', 'ver', 'name', 'type',
566 foreach_rr(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name,
576 return (foreach_node_rr(db, ver, name,
591 result = dns_db_findrdataset(db, node, ver, type, covers,
669 rrset_exists(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name,
674 result = foreach_rr(db, ver, name, type, covers,
685 rrset_visible(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name,
692 result = dns_db_find(db, name, ver, type, DNS_DBFIND_NOWILD,
739 cname_incompatible_rrset_exists(dns_db_t *db, dns_dbversion_t *ver,
742 result = foreach_rrset(db, ver, name,
759 * Count the number of RRs of 'type' belonging to 'name' in 'ver' of 'db'.
762 rr_count(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name,
766 return (foreach_rr(db, ver, name, type, covers,
785 name_exists(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name,
789 result = foreach_rrset(db, ver, name,
832 ssu_checkall(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name,
843 result = foreach_rrset(db, ver, name, ssu_checkrule, &ssuinfo);
935 dns_dbversion_t *ver, dns_name_t *tmpname, dns_rdatatype_t *typep)
993 result = dns_db_findrdataset(db, node, ver, type,
1082 dns_dbversion_t *ver;
1230 result = update_one_rr(ctx->db, ctx->ver, ctx->diff,
1241 * specified by 'db', 'ver', 'name', and 'type' (which can
1247 delete_if(rr_predicate *predicate, dns_db_t *db, dns_dbversion_t *ver,
1254 ctx.ver = ver;
1258 return (foreach_rr(db, ver, name, type, covers,
1274 dns_dbversion_t *ver;
1369 * Increment the SOA serial number of database 'db', version 'ver'.
1381 increment_soa_serial(dns_db_t *db, dns_dbversion_t *ver,
1389 CHECK(dns_db_createsoatuple(db, ver, mctx, DNS_DIFFOP_DEL, &deltuple));
1401 CHECK(do_one_tuple(&deltuple, db, ver, diff));
1402 CHECK(do_one_tuple(&addtuple, db, ver, diff));
1434 check_soa_increment(dns_db_t *db, dns_dbversion_t *ver,
1443 result = dns_db_getsoaserial(db, ver, &db_serial);
1537 non_nsec_rrset_exists(dns_db_t *db, dns_dbversion_t *ver,
1541 result = foreach_rrset(db, ver, name, is_non_nsec_action, NULL);
1580 is_active(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name,
1586 result = dns_db_find(db, name, ver, dns_rdatatype_any,
1605 if (dns_db_find(db, name, ver, dns_rdatatype_ds, 0,
1641 dns_dbversion_t *ver, dns_name_t *oldname, dns_name_t *newname,
1687 CHECK(rrset_exists(db, ver, newname,
1694 result = dns_db_find(db, newname, ver,
1752 dns_dbversion_t *ver, dns_name_t *name, dns_ttl_t nsecttl,
1769 CHECK(next_active(client, zone, db, ver, name, target, ISC_TRUE));
1776 CHECK(dns_nsec_buildrdata(db, ver, node, target, buffer, &rdata));
1781 has_opt_bit(db, ver, node))
1800 CHECK(delete_if(true_p, db, ver, name, dns_rdatatype_nsec, 0,
1807 CHECK(do_one_tuple(&tuple, db, ver, diff));
1820 add_placeholder_nsec(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name,
1834 CHECK(do_one_tuple(&tuple, db, ver, diff));
1840 find_zone_keys(dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver,
1848 CHECK(dns_dnssec_findzonekeys2(db, ver, node, dns_db_origin(db),
1857 ksk_sanity(dns_db_t *db, dns_dbversion_t *ver) {
1868 CHECK(dns_db_findrdataset(db, node, ver, dns_rdatatype_dnskey, 0, 0,
1899 dns_dbversion_t *ver, dns_name_t *name, dns_rdatatype_t type,
1922 CHECK(dns_db_findrdataset(db, node, ver, type, 0,
1942 CHECK(update_one_rr(db, ver, diff, DNS_DIFFOP_ADDRESIGN, name,
1968 del_keysigs(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name,
1986 result = dns_db_findrdataset(db, node, ver, dns_rdatatype_rrsig,
2014 result = update_one_rr(db, ver, diff,
2024 result = update_one_rr(db, ver, diff, DNS_DIFFOP_DEL,
2041 dns_dbversion_t *ver, dns_name_t *name, isc_boolean_t cut,
2058 result = dns_db_allrdatasets(db, node, ver,
2083 result = rrset_exists(db, ver, name, dns_rdatatype_rrsig,
2089 result = add_sigs(client, zone, db, ver, name, type, diff,
2917 rr_exists(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name,
2929 result = dns_db_findrdataset(db, node, ver, rdata->type, 0,
2960 get_iterations(dns_db_t *db, dns_dbversion_t *ver, unsigned int *iterationsp) {
2972 result = dns_db_findrdataset(db, node, ver, dns_rdatatype_nsec3param,
3010 dns_dbversion_t *ver, dns_diff_t *diff)
3021 CHECK(dns_nsec_nseconly(db, ver, &flag));
3024 CHECK(dns_nsec3_active(db, ver, ISC_FALSE, &flag));
3029 CHECK(get_iterations(db, ver, &iterations));
3030 CHECK(dns_nsec3_maxiterations(db, ver, client->mctx, &max));
3051 CHECK(do_one_tuple(&newtuple, db, ver, &temp_diff));
3074 dns_name_t *name, dns_dbversion_t *ver, dns_diff_t *diff)
3128 CHECK(do_one_tuple(&newtuple, db, ver, diff));
3146 CHECK(rr_exists(db, ver, name, &rdata, &flag));
3154 CHECK(do_one_tuple(&newtuple, db, ver, diff));
3163 CHECK(rr_exists(db, ver, name, &rdata, &flag));
3171 CHECK(do_one_tuple(&newtuple, db, ver, diff));
3180 CHECK(do_one_tuple(&newtuple, db, ver, diff));
3201 CHECK(do_one_tuple(&newtuple, db, ver, diff));
3222 CHECK(rr_exists(db, ver, name, &rdata, &flag));
3228 CHECK(do_one_tuple(&newtuple, db, ver, diff));
3233 CHECK(do_one_tuple(&newtuple, db, ver, diff));
3251 add_signing_records(dns_db_t *db, dns_name_t *name, dns_dbversion_t *ver,
3357 CHECK(rr_exists(db, ver, name, &rdata, &flag));
3362 CHECK(do_one_tuple(&newtuple, db, ver, diff));
3369 CHECK(rr_exists(db, ver, name, &rdata, &flag));
3373 CHECK(do_one_tuple(&newtuple, db, ver, diff));
3389 delete_chains(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *origin,
3411 result = dns_db_findrdataset(db, node, ver, dns_rdatatype_nsec3param,
3432 CHECK(do_one_tuple(&tuple, db, ver, diff));
3438 CHECK(rr_exists(db, ver, origin, &rdata, &flag));
3443 CHECK(do_one_tuple(&tuple, db, ver, diff));
3470 dns_dbversion_t *ver = NULL;
3503 CHECK(dns_db_newversion(db, &ver));
3536 CHECK(name_exists(db, ver, name, &flag));
3544 CHECK(rrset_exists(db, ver, name,
3559 CHECK(name_exists(db, ver, name, &flag));
3567 CHECK(rrset_exists(db, ver, name,
3613 result = temp_check(mctx, &temp, db, ver, tmpname, &type);
3732 if (!ssu_checkall(db, ver, name, ssutable,
3792 CHECK(cname_incompatible_rrset_exists(db, ver,
3804 CHECK(rrset_exists(db, ver, name,
3819 CHECK(rrset_exists(db, ver, name,
3829 CHECK(check_soa_increment(db, ver, &rdata,
3904 ctx.ver = ver;
3912 CHECK(foreach_rr(db, ver, name, rdata.type,
3920 CHECK(do_diff(&ctx.del_diff, db, ver,
3922 CHECK(do_diff(&ctx.add_diff, db, ver,
3924 CHECK(update_one_rr(db, ver, &diff,
3944 db, ver, name,
3949 db, ver, name,
3983 CHECK(delete_if(true_p, db, ver, name,
4002 CHECK(rr_count(db, ver, name,
4018 CHECK(delete_if(rr_equal_p, db, ver, name,
4031 CHECK(check_dnssec(client, zone, db, ver, &diff));
4048 CHECK(increment_soa_serial(db, ver, &diff, mctx));
4051 CHECK(check_mx(client, zone, db, ver, &diff));
4053 CHECK(remove_orphaned_ds(db, ver, &diff));
4055 CHECK(rrset_exists(db, ver, zonename, dns_rdatatype_dnskey,
4081 CHECK(add_signing_records(db, zonename, ver,
4087 ver, &diff));
4098 CHECK(delete_chains(db, ver, zonename, &diff));
4104 ver, &diff, interval,
4143 dns_db_closeversion(db, &ver, ISC_TRUE);
4221 dns_db_closeversion(db, &ver, ISC_TRUE);
4230 if (ver != NULL) {
4233 dns_db_closeversion(db, &ver, ISC_FALSE);