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

use a qp-trie for the keytable

Instead of an RBT for the trust anchor tables, use a QP-trie.
This commit is contained in:
Evan Hunt
2023-04-15 14:49:45 -07:00
committed by Ondřej Surý
parent dea79e7053
commit b466439437
12 changed files with 267 additions and 402 deletions

View File

@@ -214,28 +214,18 @@ createview(isc_mem_t *mctx, dns_rdataclass_t rdclass, isc_loopmgr_t *loopmgr,
dns_view_setdispatchmgr(view, dispatchmgr);
/* Initialize view security roots */
result = dns_view_initsecroots(view, mctx);
if (result != ISC_R_SUCCESS) {
goto cleanup_view;
}
dns_view_initsecroots(view);
result = dns_view_createresolver(view, loopmgr, 1, nm, 0,
tlsctx_client_cache, dispatchv4,
dispatchv6);
if (result != ISC_R_SUCCESS) {
goto cleanup_view;
}
result = dns_db_create(mctx, "rbt", dns_rootname, dns_dbtype_cache,
rdclass, 0, NULL, &view->cachedb);
if (result != ISC_R_SUCCESS) {
goto cleanup_view;
}
CHECK(dns_view_createresolver(view, loopmgr, 1, nm, 0,
tlsctx_client_cache, dispatchv4,
dispatchv6));
CHECK(dns_db_create(mctx, "rbt", dns_rootname, dns_dbtype_cache,
rdclass, 0, NULL, &view->cachedb));
*viewp = view;
return (ISC_R_SUCCESS);
cleanup_view:
cleanup:
dns_view_detach(&view);
return (result);
}