Commit Graph
228 Commits
Author SHA1 Message Date
Andreas Gustafsson 8f2a0855e0 pullup:
297.   [bug]           Specifying a key name that wasn't fully qualified
                        in certain parts of the config file could cause
                        an assertion failure.
2000-06-30 15:51:46 +00:00
Michael Graff 0d067e29f5 [pullup, Andreas]
don't issue warnings saying max-ncache-ttl and max-cache-ttl are
not yet implemented, because they are
2000-06-28 00:32:18 +00:00
James Brister 406ce0cd96 281. [bug] fixed list of recognised config file category names. 2000-06-23 22:30:02 +00:00
David Lawrence 9c3531d72a add RCS id string 2000-06-22 22:00:42 +00:00
David Lawrence 28d9fd5381 update_copyrights 2000-06-21 22:45:24 +00:00
James Brister 58c42ee18c 263. [func] New logging channel type 'stderr'
channel some-name {
                                        stderr;
                                        severity error;
                                }
2000-06-20 21:36:49 +00:00
Brian Wellington 4e3316d1b7 isc_log_write called with extra parameter, typos 2000-06-19 17:41:42 +00:00
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 d85552c450 global lame-ttl option was not being printed when config structures were
written out.
2000-06-09 15:54:26 +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
Andreas Gustafsson 596089957b cachesize was misspelled as cachezie 2000-06-08 17:26:35 +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
David Lawrence 9e532f8f5e use ISC_TF to assign an isc_boolean_t 2000-06-06 15:21:46 +00:00
James Brister 616c83b78b temporarily disable code that validates listen-on and listen-on-v6 lists. 2000-06-06 14:20:03 +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 029f5aa861 Conversion of various config file values to isc_uint32_t. 2000-06-05 09:17:14 +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
David Lawrence 605c03155a Silence IRIX warning:
"confzone.c", line 445: remark(1552): variable "res" was set but never used

Made *_zone_init functions return void since they all always returned
ISC_R_SUCCESS.
2000-05-13 19:46:26 +00:00
David Lawrence 34e52a882a Silence IRIX warning:
"confndc.c", line 1149: remark(1552): variable "mem" was set but never used
2000-05-13 19:45:13 +00:00
David Lawrence aef7d54ae7 Silence IRIX warning:
"confctl.c", line 177: remark(1552): variable "rval" was set but never used
2000-05-13 19:44:53 +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 6028d1ce03 Needs string.h for function prototypes. For some reason gcc and other
compilers do not warn about the missing str*/mem* prototypes.
2000-05-08 19:23:32 +00:00
James Brister a466582ff0 Copy functions were not assigning result to output parameter. Now they are. 2000-05-08 18:42:38 +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
David Lawrence 09f22ac5b0 Redundant header work, mostly removing <dns/result.h> from installed
headers and adding it to source files that need it.
2000-05-02 03:54:17 +00:00
David Lawrence 7f1c97f582 include <isc/boolean.h> for ISC_TF() 2000-05-01 18:07:08 +00:00
David Lawrence 4be63b1fd8 144. [cleanup] libdns header files too numerous to name were made
to conform to the same style for multiple inclusion
                        protection.
2000-04-29 02:02:38 +00:00
Bob Halley 2d3c2c9911 YACC namespace protection for most platforms 2000-04-28 02:05:07 +00:00
Andreas Gustafsson 82ca33427b declare arguments as UNUSED() when used in assertions only 2000-04-28 01:24:18 +00:00