Lines Matching defs:catzs

44 	dns_catz_zones_t	*catzs;
214 result = dns_catz_entry_new(zone->catzs->mctx, &entry->name, &nentry);
218 result = dns_catz_options_copy(zone->catzs->mctx, &entry->opts,
245 mctx = zone->catzs->mctx;
324 dns_catz_options_free(&zone->defoptions, zone->catzs->mctx);
344 addzone = target->catzs->zmm->addzone;
345 modzone = target->catzs->zmm->modzone;
346 delzone = target->catzs->zmm->delzone;
350 dns_catz_options_free(&target->zoneoptions, target->catzs->mctx);
351 dns_catz_options_copy(target->catzs->mctx, &newzone->zoneoptions,
353 dns_catz_options_setdefault(target->catzs->mctx, &target->defoptions,
358 result = isc_ht_init(&toadd, target->catzs->mctx, 16);
362 result = isc_ht_init(&tomod, target->catzs->mctx, 16);
421 dns_catz_options_setdefault(target->catzs->mctx,
472 result = delzone(entry, target, target->catzs->view,
473 target->catzs->taskmgr,
474 target->catzs->zmm->udata);
495 result = addzone(entry, target, target->catzs->view,
496 target->catzs->taskmgr,
497 target->catzs->zmm->udata);
512 result = modzone(entry, target, target->catzs->view,
513 target->catzs->taskmgr,
514 target->catzs->zmm->udata);
598 dns_catz_catzs_set_view(dns_catz_zones_t *catzs, dns_view_t *view) {
599 REQUIRE(catzs != NULL);
602 REQUIRE(catzs->view == NULL || !strcmp(catzs->view->name, view->name));
604 catzs->view = view;
608 dns_catz_new_zone(dns_catz_zones_t *catzs, dns_catz_zone_t **zonep,
616 new_zone = isc_mem_get(catzs->mctx, sizeof(*new_zone));
624 result = dns_name_dup(name, catzs->mctx, &new_zone->name);
628 result = isc_ht_init(&new_zone->entries, catzs->mctx, 4);
633 result = isc_timer_create(catzs->timermgr, isc_timertype_inactive,
634 NULL, NULL, catzs->updater,
644 new_zone->catzs = catzs;
659 dns_name_free(&new_zone->name, catzs->mctx);
661 isc_mem_put(catzs->mctx, new_zone, sizeof(*new_zone));
667 dns_catz_add_zone(dns_catz_zones_t *catzs, const dns_name_t *name,
674 REQUIRE(catzs != NULL);
682 LOCK(&catzs->lock);
684 result = dns_catz_new_zone(catzs, &new_zone, name);
688 result = isc_ht_add(catzs->zones, new_zone->name.ndata,
697 tresult = isc_ht_find(catzs->zones, name->ndata,
706 UNLOCK(&catzs->lock);
712 dns_catz_get_zone(dns_catz_zones_t *catzs, const dns_name_t *name) {
716 result = isc_ht_find(catzs->zones, name->ndata, name->length,
725 dns_catz_catzs_attach(dns_catz_zones_t *catzs, dns_catz_zones_t **catzsp) {
728 isc_refcount_increment(&catzs->refs, NULL);
729 *catzsp = catzs;
773 mctx = zone->catzs->mctx;
779 zone->catzs);
792 zone->catzs = NULL;
799 dns_catz_zones_t *catzs;
807 catzs = *catzsp;
808 REQUIRE(catzs != NULL);
811 isc_refcount_decrement(&catzs->refs, &refs);
814 DESTROYLOCK(&catzs->lock);
815 if (catzs->zones != NULL) {
816 result = isc_ht_iter_create(catzs->zones, &iter);
827 INSIST(isc_ht_count(catzs->zones) == 0);
828 isc_ht_destroy(&catzs->zones);
830 isc_refcount_destroy(&catzs->refs);
831 isc_task_destroy(&catzs->updater);
832 isc_mem_putanddetach(&catzs->mctx, catzs, sizeof(*catzs));
933 result = dns_name_dup(&ptr.ptr, zone->catzs->mctx,
941 result = dns_catz_entry_new(zone->catzs->mctx, &ptr.ptr,
1042 mctx = zone->catzs->mctx;
1241 result = dns_rdata_tostruct(&rdata, &rdata_apl, zone->catzs->mctx);
1244 result = isc_buffer_allocate(zone->catzs->mctx, &aclb, 16);
1313 result = dns_catz_entry_new(zone->catzs->mctx, NULL, &entry);
1390 dns_catz_update_process(dns_catz_zones_t *catzs, dns_catz_zone_t *zone,
1401 REQUIRE(catzs != NULL);
1450 result = isc_buffer_allocate(zone->catzs->mctx, &tbuf,
1451 strlen(zone->catzs->view->name) +
1457 isc_buffer_putstr(tbuf, zone->catzs->view->name);
1531 result = isc_buffer_allocate(zone->catzs->mctx, &buffer,
1637 LOCK(&zone->catzs->lock);
1639 dns_catz_update_from_db(zone->db, zone->catzs);
1646 UNLOCK(&zone->catzs->lock);
1651 dns_catz_zones_t *catzs;
1660 catzs = (dns_catz_zones_t *) fn_arg;
1664 LOCK(&catzs->lock);
1665 result = isc_ht_find(catzs->zones, r.base, r.length, (void **) &zone);
1713 isc_task_send(catzs->updater, &event);
1726 UNLOCK(&catzs->lock);
1732 dns_catz_update_from_db(dns_db_t *db, dns_catz_zones_t *catzs) {
1747 REQUIRE(catzs != NULL);
1753 result = isc_ht_find(catzs->zones, r.base, r.length, (void **)&oldzone);
1782 result = dns_catz_new_zone(catzs, &newzone, &db->origin);
1842 result = dns_catz_update_process(catzs, newzone, name,
1911 oldzone->catzs);
1918 dns_catz_prereconfig(dns_catz_zones_t *catzs) {
1923 REQUIRE(catzs != NULL);
1925 result = isc_ht_iter_create(catzs->zones, &iter);
1939 dns_catz_postreconfig(dns_catz_zones_t *catzs) {
1945 LOCK(&catzs->lock);
1946 result = isc_ht_iter_create(catzs->zones, &iter);
1965 result = dns_catz_new_zone(catzs, &newzone,
1979 UNLOCK(&catzs->lock);