Lines Matching defs:opts
35 dns_catz_options_t opts;
153 dns_catz_options_t *opts)
155 if (opts->masters.count == 0 && defaults->masters.count != 0)
156 dns_ipkeylist_copy(mctx, &defaults->masters, &opts->masters);
159 opts->zonedir = isc_mem_strdup(mctx, defaults->zonedir);
161 if (opts->allow_query == NULL && defaults->allow_query != NULL)
162 isc_buffer_dup(mctx, &opts->allow_query, defaults->allow_query);
163 if (opts->allow_transfer == NULL && defaults->allow_transfer != NULL)
164 isc_buffer_dup(mctx, &opts->allow_transfer,
168 opts->in_memory = defaults->in_memory;
192 dns_catz_options_init(&nentry->opts);
218 result = dns_catz_options_copy(zone->catzs->mctx, &entry->opts,
219 &nentry->opts);
249 dns_catz_options_free(&entry->opts, mctx);
271 if (ea->opts.masters.count != eb->opts.masters.count)
274 if (memcmp(ea->opts.masters.addrs, eb->opts.masters.addrs,
275 ea->opts.masters.count * sizeof(isc_sockaddr_t)))
279 if ((ea->opts.allow_query == NULL) != (eb->opts.allow_query == NULL))
283 if (ea->opts.allow_query != NULL) {
284 isc_buffer_usedregion(ea->opts.allow_query, &ra);
285 isc_buffer_usedregion(eb->opts.allow_query, &rb);
291 if ((ea->opts.allow_transfer == NULL) !=
292 (eb->opts.allow_transfer == NULL))
295 if (ea->opts.allow_transfer != NULL) {
296 isc_buffer_usedregion(ea->opts.allow_transfer, &ra);
297 isc_buffer_usedregion(eb->opts.allow_transfer, &rb);
423 &nentry->opts);
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,
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);
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) {
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) {
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);