Commit graph

97 commits

Author SHA1 Message Date
James Brister
0d5d8e2bbf 259. [func] New random-device and random-seed-file statements
for global options block of named.conf. Both accept
                        a single string argument.
2000-06-15 23:38:16 +00:00
James Brister
bedfa169b4 fixed handling of size+unit when value would be too large for internal
representation.

max-cache-size config option now takes a size-spec like 'datasize',
except 'default' is not allowed.
2000-06-09 22:13:23 +00:00
James Brister
47c196192a Rename cache-size config option to max-cache-size and change argument
type to be strict integer (no 'default' or 'unlimited')..
2000-06-09 15:03:28 +00:00
James Brister
adf8222185 Rename global option cachesize to cache-size and add corresponding option
to view statement.
2000-06-09 08:48:42 +00:00
James Brister
71a4339351 Empty named.conf file and empty options statement are now parsed properly.
New cachesize option for named.conf

Fixed incorrect warning about auth-nxdomain usage.
2000-06-08 12:04:56 +00:00
Michael Graff
0aa8742ace minor formatting nit 2000-06-08 05:26:38 +00:00
James Brister
c78dc8b001 Added new listen-on-v6 config file statement.
Consider it a config file error if a listen-on statement has an IPv6
address in it, or a listen-on-v6 statement has an IPv4 address in it.
2000-06-05 22:08:50 +00:00
James Brister
d5399cc351 Allow a trusted-key's first field (domain-name) be either a quoted or
an unquoted string, instead of requiring a quoted string.
2000-06-05 20:32:01 +00:00
James Brister
69b691c962 Support new 'port' clause in config file options section. Causes
'listen-on', 'masters' and 'also-notify' statements to use its value
instead of default (53).
2000-06-04 19:51:22 +00:00
Andreas Gustafsson
11d0a4a55e wired up the sig-validity-interval option; renamed its
access functions in the config code to be consistent with the option name
2000-06-02 17:31:43 +00:00
James Brister
98c2f9a111 Support config file trusted-keys and also-notify statemenets in views.
Support config file sig-validity-interval statement in options, views
and zone statements (master zones only).

Logging messages in config module stripped of trailing period.
2000-06-02 15:12:36 +00:00
David Lawrence
6d12fdf966 Megacommit of many files.
Mostly, several functions that take pointers as arguments, almost
always char * pointers, had those pointers qualified with "const".
Those that returned pointers to previously const-qualified arguments
had their return values qualified as const.  Some structure members
were qualified as const to retain that attribute from the variables
from which they were assigned.

The macro DE_CONST is used to deal with a handful of very special
places where something is qualified as const but really needs to have
its const qualifier removed.

rdata.c now defines macros for the prototypes of the basic rdata functions,
and all of the lib/dns/rdata/**/*.c files now use them.

Some minor integer-compatibility issues.  (IE, ~0x03 is a signed int,
so assigning it to an unsigned int should use a cast.  The type of an
enum member is int, so there are some conversion issues there, too.)

A pointers-to-function should not be cast to a pointer-to-object.

Variables should not be named for C reserved identifiers.

One or two set-but-not-used variables removed.

Minor other ISC style cleanups.
2000-06-01 18:26:56 +00:00
James Brister
725a4773f5 Support also-notify and trusted-keys in a view statement.
Fixed error message when lexer couldn't open an input file.
2000-05-31 13:10:00 +00:00
Andreas Gustafsson
4f7ced3f4a use isc_sockaddr_any(), isc_sockaddr_any6() 2000-05-25 05:21:12 +00:00
David Lawrence
20b20b2394 202. [func] isc_lex_getsourceline() changed from returning int
to returning unsigned long, the type of its underlying
                        counter.
2000-05-24 15:07:59 +00:00
James Brister
8977ab7ca0 Zone configuration validation is now done at end of config file parsing,
and before loading callbacks.
2000-05-18 23:20:21 +00:00
James Brister
4932a54ed6 - options named.conf statement *must* now come before any zone or view
statements.

- Post-load of named.conf check verifies a slave zone has non-empty list
  of masters defined.

- New per-zone boolean:

	enable-zone yes | no ;

- intended to let a zone be disabled without having to comment out the
  entire zone statement.

- New global and per-view option:

	max-cache-ttl number

- New global and per-view option:

	addition-data internal | minimal | maximal;
2000-05-15 12:36:33 +00:00
Andreas Gustafsson
dcd66bf966 include statements in named.conf caused syntax errors due to
not consuming the semicolon ending the include statement before switching
input streams
2000-05-11 02:19:08 +00:00
Andreas Gustafsson
c2e880fa8b indicate reason for failure to open configuration file in
error message [RT #61]
2000-05-10 00:37:28 +00:00
Andreas Gustafsson
62890ae20d removed an #if 0 ... #endif section (insted of fixing
the typo in it)
2000-05-10 00:16:09 +00:00
David Lawrence
47b26abe77 ensure proper range for argument to ctype functions 2000-05-09 22:22:25 +00:00
James Brister
c0fcd6b98b Fixed prototype error in yyparse that only HPUX noticed. 2000-05-09 16:49:50 +00:00
James Brister
7730b2c1db Redefining config file items is now an error.
Error messages changed to 'cannot redefine xxx'
2000-05-08 20:31:13 +00:00
James Brister
131c2e2e9d No longer validate category names upon config file parsing. 2000-05-08 19:52:03 +00:00
David Lawrence
1a69a1a78c Megacommit of dozens of files.
Cleanup of redundant/useless header file inclusion.

ISC style lint, primarily for function declarations and standalone
comments -- ie, those that appear on a line without any code, which
should be written as follows:
   /*
    * This is a comment.
    */
2000-05-08 14:38:29 +00:00
James Brister
65c9645ca7 Support new 'database' statement in zone.
database "quoted-string";
2000-05-06 10:18:48 +00:00
James Brister
e2cf9c2db3 support 'disabled' statement in zone config (causes
zone to be parsed and then ignored). Currently must
come after the 'type' clause.

support optional ports in masters and also-notify
statements:

	masters [ port xxx ] { y.y.y.y [ port zzz ] ; }

removed some unused arguments.

stop issuing some warnings about some features that
were not implemented, but now are.
2000-05-03 19:29:43 +00:00
James Brister
36357e4304 Changed yacc union size to be smaller for yaccs that put yacc-stack
on the real stack.
2000-05-02 17:56:39 +00:00
Bob Halley
2d3c2c9911 YACC namespace protection for most platforms 2000-04-28 02:05:07 +00:00
Bob Halley
364a82f7c2 include isc/util.h 2000-04-28 01:12:23 +00:00
Andreas Gustafsson
468b85d9d1 restrict parser stack size to avoid thread stack overflow in
bison-generated parsers
2000-04-19 00:26:39 +00:00
Andreas Gustafsson
7ead3746f8 consistent wording in log messages 2000-04-18 00:25:41 +00:00
Andreas Gustafsson
e0d1050c57 use single quotes consistently in log messages 2000-04-18 00:18:38 +00:00
Bob Halley
823ed8c082 isc_mem_destroy_check is now isc_mem_setdestroycheck 2000-04-12 01:25:07 +00:00
James Brister
09c9fc94cf Fixed a function name for style.
Fixed validation of keys used in server statement. Now they must truly be
defined before used. Ditto for in address match list element. Keys
referenced can be inside the enclosing view or at file scope.
2000-04-07 20:41:29 +00:00
James Brister
6abdc5c090 Changes necessary to support server statements inside a view statement. 2000-04-07 17:40:43 +00:00
James Brister
616ee4a3f7 Changes to support keys inside views. 2000-04-07 13:35:06 +00:00
James Brister
f46678fb6c Name change to some accessors.
Parse lame-ttl in options block
Parse allow-update-forwarding in options block
parse transfer-format in view statment
2000-04-06 20:12:26 +00:00
James Brister
3a49917729 Support new optional class on a view declaration. 2000-04-06 10:35:27 +00:00
James Brister
2aac82553d Support lame-ttl, min-roots and treat-cr-as-space in options.
Support auth-nxdomain
	recursion query-source query-source-v6 transfer-source
	transfer-source-v6 max-transfer-time-out max-transfer-idle-out
	transfer-format request-ixfr privide-ixfr cleaning-interval
	fetch-glue notify rfc2308-type1 lame-ttl max-ncache-ttl
	min-roots
in views
2000-04-06 09:43:12 +00:00
James Brister
f211bb7bb6 Support new match-clients view option. 2000-04-05 15:16:49 +00:00
James Brister
3cfa5fedfe Replace bit-setting method for determining if a config file field was set.
Templatized(?) code with macros.
2000-03-29 15:01:14 +00:00
James Brister
da47a1b896 Removed listen-on from views.
Changed syntax of grant/deny statements so they now must be inside an
'update-policy' block.

quote rr types when printing grant/deny statements as they can
clash with config file keywords.

Added rcs Id inside comment.
2000-03-28 22:58:25 +00:00
Bob Halley
77221c2c88 update copyright 2000-03-23 19:35:59 +00:00
Andreas Gustafsson
034c7247de %token L_DIRECTORY line was repeated 2000-03-21 21:26:21 +00:00
Andreas Gustafsson
71181f3e13 make the global option 'maintain-ixfr-base' a synonym
for 'provide-ixfr'; fix typos in previous change
2000-03-20 22:03:13 +00:00
Andreas Gustafsson
72166c5cf5 made 'support-ixfr' a synonym for 'request-ixfr' 2000-03-20 19:40:04 +00:00
James Brister
5475a2d296 Support request-ixfr and provide-ixfr values in options and server
statements.
2000-03-19 02:58:15 +00:00
James Brister
3bb4fdd9cc remove unused rcsid variable 2000-03-18 00:46:47 +00:00
James Brister
85558cee10 Handle new grant/deny clause inside zone statement. 2000-03-02 20:41:21 +00:00