Commit graph

140 commits

Author SHA1 Message Date
Mark Andrews
8dd5237a27 655. [bug] Improve error reporting on unexpected eof when loading
zones. [RT #611]
2001-01-04 23:43:53 +00:00
Mark Andrews
9f28451bca 641. [bug] $GENERATE caused a uninitialized link to be used.
[RT #595]
2000-12-28 02:31:20 +00:00
Mark Andrews
7f66083184 remove unused variables 2000-12-19 01:32:41 +00:00
Mark Andrews
1599bd6998 620. [bug] dns_master_load*inc() now require 'task' and 'load'
to be non-null.  Also 'done' will not be called if
                        dns_master_load*inc() fails immediately. [RT #565]
2000-12-17 23:43:12 +00:00
Mark Andrews
6fda157766 ISC_LINK_*UNSAFE -> ISC_LINK_INITAND* 2000-12-07 20:15:58 +00:00
Mark Andrews
5a6335a8bf 588. [bug] ctx->in_use was not being correctly initalised when
when pushing a file for $INCLUDE. [RT #523]
2000-12-04 04:17:00 +00:00
Andreas Gustafsson
94d61e2f76 added UNUSED() macros for arguments that end up unused when assertion checking
is turned off
2000-12-01 00:55:16 +00:00
Andreas Gustafsson
d7059b8b7c 80 columns 2000-11-27 19:15:39 +00:00
Mark Andrews
19ff7edc1a 577. [func] Log illegal RDATA combinations. e.g. multiple
singlton types, cname and other data.
2000-11-24 01:51:11 +00:00
Mark Andrews
0f9bbc9ea2 loop_cnt test was wrong way around. 2000-11-23 05:04:54 +00:00
Andreas Gustafsson
ab889e996d use dns_rdataclass_format() 2000-11-15 19:06:04 +00:00
Brian Wellington
ebfcb6cf66 550. [func] Support unknown rdata types and classes. 2000-11-09 23:55:05 +00:00
Andreas Gustafsson
04bf45fffe added missing newline 2000-11-08 00:18:18 +00:00
Mark Andrews
4ab40dad77 Add BIND 8 style GENERATE $$ => $. 2000-11-02 05:18:33 +00:00
Mark Andrews
368b37b616 dns_rdata_invalidate -> dns_rdata_reset 2000-10-31 03:22:05 +00:00
Mark Andrews
c03bb27f06 532. [func] Implement DNS UPDATE pseudo records using
DNS_RDATA_UPDATE flag.

 531.   [func]          Rdata really should be initalized before being
                        assigned to (dns_rdata_fromwire(), dns_rdata_fromtext(),
                        dns_rdata_clone(), dns_rdata_fromregion()),
                        check that it is.
2000-10-25 04:26:57 +00:00
Mark Andrews
5e589b5356 Uninitalised link fixes, batch 1. 2000-10-20 02:21:58 +00:00
Mark Andrews
b20ee662a7 521. [bug] Detect master files which contain $INCLUDE and always
reload. [RT #196]

new result code DNS_R_SEENINCLUDE
dns_master_load* can now return DNS_R_SEENINCLUDE
2000-10-17 07:22:39 +00:00
Brian Wellington
060de372a1 The database now does duplicate suppression, so the master file loader
doesn't need to.
2000-09-23 01:05:35 +00:00
Andreas Gustafsson
338edde79f snprintf() requires <isc/print.h> on OSF/1 4.0 2000-09-19 01:47:53 +00:00
Andreas Gustafsson
ec02cd5927 spacing 2000-09-18 18:31:06 +00:00
Mark Andrews
9d3ef72b37 470. [feature] $GENERATE is now supported. See also
doc/misc/migration.
2000-09-18 06:50:35 +00:00
Mark Andrews
79907dfac9 some more cases of #466 2000-09-17 13:08:46 +00:00
Mark Andrews
4050789abb bugfix 468 contained a error. 2000-09-17 12:54:44 +00:00
Mark Andrews
c50a002bd1 468. [bug] dns_master_load*() failed to report file and line
number in certain error conditions.

 467.   [bug]           dns_master_load*() failed to log an error if
                        pushfile() failed.

 466.   [bug]           dns_master_load*() could return success when it failed.
2000-09-17 12:38:47 +00:00
Andreas Gustafsson
a405a53d53 443. [bug] When loading a master file failed because of an
unrecognized RR type name, the error message
                        did not include the file name and line number.
                        [RT #285]
2000-09-12 18:10:24 +00:00
Mark Andrews
d22b4de3f1 Throttled answer while loading support (still needs config file hooks). 2000-09-05 03:35:24 +00:00
Andreas Gustafsson
2de4786af7 a function pointer is not a valid event sender, but NULL is 2000-08-24 19:13:13 +00:00
Mark Andrews
031f9084fc 394. [bug] Current name was not propagated via $INCLUDE.
393.   [func]          Initial answer while loading (awl) support.
                        Entry points: dns_master_loadfileinc(),
                        dns_master_loadstreaminc(), dns_master_loadbufferinc().
                        Note: calls to dns_master_load*inc() should be rate
                        be rate limited so as to not use up all file
                        descriptors.
2000-08-15 03:33:52 +00:00
David Lawrence
40f53fa8d9 Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
own CVS tree will help minimize CVS conflicts.  Maybe not.
Blame Graff for getting me to trim all trailing whitespace.
2000-08-01 01:33:37 +00:00
Brian Wellington
3469c26c0e $INCLUDE didn't work with a quoted filename; now it does. None of the
calls to isc_lex_gettoken were properly handling isc_tokentype_special
tokens; it's now an error to see one.
2000-07-30 20:28:07 +00:00
David Lawrence
15a4474541 word wrap copyright notice at column 70 2000-07-27 09:55:03 +00:00
Andreas Gustafsson
28059de4ef when a master file ends in a place where a newline is expected,
make the warning message say 'file does not end with newline' instead of
'unexpected end of file' to lead the user on the right tracks to fixing
the most likely cause.  Also, don't include the function name in the message.
2000-07-10 19:07:19 +00:00
Mark Andrews
fd4810861c Warn on unexpected <eof> if input source is a file, treat as <eol><eof>
regardless of input source.
2000-07-10 05:15:04 +00:00
Mark Andrews
d1e971ba02 316. [bug] EOF mid line should be a error.
315.   [bug]           Handle non-empty blanks lines.
2000-07-09 12:52:34 +00:00
Mark Andrews
b74e73c5b4 294. [bug] If we run out of space in while processing glue
when reading a master file and commit "current name"
			reverts to "name_current" instead of staying as
			"name_glue".
2000-06-29 15:55:19 +00:00
Mark Andrews
0380c44d02 241. [cleanup] nscount and soacount have been removed from the
dns_master_*() arguement lists.
2000-06-07 03:30:02 +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
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
Andreas Gustafsson
4331ce6a17 warn about ignored out-of-zone data 2000-04-28 23:15:24 +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
Brian Wellington
e9a9ae4fc6 Added dns_trust_ultimate for zone data (can be renamed later if necessary). 2000-04-20 18:47:21 +00:00
Michael Graff
4195904998 s/DNS_R_/ISC_R_/ change for some codes. 2000-04-06 22:03:35 +00:00
Bob Halley
f1e96dc67f ignore out-of-zone data 2000-03-29 21:01:30 +00:00
Andreas Gustafsson
64b42acc5f propagate the current and default TTLs into and out of
$INCLUDEd files (RT #69)
2000-03-22 19:27:51 +00:00
Andreas Gustafsson
4cf7efa59d typos 2000-03-22 17:59:13 +00:00
Andreas Gustafsson
4cc66f2516 typo 2000-03-22 17:54:15 +00:00
Andreas Gustafsson
8ba076755d typo 2000-03-22 17:50:34 +00:00
Andreas Gustafsson
0c7a0db602 typo 2000-03-22 17:46:34 +00:00
Andreas Gustafsson
2539896175 do not indent CVS ID comment 2000-03-17 17:49:37 +00:00
Bob Halley
7d32c065c7 update copyright 2000-02-03 23:50:32 +00:00
Olafur Gudmundsson
3a36d3d7e6 Added code to reject lines beginning with $ that are not known Directives.
Any name starting with $ should be escaped to comply with RFC1035.
Effect any zone will stop loading at first error, message is printed if
logging has been enabled.
2000-02-03 19:03:59 +00:00
Andreas Gustafsson
62e22bc7a5 typos in comments 2000-02-02 00:36:34 +00:00
Andreas Gustafsson
3a7a4eb1a5 trailing newlines are no longer needed in messages printed
using the rdata callbacks, and were never needed when calling
UNEXPECTED_ERROR
2000-01-22 01:41:17 +00:00
Andreas Gustafsson
68c703dd71 GETTOKEN() macro did not set result, causing
dns_master_load() to print messages like "dns_master_load: success".
Also, result of dns_time64_fromtext() was not checked.
2000-01-22 00:28:00 +00:00
Michael Graff
3ddd814a97 dns_result_t is no more. s/dns_result_t/isc_result_t/ -- more later, when I need a break. 1999-12-23 00:09:04 +00:00
Michael Graff
58aaab3687 isc_stdtime_get() now returns void, not isc_result_t. 1999-12-16 23:29:07 +00:00
Andreas Gustafsson
b0f7803835 consistently print a colon after the line number in error/warning messages 1999-11-30 02:21:59 +00:00
Andreas Gustafsson
db05fd8e29 error message 'class(FOO) != zone class(BAR)' sometimes had random
garbage after class names
1999-11-30 02:20:24 +00:00
Bob Halley
a7c6cb0a8c Remove remnant of old TTL code that broke $TTL. 1999-11-04 06:12:40 +00:00
Mark Andrews
6314cd3338 Support $TTL w/ BIND 8 format
dns_ttl_fromtext() to return DNS_R_BADTTL not DNS_R_SYNTAX.
1999-11-04 01:21:28 +00:00
Mark Andrews
9088094680 Add read support for BIND 8 TTL / counter format to soa.
Move bind_ttl to ttl.c and rename dns_ttl_fromtext and dns_counter_fromtext,
fix bug in handling of seconds (x 1 not x 60), can also handle raw number.
1999-11-02 13:07:53 +00:00
Olafur Gudmundsson
81cc8efc64 Zone file parser did not handle large CERT records in use 1999-10-26 18:05:23 +00:00
Bob Halley
b9fd2590a7 add const to filename args, cleanups 1999-10-25 18:41:36 +00:00
David Lawrence
619fb9349b Make the conversion from 64 bit time to 32 bit time explicit. It
is already checked after the conversion to ensure no data is lost.
1999-10-08 23:26:55 +00:00
Bob Halley
21737e85d8 preserve rr ordering 1999-10-07 19:40:30 +00:00
Bob Halley
732e0731de SIG support 1999-08-31 22:14:06 +00:00
Bob Halley
aeb1ccee6a allow buffer and stream loading 1999-08-05 22:10:23 +00:00
Bob Halley
a01f52a731 callback structure changes 1999-07-30 23:33:15 +00:00
Bob Halley
42a5f9c8f5 lint from alpha build 1999-06-24 17:55:41 +00:00
Andreas Gustafsson
c1bfdd2995 turn on ISC_LEXOPT_ESCAPE 1999-06-09 11:56:45 +00:00
Andreas Gustafsson
5fc7ba3e1a added dns_db_dump(), $DATE, and supporting changes 1999-06-08 10:35:23 +00:00
Mark Andrews
d44cd3fc3a Class mismatch was not reporting the zone's class.
The correct class was not being passed to dns_rdata_fromtext().
1999-04-25 22:18:11 +00:00
Bob Halley
f4f2ef7d80 fix minor textual nits 1999-03-24 00:29:54 +00:00
Mark Andrews
0d46301a6e NBUF was one to small.
GETTOKEN is now a simple macro that calls gettoken (static inline).
1999-03-23 00:04:01 +00:00
Mark Andrews
dd082cc554 Added BIND 8.x ttl processing.
Allow ttl / class to be specified in any order.
	Suppress duplicate rdata.
	Additional commentry.
1999-03-22 06:21:29 +00:00
Bob Halley
4c1132f344 update copyright 1999-03-06 04:12:06 +00:00
Bob Halley
904a573437 C++ compatibility 1999-03-04 02:48:47 +00:00
Mark Andrews
fdd04623a6 Convert to user error / warn callbacks. 1999-02-10 05:25:37 +00:00
Mark Andrews
82d0558893 Pass multiple callbacks in dns_rdatacallbacks_t.
Call UNEXPECTED_ERROR() when returning DNS_R_UNEXPECTED.
1999-02-09 08:02:21 +00:00
Bob Halley
f150692ba3 name change 1999-02-06 01:18:18 +00:00
Mark Andrews
8d3e74b168 gen to generate dns_rdata{type,class}_{type,class}
dns_rcode_{to,from}text()
	TKEY was missing the Algorithm
1999-02-04 06:38:43 +00:00
Mark Andrews
8aefdfc906 Missing !in_glue test. 1999-01-30 13:11:24 +00:00
Mark Andrews
923e2ea400 dns_load_master()'s callback last arguement is now void * rather
than isc_mem_t * to provide a general mechanism to pass context to
	the call back.  dns_load_master() has an additional arguement to
	support this.  to get the old behaviour set the arguement, private,
	to the same value as mctx.
1999-01-28 22:32:45 +00:00
Mark Andrews
0c67279acb Added soacount and nscount 1999-01-28 05:03:25 +00:00
Mark Andrews
e68714fd95 Add $TTL and $INCLUDE processing 1999-01-28 01:16:59 +00:00
Mark Andrews
89140b7f74 Added $ORIGIN support. 1999-01-27 23:57:46 +00:00
Mark Andrews
3ff55a3111 dns_master.c:
fix 2 infinite while loops.
		use a pool of 5 buffers for dns_name_fromtext target.
	add master_test.c:
1999-01-27 23:17:57 +00:00
Mark Andrews
ffe74cc719 Add KEY, SIG and NSAP rdata type. SIG is not complete.
Add master file reader, master.c master.h, incomplete.

	gen.c was not generate correct include file, SWITCHXXX macros were
	being terminated early if last RR type was class specific.

	Added base64 support to rdata.c.
1999-01-27 13:38:21 +00:00