From: Mark Andrews Date: Fri, 21 Feb 2014 01:48:39 +0000 (+1100) Subject: add CFG_CLAUSEFLAG_NOTCONFIGURED flag X-Git-Tag: v9.10.0b1~28 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=5e45c8aabfad8f0c7995c4b8cf27690c1395ef8d;p=thirdparty%2Fbind9.git add CFG_CLAUSEFLAG_NOTCONFIGURED flag --- diff --git a/doc/misc/options b/doc/misc/options index ff889bdf6a0..498e5a93b61 100644 --- a/doc/misc/options +++ b/doc/misc/options @@ -147,6 +147,7 @@ options { forward ( first | only ); forwarders [ port ] [ dscp ] { ( | ) [ port ] [ dscp ]; ... }; + geoip-directory ( | none ); // not configured has-old-clients ; // obsolete heartbeat-interval ; host-statistics ; // not implemented @@ -191,6 +192,7 @@ options { multiple-cnames ; // obsolete named-xfer ; // obsolete no-case-compress { ; ... }; + nosit-udp-size ; // not configured notify ; notify-delay ; notify-source ( | * ) [ port ( | * ) ] [ @@ -233,6 +235,7 @@ options { request-ixfr ; request-ixfr ; request-nsid ; + request-sit ; // not configured reserved-sockets ; resolver-query-timeout ; response-policy { zone [ policy ( given | disabled @@ -257,6 +260,7 @@ options { sig-signing-signatures ; sig-signing-type ; sig-validity-interval [ ]; + sit-secret ; // not configured sortlist { ; ... }; stacksize ; statistics-file ; @@ -307,6 +311,7 @@ server { query-source-v6 ; request-ixfr ; request-nsid ; + request-sit ; // not configured support-ixfr ; // obsolete transfer-format ( many-answers | one-answer ); transfer-source ( | * ) [ port ( | * ) ] [ @@ -445,6 +450,7 @@ view { minimal-responses ; multi-master ; no-case-compress { ; ... }; + nosit-udp-size ; // not configured notify ; notify-delay ; notify-source ( | * ) [ port ( | * ) ] [ @@ -481,6 +487,7 @@ view { request-ixfr ; request-ixfr ; request-nsid ; + request-sit ; // not configured resolver-query-timeout ; response-policy { zone [ policy ( given | disabled | passthru | no-op | drop | tcp-only | nxdomain | nodata | @@ -509,6 +516,7 @@ view { query-source-v6 ; request-ixfr ; request-nsid ; + request-sit ; // not configured support-ixfr ; // obsolete transfer-format ( many-answers | one-answer ); transfer-source ( | * ) [ port ( | diff --git a/lib/isccfg/namedconf.c b/lib/isccfg/namedconf.c index fec718ac3b7..fa42da6f5ab 100644 --- a/lib/isccfg/namedconf.c +++ b/lib/isccfg/namedconf.c @@ -975,6 +975,9 @@ options_clauses[] = { { "flush-zones-on-shutdown", &cfg_type_boolean, 0 }, #ifdef HAVE_GEOIP { "geoip-directory", &cfg_type_qstringornone, 0 }, +#else + { "geoip-directory", &cfg_type_qstringornone, + CFG_CLAUSEFLAG_NOTCONFIGURED }, #endif /* HAVE_GEOIP */ { "has-old-clients", &cfg_type_boolean, CFG_CLAUSEFLAG_OBSOLETE }, { "heartbeat-interval", &cfg_type_uint32, 0 }, @@ -986,6 +989,8 @@ options_clauses[] = { { "listen-on-v6", &cfg_type_listenon, CFG_CLAUSEFLAG_MULTI }, #ifdef ISC_PLATFORM_USESIT { "sit-secret", &cfg_type_qstring, 0 }, +#else + { "sit-secret", &cfg_type_qstring, CFG_CLAUSEFLAG_NOTCONFIGURED }, #endif { "managed-keys-directory", &cfg_type_qstring, 0 }, { "match-mapped-addresses", &cfg_type_boolean, 0 }, @@ -1522,6 +1527,8 @@ view_clauses[] = { { "lame-ttl", &cfg_type_uint32, 0 }, #ifdef ISC_PLATFORM_USESIT { "nosit-udp-size", &cfg_type_uint32, 0 }, +#else + { "nosit-udp-size", &cfg_type_uint32, CFG_CLAUSEFLAG_NOTCONFIGURED }, #endif { "max-acache-size", &cfg_type_sizenodefault, 0 }, { "max-cache-size", &cfg_type_sizenodefault, 0 }, @@ -1548,6 +1555,8 @@ view_clauses[] = { { "request-ixfr", &cfg_type_boolean, 0 }, #ifdef ISC_PLATFORM_USESIT { "request-sit", &cfg_type_boolean, 0 }, +#else + { "request-sit", &cfg_type_boolean, CFG_CLAUSEFLAG_NOTCONFIGURED }, #endif { "request-nsid", &cfg_type_boolean, 0 }, { "resolver-query-timeout", &cfg_type_uint32, 0 }, @@ -1828,6 +1837,8 @@ server_clauses[] = { { "support-ixfr", &cfg_type_boolean, CFG_CLAUSEFLAG_OBSOLETE }, #ifdef ISC_PLATFORM_USESIT { "request-sit", &cfg_type_boolean, 0 }, +#else + { "request-sit", &cfg_type_boolean, CFG_CLAUSEFLAG_NOTCONFIGURED }, #endif { "request-nsid", &cfg_type_boolean, 0 }, { "transfers", &cfg_type_uint32, 0 }, @@ -2212,8 +2223,8 @@ static cfg_type_t cfg_type_geoipdb = { }; static cfg_tuplefielddef_t geoip_fields[] = { - { "negated", &cfg_type_void, 0}, - { "db", &cfg_type_geoipdb, 0}, + { "negated", &cfg_type_void, 0 }, + { "db", &cfg_type_geoipdb, 0 }, { "subtype", &cfg_type_geoiptype, 0 }, { "search", &cfg_type_astring, 0 }, { NULL, NULL, 0 }