Commit Graph
25079 Commits
Author SHA1 Message Date
Bob Halley 000ee57965 Deal with DNS_R_UNCHANGED cases, where we've tried to add data to the cache
but have found that the cache contents are better.
1999-10-19 19:52:56 +00:00
Andreas Gustafsson 8e99b9ed65 warn about failed zone loads 1999-10-19 19:14:14 +00:00
Bob Halley a1ab2f1fde update 1999-10-19 19:12:52 +00:00
Michael Graff a68a847a76 don't include tkey.o/c yet, since the source isn't there. 1999-10-19 17:54:55 +00:00
Brian Wellington 15660bccc1 Lock the reference count and deleted flags in a tsig key 1999-10-19 15:34:39 +00:00
Bob Halley de13dac233 handle negative answers with CNAME/DNAME chains 1999-10-19 02:33:42 +00:00
Michael Graff 30251e07d1 snapshot ; external and internal reference counts are separated out,
and everything but fetches work.
1999-10-19 01:37:22 +00:00
Michael Graff 78b2f25c9a add isc_mem_setname() 1999-10-19 01:22:39 +00:00
Brian Wellington 25811a89c6 Added dst_digest (a wrapper around digest functions), and dst_s_md5 (an
internal wrapper around MD5).  Modified hmac-md5 code to use dst_s_md5.
1999-10-18 21:35:46 +00:00
Bob Halley b500110b22 preliminary DNAME support 1999-10-18 21:05:49 +00:00
Bob Halley 65c025fdf2 The wildcard code added in 1.69 broke DNAMEs at the zone origin. 1999-10-18 21:04:04 +00:00
Bob Halley 8a9f679d60 Ensure version is always NULL for cache databases.
Plug a memory leak in the DNAME code.
1999-10-18 21:02:48 +00:00
David Lawrence e9dd5da241 use isc/netdb.h instead of netdb.h 1999-10-18 00:23:07 +00:00
David Lawrence 13eaef2df2 more INSISTs for proper range before passing integers to isc_buffer_putuint16 1999-10-17 22:40:05 +00:00
David Lawrence 7c03787452 INSIST uint16 range for a call to dns_compress_rollback with int argument.
Cast int c to char c; it was already range limited.

Cast isc_buffer_uint16 int argument to uint16; it was already range checked.

Cast isc_buffer_uint8 int argument to uint8; it was already range checked.
1999-10-17 22:34:16 +00:00
David Lawrence c866769e66 more INSISTs for proper range before passing integers to isc_buffer_putuint16 1999-10-17 22:31:03 +00:00
David Lawrence ea872078bf define isc_interval_zero and isc_time_epoch 1999-10-17 22:26:09 +00:00
David Lawrence f0131db6c3 INSIST rdata.length < 65536 before using it in a call to isc_buffer_putuint16.
I was not entirely sure that all paths to the places where the INSISTS are
would have guaranteed that the unsigned int rdata.length was in the range
of an unsigned short.

Cast bitshifts to isc_uint8_t in encode_win32(); yes, dear compiler, we know
there is a loss of precision.  That's exactly what we want to happen here.
1999-10-17 22:18:45 +00:00
David Lawrence 49d13506ed INSIST rdata.length < 65536 before using it in a call to isc_buffer_putuint16.
I was not entirely sure that all paths to the places where the INSISTS are
would have guaranteed that the unsigned int rdata.length was in the range
of an unsigned short.
1999-10-17 21:33:03 +00:00
William King e5966f9b9a added test for signature stability wrt algorithm changes, etc 1999-10-17 21:18:57 +00:00
William King c377272e65 test data for test 2 1999-10-17 21:18:13 +00:00
William King 5ed06e4003 test data for test 2, signature stability 1999-10-17 21:16:34 +00:00
Bob Halley d680c5e7d5 Do not free client->query.qname prematurely.
Detach from our fetch as soon as it is done.  (Not doing this meant we
couldn't recurse again when restarting.)
Fix some bugs in the multiple question code that were causing qtype to be
set incorrectly when restarting after recursion.
1999-10-17 19:27:04 +00:00
Bob Halley 2d47cd4aa2 add CHAINING attribute 1999-10-17 19:23:14 +00:00
Bob Halley 345a84c9f1 add dns_name_print 1999-10-17 19:22:50 +00:00
Bob Halley fcddaadc8e CNAME support in positive answers. 1999-10-17 19:21:43 +00:00
Bob Halley c144a41078 CNAME signature finding could fail in cache_find(). 1999-10-17 19:21:02 +00:00
Bob Halley 2f6040ed67 Store CNAMEs and their SIGs (if any) in their own name structure on the
name list.  I.e. do not mix CNAMEs with non-CNAME data.  Do the same thing
for DNAMEs.
1999-10-17 19:20:20 +00:00
Bob Halley 238c9f5aaa qtype was not restored correctly after recursion. 1999-10-16 20:50:33 +00:00
David Lawrence 5d5ea8cf11 more descriptive "nuking" message 1999-10-16 20:35:19 +00:00
David Lawrence 92712379fc Updated documentation for chains, level_matches and level_count.
Updated documentation for dns_rbt_findnode to describe more what
happens with various return values, and that the chain points to the
DNSSEC predecessor for all non-error returns.

New documentation for dns_rbtnodechain_{prev,next}.

Updated documentation for other dns_rbtnodechain_*.
1999-10-16 20:34:52 +00:00
Bob Halley 692cae8634 The authority section wasn't being marked for caching. 1999-10-16 20:34:04 +00:00
David Lawrence 401fc772b1 Major:
deletion bug fixed that could orphan a large section of the tree.  the
  "parent" argument to rotate_left or rotate_right was sometimes not
  really the parent of the rotation vertex, because the parent's parent
  was not correctly reidentified after a rotation done on the parent.

Minor:
  forward static declaration of dns_rbt_printnodename, useful in debugging.

  level_matches set correctly for exact match in dns_rbt_findnode (it was
  one too few, but this was minor because as yet level_matches is only
  used by other code when a partial match was made.

  insist 'node' is a child of 'parent' in rotate_left and rotate_right

  compare a pointer explicitly to NULL that was just "if (pointer)"

  "would would" in a comment changed to just one "would".
1999-10-16 19:44:54 +00:00
James Brister 80bd254851 Updated use of magic numbers. 1999-10-16 01:34:30 +00:00
Bob Halley a2250d2462 Negative caching support. 1999-10-16 01:04:12 +00:00
Bob Halley 3d7de79355 clear trust 1999-10-16 00:49:53 +00:00
Bob Halley 1aaa8e40df Add support for negative cache entries to add(). 1999-10-16 00:49:33 +00:00
Bob Halley 3706171484 Partially working negative caching. 1999-10-16 00:48:34 +00:00
Bob Halley 66b2f0d4bf Test name attributes with DNS_NAMEATTR_NCACHE, not DNS_RDATASETATTR_NCACHE.
Store the 'used' region, not the 'available' region!
Set trust.
1999-10-16 00:47:54 +00:00
Bob Halley 980dc59626 Do not try to dump negative cache entries. 1999-10-16 00:45:59 +00:00
Michael Graff 86944a4c80 snapshot; everything works other than fetches and database lookups. 1999-10-16 00:38:21 +00:00
Michael Graff baf8179150 use DNS_EVENT_ADBNAMEDELETED to indicate a name was pulled out from under a request. 1999-10-16 00:37:55 +00:00
William King 14500999f2 remove NOKEY flag 1999-10-15 21:23:51 +00:00
William King 0fb72a41e5 test 7 data 1999-10-15 21:21:39 +00:00
William King 3adfe0fdbc added another KEY RR case 1999-10-15 21:20:27 +00:00
Bob Halley ad6a3ba5ef Start ncache support 1999-10-15 20:51:38 +00:00
Bob Halley 9ad0ebf65e Start dealing with the DNS_R_UNCHANGED case when adding rdatasets. 1999-10-15 20:51:19 +00:00
Bob Halley e0df061f35 only ncache marked names and rdatasets 1999-10-15 20:50:19 +00:00
Bob Halley cd02757774 add negative caching result codes 1999-10-15 20:49:33 +00:00
Bob Halley 6bd80c2c4e Ignore negative cache entries in ANY query responses. 1999-10-15 20:48:34 +00:00