Commit graph

4967 commits

Author SHA1 Message Date
Bob Halley
d911284333 add support for minimal-responses 2001-03-14 21:53:29 +00:00
Bob Halley
9ac88d91b4 Simplify some code in protocol_setvalue(), eliminating the "sigsize"
variable which was causing a compiler warning.
2001-03-14 17:59:25 +00:00
Brian Wellington
2f02f32f04 exit(1), not exit(-1) 2001-03-14 06:31:17 +00:00
Andreas Gustafsson
52c17deb58 some variables which should have been static weren't 2001-03-14 00:30:06 +00:00
Mark Andrews
b01cd0d5c7 Use dns_dispatch_getlocaladdress() to retrieve the local address to bind too. 2001-03-13 05:49:58 +00:00
Mark Andrews
a674e7ecec add dns_dispatch_getlocaladdress(). 2001-03-13 05:48:41 +00:00
Andreas Gustafsson
b31c8af1d9 name libisccfg logging functions consistently with
other libisccfg functions [RT #1020]
2001-03-13 03:04:09 +00:00
Brian Wellington
d03fd76636 add a cast [RT #1013] 2001-03-12 22:39:36 +00:00
Brian Wellington
461260ac15 add casts [RT #1017] 2001-03-12 22:27:15 +00:00
Mark Andrews
a65826596f Add const to declaration of start_directory(); 2001-03-12 01:05:52 +00:00
Andreas Gustafsson
dd57718608 #include <isc/print.h> 2001-03-09 23:38:00 +00:00
Brian Wellington
e608c9829f - Detect selective forwarding errors in the configuration checker.
- Clean up selective forwarding configuration.
- Fixed a few minor unrelated bugs in the configuration checker.
2001-03-09 19:07:30 +00:00
Bob Halley
c6237585d8 Fix some typos in the non-threaded version of isc_rwlock_trylock() that
were preventing compilation.
2001-03-08 19:52:13 +00:00
David Lawrence
f3432e1b48 moved INADDR_LOOPBACK definition to lwres/net.h, because it was causing
redefinition warnings on multiple platforms
2001-03-08 16:09:41 +00:00
David Lawrence
2283923028 a last minute edit added one too many conditions for putting a node on the
deletions list
2001-03-08 03:31:29 +00:00
David Lawrence
85e80b5b69 Remove name/node from the rbtdb in no_references().
Iterator uses 'cleaning' flag to expire nodes.
2001-03-08 01:35:27 +00:00
David Lawrence
03609d0b8f Use a cleaning iterator (dns_dbiterator_setcleanmode()).
Reworked some overmem thread handling.
2001-03-08 01:22:48 +00:00
David Lawrence
31d3e8d2fe new function, dns_dbiterator_setcleanmode(), which enables cleaning
in the rbtdb
2001-03-08 01:16:06 +00:00
David Lawrence
a09c545af1 join_nodes is removed; node joining is no longer done at any time, because
it corrupts active chains and can change the data at a node which
someone might be using.  (In the latter case, though the full name from
the root was still intact, and the ->data member was not altered, other
values like the partial name ndata and offsets could change.)

New functions dns_rbt_fullnamefromnode() and dns_rbt_formatnodename(),
for getting a dns_name_t and filling a char buffer, respectively, with
the complete name of a node from the root.

rbtnode.is_root was being treated as isc_boolean_t even though it was bitfield
of width 1.  This worked fine, but wasn't consistent with ISC style, and
would have puked if someone decided to change isc_true from 1 (unlikely
as that is).  Yeah, anal, I know.
2001-03-08 01:08:39 +00:00
Brian Wellington
8b9b498009 Check for duplicate zone and key statements. Note that duplicate server
and view statements are not detected, because they're harder.
2001-03-08 00:55:50 +00:00
David Lawrence
a82fd2c01b added non-blocking locking, isc_rwlock_trylock() 2001-03-08 00:55:15 +00:00
Andreas Gustafsson
d55642259e use a simpler, faster hash function 2001-03-07 23:52:16 +00:00
Brian Wellington
0783aab720 allow-update-forwarding is not allowed in stub zones. 2001-03-07 23:36:26 +00:00
Andreas Gustafsson
123a3dddc9 772. [bug] Owner names could be incorrectly omitted from cache
dumps in the presence of negative caching entries.
                        [RT #991]
2001-03-07 22:30:21 +00:00
Brian Wellington
5ea0d11ca4 771. [cleanup] TSIG errors related to unsynchronized clocks
are logged better.
2001-03-07 20:53:32 +00:00
Andreas Gustafsson
fc04bb9d98 lame server on ... -> lame server resolving ... [RT #641] 2001-03-07 18:03:07 +00:00
Brian Wellington
d25dd5b056 770. [func] Add the "edns yes_or_no" statement to the server
clause. [RT #524]
2001-03-06 23:54:37 +00:00
Brian Wellington
3fccea030d #include <lwres/net.h> 2001-03-06 23:12:15 +00:00
Brian Wellington
ac3f9fa1ec remove unnecessary #includes 2001-03-06 23:02:04 +00:00
Mark Andrews
9ac7076eba 769. [func] Improved error reporting when parsing rdata. [RT #740]
Two new error codes.  Also push back the last token, if it makes
sense to do so, so that it gets printed in the error message using
RETTOK macro, rather than straight return or RETERR.
2001-03-06 22:11:18 +00:00
Brian Wellington
93e66a44a0 remove #ifdef REENTRANT 2001-03-06 21:46:03 +00:00
Andreas Gustafsson
2c476880d6 parse_sockaddrsub() assumed current token was string
token withouth checking that it actually was; reformatted for
80 columns
2001-03-06 19:13:01 +00:00
Brian Wellington
72b7d215f7 The directory option didn't have the CFG_CLAUSEFLAG_CALLBACK bit set, so the
callback wasn't executed. [RT #978]
2001-03-06 18:17:52 +00:00
Mark Andrews
5aa9a23af5 MANYERRORS would cause the next line to be skipped if dns_rdata_fromtext failed. 2001-03-06 13:32:42 +00:00
Brian Wellington
2eb3dafdcf Add the socket flag ISC_R_NORETRY, which makes the socket code treat
a soft error as a hard error on send (that is, not retry it).  It also
modifies the code calling sendmsg() to retry on EINTR.
2001-03-06 01:23:03 +00:00
Brian Wellington
56ea2e19a2 add a cast [RT #974] 2001-03-05 23:14:03 +00:00
Brian Wellington
438b80a31b Remove the old configuration parser 2001-03-05 22:49:33 +00:00
Brian Wellington
5e2f472561 add casts [RT #974] 2001-03-05 22:39:57 +00:00
Brian Wellington
e43b9a2005 move compression context create/delete into the caller of the message
rendering functions.  This reduces the size of the message object.
2001-03-05 21:15:47 +00:00
Brian Wellington
be066f0629 Put 4 offsets in a msgblock, not 8. offsets are big enough that this helps.
Also remove an unused variable.
2001-03-05 20:12:49 +00:00
Brian Wellington
5f8b996a81 Reduce the number of objects preallocated in the message, which reduces
the per-recursive-client memory.
2001-03-05 20:06:10 +00:00
Danny Mayer
943322a123 Remove LIBISC_EXTERNAL_DATA usage 2001-03-05 18:47:00 +00:00
Danny Mayer
8096fe1df5 put function declaration on new line 2001-03-05 18:20:24 +00:00
David Lawrence
c56c28c3f2 grammatical typo in comment 2001-03-05 12:34:02 +00:00
Brian Wellington
6893a1ee93 fix more bugs 2001-03-04 21:18:30 +00:00
Brian Wellington
b3eac7c50c #include <config.h> 2001-03-04 18:38:13 +00:00
Brian Wellington
e1fc1c580b consolidate duplicated code 2001-03-03 23:09:23 +00:00
Brian Wellington
dd741aefc3 check that 'max-cache-size' is not 'default' 2001-03-03 23:05:23 +00:00
Andreas Gustafsson
3ee9853eb4 return sizes as 64-bit integers, not strings 2001-03-03 02:18:13 +00:00
Andreas Gustafsson
0d453b0ef2 'versions' and 'size' are not log channel clauses 2001-03-03 01:08:02 +00:00