config.c revision b4914b3d69de3eb57bcf1d6cb3bb8e0b645c1081
4a979d35776321abc952346ba128d1a3cef730ceAutomatic Updater * Copyright (C) 2004-2013 Internet Systems Consortium, Inc. ("ISC")
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * Copyright (C) 2001-2003 Internet Software Consortium.
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater * Permission to use, copy, modify, and/or distribute this software for any
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * purpose with or without fee is hereby granted, provided that the above
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * copyright notice and this permission notice appear in all copies.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * PERFORMANCE OF THIS SOFTWARE.
ece6c39dd823d92cf89e7e37614bd458d5d42658Mark Andrews/* $Id: config.c,v 1.123 2012/01/06 23:46:41 tbox Exp $ */
e35c1bb3ecd9a6597360b9160b397c8053af69bfDanny Mayer/*% default configuration */
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley# blackhole {none;};\n"
27809a2ee5db141b684e53bf1d94da26e9f92d3aMark Andrews" coresize default;\n\
27809a2ee5db141b684e53bf1d94da26e9f92d3aMark Andrews datasize default;\n\
ea872078bfa9473cfe9c89b474dae2496377797bDavid Lawrence files unlimited;\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley stacksize default;\n"
e76d4c91bfadf823f04dcca1c1c5bcc14c67671dAndreas Gustafsson"# session-keyfile \"" NS_LOCALSTATEDIR "/run/named/session.key\";\n\
e76d4c91bfadf823f04dcca1c1c5bcc14c67671dAndreas Gustafsson session-keyname local-ddns;\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley session-keyalg hmac-sha256;\n\
e35c1bb3ecd9a6597360b9160b397c8053af69bfDanny Mayer deallocate-on-exit true;\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley# directory <none>\n\
e72c1e7e465822fc9b5067b2dd3cf047f6132214Mark Andrews dump-file \"named_dump.db\";\n\
e72c1e7e465822fc9b5067b2dd3cf047f6132214Mark Andrews fake-iquery no;\n\
e72c1e7e465822fc9b5067b2dd3cf047f6132214Mark Andrews has-old-clients false;\n\
11d732daac76a24a0f3e5948a2758a4b866a0825David Lawrence heartbeat-interval 60;\n\
e72c1e7e465822fc9b5067b2dd3cf047f6132214Mark Andrews host-statistics no;\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley interface-interval 60;\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley listen-on {any;};\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley listen-on-v6 {any;};\n\
6c6ceac1bc66812f6e0097dcf5fd8b901c3fecd1Andreas Gustafsson match-mapped-addresses no;\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley max-rsa-exponent-size 0; /* no limit */\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley memstatistics-file \"named.memstats\";\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley multiple-cnames no;\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley# named-xfer <obsolete>;\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley# pid-file \"" NS_LOCALSTATEDIR "/run/named/named.pid\"; /* or /lwresd.pid */\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley bindkeys-file \"" NS_SYSCONFDIR "/bind.keys\";\n\
8343d55b3d97923fa444ea9b92aae2ec60ffd40fMark Andrews recursing-file \"named.recursing\";\n\
8343d55b3d97923fa444ea9b92aae2ec60ffd40fMark Andrews secroots-file \"named.secroots\";\n\
8343d55b3d97923fa444ea9b92aae2ec60ffd40fMark Andrews recursive-clients 1000;\n\
e2c97aef510f4cdced2894ab2a5daf2b1d316e2aAutomatic Updater resolver-query-timeout 10;\n\
8343d55b3d97923fa444ea9b92aae2ec60ffd40fMark Andrews rrset-order { order random; };\n\
8343d55b3d97923fa444ea9b92aae2ec60ffd40fMark Andrews serial-queries 20;\n\
8343d55b3d97923fa444ea9b92aae2ec60ffd40fMark Andrews serial-query-rate 20;\n\
8343d55b3d97923fa444ea9b92aae2ec60ffd40fMark Andrews server-id none;\n\
ed9ca2306508e3106e3d111d7cf39bf82f8689d0Mark Andrews statistics-file \"named.stats\";\n\
8343d55b3d97923fa444ea9b92aae2ec60ffd40fMark Andrews statistics-interval 60;\n\
8343d55b3d97923fa444ea9b92aae2ec60ffd40fMark Andrews tcp-clients 100;\n\
8343d55b3d97923fa444ea9b92aae2ec60ffd40fMark Andrews tcp-listen-queue 3;\n\
8343d55b3d97923fa444ea9b92aae2ec60ffd40fMark Andrews# tkey-dhkey <none>\n\
8343d55b3d97923fa444ea9b92aae2ec60ffd40fMark Andrews# tkey-gssapi-credential <none>\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley# tkey-domain <none>\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence transfers-per-ns 2;\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley transfers-in 10;\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley transfers-out 10;\n\
355cc22e32085faeb553fe6c37de69e83b9d5191Andreas Gustafsson treat-cr-as-space true;\n\
355cc22e32085faeb553fe6c37de69e83b9d5191Andreas Gustafsson use-id-pool true;\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley use-ixfr true;\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley edns-udp-size 4096;\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley max-udp-size 4096;\n\
6c6ceac1bc66812f6e0097dcf5fd8b901c3fecd1Andreas Gustafsson request-nsid false;\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley reserved-sockets 512;\n\
355cc22e32085faeb553fe6c37de69e83b9d5191Andreas Gustafsson dnssec-lookaside . trust-anchor dlv.isc.org;\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley /* view */\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley allow-notify {none;};\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley allow-update-forwarding {none;};\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley allow-query-cache { localnets; localhost; };\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence allow-query-cache-on { any; };\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence allow-recursion { localnets; localhost; };\n\
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley allow-recursion-on { any; };\n\
9fbefe0ace2ae7dba287f914b278153004bef428Bob Halley# allow-v6-synthesis <obsolete>;\n\
b592e197fe354d7258dc4166fce0a9425a338b0bBob Halley# sortlist <none>\n\
9fbefe0ace2ae7dba287f914b278153004bef428Bob Halley# topology <none>\n\
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley auth-nxdomain false;\n\
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley minimal-responses false;\n\
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley recursion true;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence provide-ixfr true;\n\
6c6ceac1bc66812f6e0097dcf5fd8b901c3fecd1Andreas Gustafsson request-ixfr true;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence fetch-glue no;\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley rfc2308-type1 no;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence additional-from-auth true;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence additional-from-cache true;\n\
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence query-source address *;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence query-source-v6 address *;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence notify-source *;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence notify-source-v6 *;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence cleaning-interval 0; /* now meaningless */\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence min-roots 2;\n\
e35c1bb3ecd9a6597360b9160b397c8053af69bfDanny Mayer lame-ttl 600;\n\
6fa1cb5754695d550a58c6e8978fda65f5146af7David Lawrence max-ncache-ttl 10800; /* 3 hours */\n\
6fa1cb5754695d550a58c6e8978fda65f5146af7David Lawrence max-cache-ttl 604800; /* 1 week */\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence transfer-format many-answers;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence max-cache-size 0;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence check-names master fail;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence check-names slave warn;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence check-names response ignore;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence check-dup-records warn;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence check-mx warn;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence acache-enable no;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence acache-cleaning-interval 60;\n\
6c6ceac1bc66812f6e0097dcf5fd8b901c3fecd1Andreas Gustafsson max-acache-size 16M;\n\
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley dnssec-enable yes;\n\
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley dnssec-validation yes; \n\
b592e197fe354d7258dc4166fce0a9425a338b0bBob Halley dnssec-accept-expired no;\n\
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley clients-per-query 10;\n\
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley max-clients-per-query 100;\n\
6fa1cb5754695d550a58c6e8978fda65f5146af7David Lawrence zero-no-soa-ttl-cache no;\n\
6c6ceac1bc66812f6e0097dcf5fd8b901c3fecd1Andreas Gustafsson nsec3-test-zone no;\n\
6c6ceac1bc66812f6e0097dcf5fd8b901c3fecd1Andreas Gustafsson allow-new-zones no;\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley" filter-aaaa-on-v4 no;\n\
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley filter-aaaa-on-v6 no;\n\
b592e197fe354d7258dc4166fce0a9425a338b0bBob Halley filter-aaaa { any; };\n\
6fa1cb5754695d550a58c6e8978fda65f5146af7David Lawrence" /* zone */\n\
6fa1cb5754695d550a58c6e8978fda65f5146af7David Lawrence allow-query {any;};\n\
585529aaeb95a71cd3d95df2602a4688fc7c3292David Lawrence allow-query-on {any;};\n\
585529aaeb95a71cd3d95df2602a4688fc7c3292David Lawrence allow-transfer {any;};\n\
585529aaeb95a71cd3d95df2602a4688fc7c3292David Lawrence notify yes;\n\
585529aaeb95a71cd3d95df2602a4688fc7c3292David Lawrence# also-notify <none>\n\
6fa1cb5754695d550a58c6e8978fda65f5146af7David Lawrence notify-delay 5;\n\
6fa1cb5754695d550a58c6e8978fda65f5146af7David Lawrence notify-to-soa no;\n\
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley dialup no;\n\
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley# forward <none>\n\
6fa1cb5754695d550a58c6e8978fda65f5146af7David Lawrence# forwarders <none>\n\
6c6ceac1bc66812f6e0097dcf5fd8b901c3fecd1Andreas Gustafsson maintain-ixfr-base no;\n\
6c6ceac1bc66812f6e0097dcf5fd8b901c3fecd1Andreas Gustafsson# max-ixfr-log-size <obsolete>\n\
585529aaeb95a71cd3d95df2602a4688fc7c3292David Lawrence transfer-source *;\n\
b592e197fe354d7258dc4166fce0a9425a338b0bBob Halley transfer-source-v6 *;\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley alt-transfer-source *;\n\
b592e197fe354d7258dc4166fce0a9425a338b0bBob Halley alt-transfer-source-v6 *;\n\
b592e197fe354d7258dc4166fce0a9425a338b0bBob Halley max-transfer-time-in 120;\n\
b592e197fe354d7258dc4166fce0a9425a338b0bBob Halley max-transfer-time-out 120;\n\
b592e197fe354d7258dc4166fce0a9425a338b0bBob Halley max-transfer-idle-in 60;\n\
e35c1bb3ecd9a6597360b9160b397c8053af69bfDanny Mayer max-transfer-idle-out 60;\n\
6fa1cb5754695d550a58c6e8978fda65f5146af7David Lawrence max-retry-time 1209600; /* 2 weeks */\n\
585529aaeb95a71cd3d95df2602a4688fc7c3292David Lawrence min-retry-time 500;\n\
585529aaeb95a71cd3d95df2602a4688fc7c3292David Lawrence max-refresh-time 2419200; /* 4 weeks */\n\
585529aaeb95a71cd3d95df2602a4688fc7c3292David Lawrence min-refresh-time 300;\n\
585529aaeb95a71cd3d95df2602a4688fc7c3292David Lawrence multi-master no;\n\
585529aaeb95a71cd3d95df2602a4688fc7c3292David Lawrence dnssec-secure-to-insecure no;\n\
e35c1bb3ecd9a6597360b9160b397c8053af69bfDanny Mayer sig-validity-interval 30; /* days */\n\
e35c1bb3ecd9a6597360b9160b397c8053af69bfDanny Mayer sig-signing-nodes 100;\n\
0fc87fa2f38df7b293b650deacfa5e6c3d50eff9Bob Halley sig-signing-signatures 10;\n\
4d6964d70a114b53a11a3bd778d9b8f5179a7934Bob Halley sig-signing-type 65534;\n\
d3e7d196cd14fc3095ce97846a66cd49fc6fee6dDavid Lawrence inline-signing no;\n\
6c6ceac1bc66812f6e0097dcf5fd8b901c3fecd1Andreas Gustafsson zone-statistics terse;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence max-journal-size unlimited;\n\
b592e197fe354d7258dc4166fce0a9425a338b0bBob Halley ixfr-from-differences false;\n\
b592e197fe354d7258dc4166fce0a9425a338b0bBob Halley check-wildcard yes;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence check-sibling yes;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence check-integrity yes;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence check-mx-cname warn;\n\
b592e197fe354d7258dc4166fce0a9425a338b0bBob Halley check-srv-cname warn;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence zero-no-soa-ttl yes;\n\
b592e197fe354d7258dc4166fce0a9425a338b0bBob Halley update-check-ksk yes;\n\
b592e197fe354d7258dc4166fce0a9425a338b0bBob Halley serial-update-method increment;\n\
b592e197fe354d7258dc4166fce0a9425a338b0bBob Halley dnssec-update-mode maintain;\n\
b592e197fe354d7258dc4166fce0a9425a338b0bBob Halley dnssec-dnskey-kskonly no;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence dnssec-loadkeys-interval 60;\n\
d5069ac954d067aa45ad395fc338f7e499b834c1David Lawrence try-tcp-refresh yes; /* BIND 8 compat */\n\
d3e7d196cd14fc3095ce97846a66cd49fc6fee6dDavid Lawrence# Zones in the \"_bind\" view are NOT counted in the count of zones.\n\
11d732daac76a24a0f3e5948a2758a4b866a0825David Lawrenceview \"_bind\" chaos {\n\
28b863e609ff2d97b78663b46894494cfa2ea411Mark Andrews recursion no;\n\
28b863e609ff2d97b78663b46894494cfa2ea411Mark Andrews notify no;\n\
1d9958c6cc291916010779792f0fbdf6cd5ba368Mark Andrews allow-new-zones no;\n\
1d9958c6cc291916010779792f0fbdf6cd5ba368Mark Andrews # Prevent use of this zone in DNS amplified reflection DoS attacks\n\
1d9958c6cc291916010779792f0fbdf6cd5ba368Mark Andrews rate-limit {\n\
28b863e609ff2d97b78663b46894494cfa2ea411Mark Andrews responses-per-second 3;\n\
28b863e609ff2d97b78663b46894494cfa2ea411Mark Andrews min-table-size 10;\n\
1d9958c6cc291916010779792f0fbdf6cd5ba368Mark Andrews zone \"version.bind\" chaos {\n\
1d9958c6cc291916010779792f0fbdf6cd5ba368Mark Andrews type master;\n\
1d9958c6cc291916010779792f0fbdf6cd5ba368Mark Andrews database \"_builtin version\";\n\
ece6c39dd823d92cf89e7e37614bd458d5d42658Mark Andrews zone \"hostname.bind\" chaos {\n\
28b863e609ff2d97b78663b46894494cfa2ea411Mark Andrews type master;\n\
28b863e609ff2d97b78663b46894494cfa2ea411Mark Andrews database \"_builtin hostname\";\n\
1d9958c6cc291916010779792f0fbdf6cd5ba368Mark Andrews zone \"authors.bind\" chaos {\n\
11d732daac76a24a0f3e5948a2758a4b866a0825David Lawrence type master;\n\
1d9958c6cc291916010779792f0fbdf6cd5ba368Mark Andrews database \"_builtin authors\";\n\
11d732daac76a24a0f3e5948a2758a4b866a0825David Lawrence zone \"id.server\" chaos {\n\
ff8cd3afa7f900d7986ccbc3638235cb8ad6f1ecAndreas Gustafsson type master;\n\
ff8cd3afa7f900d7986ccbc3638235cb8ad6f1ecAndreas Gustafsson database \"_builtin id\";\n\
b38ab99bdc833da490c0ca0cbd05fb9d54dff997Andreas Gustafsson# Default trusted key(s) for builtin DLV support\n\
6ebd91a0c7f4c62a501b67adce4a6800d8b7dfacAutomatic Updater# (used if \"dnssec-lookaside auto;\" is set and\n\
13f20ab1fad3f7620a1eb31937ff0d1021e5590bDanny Mayer# sysconfdir/bind.keys doesn't exist).\n\
ff8cd3afa7f900d7986ccbc3638235cb8ad6f1ecAndreas Gustafsson# BEGIN MANAGED KEYS\n"
b38ab99bdc833da490c0ca0cbd05fb9d54dff997Andreas Gustafsson/* Imported from bind.keys.h: */
b38ab99bdc833da490c0ca0cbd05fb9d54dff997Andreas Gustafsson"# END MANAGED KEYS\n\
b38ab99bdc833da490c0ca0cbd05fb9d54dff997Andreas Gustafssonns_config_parsedefaults(cfg_parser_t *parser, cfg_obj_t **conf) {
f3fcde886c32bf92c464ed13b94b4c267bab5de4Danny Mayer isc_buffer_init(&b, defaultconf, sizeof(defaultconf) - 1);
ff8cd3afa7f900d7986ccbc3638235cb8ad6f1ecAndreas Gustafsson isc_buffer_add(&b, sizeof(defaultconf) - 1);
186e7f37c9fc985a7a7264cc8170e48a25bed434Mark Andrews return (cfg_parse_buffer(parser, &b, &cfg_type_namedconf, conf));
186e7f37c9fc985a7a7264cc8170e48a25bed434Mark Andrewsns_config_get(cfg_obj_t const * const *maps, const char *name,
186e7f37c9fc985a7a7264cc8170e48a25bed434Mark Andrews for (i = 0;; i++) {
aeff7de836558fa8002ab5db35292d2bb6450da8Evan Hunt if (cfg_map_get(maps[i], name, obj) == ISC_R_SUCCESS)
186e7f37c9fc985a7a7264cc8170e48a25bed434Mark Andrewsns_checknames_get(const cfg_obj_t **maps, const char *which,
aeff7de836558fa8002ab5db35292d2bb6450da8Evan Hunt for (i = 0;; i++) {
aeff7de836558fa8002ab5db35292d2bb6450da8Evan Hunt * Zone map entry is not a list.
aeff7de836558fa8002ab5db35292d2bb6450da8Evan Hunt if (checknames != NULL && !cfg_obj_islist(checknames)) {
which) == 0) {
return (ISC_R_SUCCESS);
const cfg_listelt_t *e;
return (ISC_R_SUCCESS);
return (result);
return (ISC_R_SUCCESS);
return (result);
const char *str;
INSIST(0);
return (ztype);
int count, i = 0;
return (ISC_R_RANGE);
} else if (defport != 0)
return (result);
return (ISC_R_NOMEMORY);
return (ISC_R_RANGE);
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
static isc_result_t
return (result);
const char *listname;
return (ISC_R_SUCCESS);
return (ISC_R_NOTFOUND);
goto cleanup;
goto cleanup;
return (ISC_R_RANGE);
goto cleanup;
const char *keystr;
isc_buffer_t b;
if (listcount == l) {
void * new;
goto cleanup;
if (listcount != 0) {
goto cleanup;
goto cleanup;
void * new;
goto cleanup;
if (stackcount != 0) {
pushed++;
goto newlist;
if (i == addrcount) {
void * new;
goto cleanup;
if (addrcount != 0) {
goto cleanup;
if (dscpcount != 0) {
goto cleanup;
if (keycount != 0) {
goto cleanup;
goto cleanup;
goto cleanup;
if (pushed != 0) {
pushed--;
goto resume;
if (i < addrcount) {
void * new;
goto cleanup;
addrcount = i;
goto cleanup;
dscpcount = i;
goto cleanup;
keycount = i;
return (ISC_R_SUCCESS);
return (result);
for (i = 0; i < count; i++) {
return (ISC_R_RANGE);
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
return (ISC_R_RANGE);
return (ISC_R_SUCCESS);
struct keyalgorithms {
const char *str;
unsigned int type;
} algorithms[] = {
return (ISC_R_NOTFOUND);
return (result);
return (ISC_R_RANGE);
INSIST(0);
return (ISC_R_SUCCESS);