Commit Graph

199 Commits

Author SHA1 Message Date
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
Michael Graff
68e4926b22 namespace changes -- on NetBSD at least, libdns.a is now clean (excepting yy* symbols) 2000-04-28 01:15:58 +00:00
Bob Halley
364a82f7c2 include isc/util.h 2000-04-28 01:12:23 +00:00
David Lawrence
6e49e91bd0 103. [func] libisc buffer API changes for <isc/buffer.h>:
Added:
                                isc_buffer_base(b)          (pointer)
                                isc_buffer_current(b)       (pointer)
                                isc_buffer_active(b)        (pointer)
                                isc_buffer_used(b)          (pointer)
                                isc_buffer_length(b)            (int)
                                isc_buffer_usedlength(b)        (int)
                                isc_buffer_consumedlength(b)    (int)
                                isc_buffer_remaininglength(b)   (int)
                                isc_buffer_activelength(b)      (int)
                                isc_buffer_availablelength(b)   (int)
                        Removed:
                                ISC_BUFFER_USEDCOUNT(b)
                                ISC_BUFFER_AVAILABLECOUNT(b)
                                isc_buffer_type(b)
                        Changed names:
                                isc_buffer_used(b, r) ->
                                        isc_buffer_usedregion(b, r)
                                isc_buffer_available(b, r) ->
                                        isc_buffer_available_region(b, r)
                                isc_buffer_consumed(b, r) ->
                                        isc_buffer_consumedregion(b, r)
                                isc_buffer_active(b, r) ->
                                        isc_buffer_activeregion(b, r)
                                isc_buffer_remaining(b, r) ->
                                        isc_buffer_remainingregion(b, r)

                        Buffer types were removed, so the ISC_BUFFERTYPE_*
                        macros are no more, and the type argument to
                        isc_buffer_init and isc_buffer_allocate were removed.
                        isc_buffer_putstr is now void (instead of isc_result_t)
                        and requires that the caller ensure that there
                        is enough available buffer space for the string.
2000-04-27 00:03:12 +00:00
David Lawrence
6d4b6f9d4b added dns_c_ndcctx_getserver, minor style lint 2000-04-24 22:53:41 +00:00
Mark Andrews
716cb5acca notify would only be returned from named.conf if dialup was also set. 2000-04-20 12:43:05 +00:00
Andreas Gustafsson
272a24cf9c did not compile on HPUX due to mixing of isc_int32_t and
isc_uint32_t pointers
2000-04-19 20:04:49 +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
fca5f81ad6 using snprintf or vsnprintf requires isc/print.h 2000-04-12 19:07:12 +00:00
Bob Halley
b65c8325a7 If the user has specified auth-nxdomain, do not warn about the default
being changed.
Fix typo.
2000-04-12 02:04:03 +00:00
Bob Halley
823ed8c082 isc_mem_destroy_check is now isc_mem_setdestroycheck 2000-04-12 01:25:07 +00:00
Andreas Gustafsson
0f7045b0c4 moved a few more typedefs to <isc/types.h>: isc_region_t,
isc_textregion_t, isc_lex_t
2000-04-10 21:57:24 +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
Andreas Gustafsson
913d4c761c cosmetics 2000-04-07 18:30:11 +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
d6dc9759d2 More logging of unimplemented functions.
Change to ipmatchlist accessors (use attach/detach)
macro-ize ipmatchlist field accessors
2000-04-06 20:10:56 +00:00
James Brister
3a49917729 Support new optional class on a view declaration. 2000-04-06 10:35:27 +00:00
James Brister
2b3d9824cb Support many new values in a view statement. 2000-04-06 09:46:53 +00:00
James Brister
3e3cdbc52b Some DNS_R_ to ISC_R_ replacements. 2000-04-06 09:45:39 +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
d85dd9de75 Changed log message format to be clearer.
Add call to new function dns_c_viewtable_checkviews() in config post load
checker.
Added missing treat-cr-as-space, min-roots and serial-queries options.
2000-04-06 09:38:32 +00:00
James Brister
14f8df274b Changed DNS_R_* to ISC_R_* 2000-04-06 09:35:36 +00:00
James Brister
300115d413 Replaced with peer.c and peer.h 2000-04-05 17:20:45 +00:00
James Brister
97645c1347 Removed superfluous incloude of config.h 2000-04-05 16:39:24 +00:00
James Brister
212cbe386c Fixed case of checking for allow-update and update-policy together.
log message change
2000-04-05 15:21:07 +00:00
James Brister
ce8c050e8f Support new match-clients statement. 2000-04-05 15:18:42 +00:00