Lines Matching defs:entry
203 dns_catz_entry_getname(dns_catz_entry_t *entry) {
204 return (&entry->name);
208 dns_catz_entry_copy(dns_catz_zone_t *zone, const dns_catz_entry_t *entry,
214 result = dns_catz_entry_new(zone->catzs->mctx, &entry->name, &nentry);
218 result = dns_catz_options_copy(zone->catzs->mctx, &entry->opts,
228 dns_catz_entry_attach(dns_catz_entry_t *entry, dns_catz_entry_t **entryp) {
230 isc_refcount_increment(&entry->refs, NULL);
231 *entryp = entry;
236 dns_catz_entry_t *entry;
242 entry = *entryp;
247 isc_refcount_decrement(&entry->refs, &refs);
249 dns_catz_options_free(&entry->opts, mctx);
250 if (dns_name_dynamic(&entry->name))
251 dns_name_free(&entry->name, mctx);
252 isc_refcount_destroy(&entry->refs);
253 isc_mem_put(mctx, entry, sizeof(dns_catz_entry_t));
258 dns_catz_entry_validate(const dns_catz_entry_t *entry) {
259 UNUSED(entry);
468 dns_catz_entry_t *entry;
469 isc_ht_iter_current(iter2, (void **) &entry);
471 dns_name_format(&entry->name, zname, DNS_NAME_FORMATSIZE);
472 result = delzone(entry, target, target->catzs->view,
479 dns_catz_entry_detach(target, &entry);
491 dns_catz_entry_t *entry;
492 isc_ht_iter_current(iteradd, (void **) &entry);
494 dns_name_format(&entry->name, zname, DNS_NAME_FORMATSIZE);
495 result = addzone(entry, target, target->catzs->view,
510 dns_catz_entry_t *entry;
511 isc_ht_iter_current(itermod, (void **) &entry);
512 result = modzone(entry, target, target->catzs->view,
761 dns_catz_entry_t *entry;
763 isc_ht_iter_current(iter, (void **) &entry);
764 dns_catz_entry_detach(zone, &entry);
906 dns_catz_entry_t *entry = NULL;
926 mhash->length, (void **) &entry);
928 if (dns_name_countlabels(&entry->name) != 0) {
934 &entry->name);
942 &entry);
949 mhash->length, entry);
952 dns_catz_entry_detach(zone, &entry);
1234 "catz: more than one APL entry for member zone, "
1292 dns_catz_entry_t *entry = NULL;
1307 * We're adding this entry now, in case the option is invalid we'll get
1311 (void **) &entry);
1313 result = dns_catz_entry_new(zone->catzs->mctx, NULL, &entry);
1317 entry);
1319 dns_catz_entry_detach(zone, &entry);
1328 return (catz_process_masters(zone, &entry->opts.masters, value,
1333 return (catz_process_apl(zone, &entry->opts.allow_query,
1338 return (catz_process_apl(zone, &entry->opts.allow_transfer,
1437 dns_catz_generate_masterfilename(dns_catz_zone_t *zone, dns_catz_entry_t *entry,
1447 REQUIRE(entry != NULL);
1464 result = dns_name_totext(&entry->name, ISC_TRUE, tbuf);
1472 if (entry->opts.zonedir != NULL)
1473 rlen += strlen(entry->opts.zonedir) + 1;
1479 if (entry->opts.zonedir != NULL) {
1480 isc_buffer_putstr(*buffer, entry->opts.zonedir);
1505 dns_catz_generate_zonecfg(dns_catz_zone_t *zone, dns_catz_entry_t *entry,
1524 REQUIRE(entry != NULL);
1539 dns_name_totext(&entry->name, ISC_TRUE, buffer);
1547 if (entry->opts.masters.count > 0 &&
1548 entry->opts.masters.dscps[0] != -1) {
1551 entry->opts.masters.dscps[0]);
1556 for (i = 0; i < entry->opts.masters.count; i++) {
1560 switch (entry->opts.masters.addrs[i].type.sa.sa_family) {
1565 dns_name_format(&entry->name, zname,
1576 &entry->opts.masters.addrs[i]);
1583 isc_sockaddr_getport(&entry->opts.masters.addrs[i]));
1586 if (entry->opts.masters.keys[i] != NULL) {
1588 result = dns_name_totext(entry->opts.masters.keys[i],
1596 if (entry->opts.in_memory == ISC_FALSE) {
1598 result = dns_catz_generate_masterfilename(zone, entry, &buffer);
1604 if (entry->opts.allow_query != NULL) {
1606 isc_buffer_usedregion(entry->opts.allow_query, ®ion);
1610 if (entry->opts.allow_transfer != NULL) {
1612 isc_buffer_usedregion(entry->opts.allow_transfer, ®ion);