2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

618 Commits

Author SHA1 Message Date
Bob Halley
7837d14621 add dns_rdataset_count() 1999-09-21 20:40:42 +00:00
Bob Halley
e64e605ed6 bind_rdataset() was not setting the trust field 1999-09-14 20:05:16 +00:00
Bob Halley
870288a1fa DNS_R_NXGLUE 1999-09-13 18:27:26 +00:00
Bob Halley
90c2adec84 zone_findrdataset() could cause a core dump 1999-09-08 16:11:31 +00:00
Bob Halley
0b157747b3 findrdataset can now return a sig 1999-09-08 01:10:08 +00:00
Bob Halley
b3a569d85c rdataset_clone was broken 1999-09-07 23:05:20 +00:00
Bob Halley
b3e2e7c4d6 add dns_db_issecure() 1999-09-07 18:12:11 +00:00
Bob Halley
065273f52a add _last, _prev, and _seek for dbiterators 1999-09-02 16:43:45 +00:00
Bob Halley
732e0731de SIG support 1999-08-31 22:14:06 +00:00
Andreas Gustafsson
6c2add5009 don't test cache databases for secure status 1999-08-27 12:01:00 +00:00
Bob Halley
5e3bbdb349 Improve comments on NXT finding. 1999-08-26 17:56:12 +00:00
Bob Halley
549b6394e0 NXDOMAIN NXT support 1999-08-26 07:14:06 +00:00
Bob Halley
9c99607514 secure zone status; return NXT if NXRRSET 1999-08-19 20:45:49 +00:00
Bob Halley
77a3409a66 addrdataset was overriding the merge flag 1999-08-19 17:50:29 +00:00
Bob Halley
599f858e51 add wildcard support 1999-08-12 07:49:58 +00:00
Bob Halley
b7a1d692a1 findnode() result code was still wrong. 1999-08-11 22:08:44 +00:00
Bob Halley
176f7a135e findnode() had design legacies from an older version of the RBT API. It
also failed to handle the case where it had discovered that a node didn't
exist, had unlocked and relocked the tree (into write mode), and then had
attempted to add the node and got DNS_R_EXISTS as the result.  (I.e. someone
beat us in the race to create the node.)  In this case, an error would have
been returned.  The correct behavior is to succeed (being sure to increment
the node reference count).
1999-08-11 22:06:21 +00:00
Bob Halley
7d44d8aacd add beginload and endload support 1999-07-30 23:32:19 +00:00
Bob Halley
1c724c986d add rdataset cloning 1999-07-13 01:50:22 +00:00
Bob Halley
c6ed713695 rdataset disassociate now returns void 1999-07-03 20:58:58 +00:00
Andreas Gustafsson
87c5f9ae6e subtractrdataset() failed to initialize subresult to NULL 1999-06-30 13:22:44 +00:00
Bob Halley
c95819d75d If the first record in a header chain was marked IGNORE, add() would
incorrectly treat it as if the IGNORE attribute were not set, and the add
would not work correctly.  Rdatasets marked IGNORE are now ignored.

subtractrdataset() also failed to ignore rdatasets, and didn't cover the
case where the rdataset was marked as nonexistent.
1999-06-23 19:18:51 +00:00
Bob Halley
109b0ba17f fix typo 1999-06-18 23:18:50 +00:00
Bob Halley
883efd713c Don't return DNS_R_UNCHANGED from load callback 1999-06-18 22:16:06 +00:00
Andreas Gustafsson
fffba6a14b dns_rbt_addnode() was sometimes called with *nodep != NULL 1999-06-17 17:08:18 +00:00
Bob Halley
e4d0c58cef lint 1999-06-17 00:40:55 +00:00
Bob Halley
4f7990b59b untested dns_db_subtractrdataset() 1999-06-17 00:31:58 +00:00
Bob Halley
ca67883a66 cache trust level support 1999-06-16 23:47:09 +00:00
Bob Halley
a7e185ff3f Add dns_db_subtractrdataset().
Add DNS_R_UNCHANGED results for dns_db_{add,delete}rdataset().
Add merge flag to dns_db_addrdataset().
The way add and delete work should now match the .h file comments.
1999-06-16 21:02:17 +00:00
Bob Halley
41484be055 Had ISC_R_SUCCESS instead of DNS_R_SUCCESS 1999-06-15 20:20:12 +00:00
Andreas Gustafsson
5fc7ba3e1a added dns_db_dump(), $DATE, and supporting changes 1999-06-08 10:35:23 +00:00
Bob Halley
480ad611fe Allow a dbiterator to be restarted (with dns_dbiterator_first()) so long
as an error has not occurred.
Have dns_dbiterator_first() return DNS_R_NOMORE if the tree is empty.
1999-05-10 21:21:55 +00:00
Bob Halley
6e8ec359a4 add expirenode support 1999-05-06 00:32:32 +00:00
Bob Halley
7f705ac9a2 addrdataset now optionally returns the added rdataset 1999-05-05 22:57:20 +00:00
Bob Halley
a2d6900e46 dbiterator_current was incorrectly returning DNS_R_NEWORIGIN in some cases 1999-05-05 16:52:12 +00:00
Bob Halley
7d610faf31 cache_zonecut_callback() and find_deepest_zonecut() did not check staleness 1999-04-30 22:01:26 +00:00
Bob Halley
c91195ca6d switch from chain.level_count to chain.level_matches 1999-04-20 18:16:27 +00:00
Bob Halley
292c7d395e do not try to append "." to "." 1999-04-19 23:18:08 +00:00
Bob Halley
d25999ff03 add attachversion; fix rdatasetiterator problem 1999-04-19 22:52:25 +00:00
Bob Halley
c1737c417d db iterator support 1999-04-17 01:36:42 +00:00
Bob Halley
f2fbcd9195 Version locking fixes:
The commit_ok and changed_list were sometimes being accessed without
	holding the lock.
	Comments in structure.
Do not allow an rdataset to be added to a non-writer version.
Do not allow closeversion() to commit a writer version unless the ref count
is one.
We were not incrementing the version ref count when creating an rdataset
iterator.
1999-04-13 01:58:17 +00:00
Bob Halley
063a4a82f6 Since rollback_node() no longer frees rdatasets, we must mark the node as
dirty if anything was rolled back, because otherwise the node cleaning
routine will not run when the node reference count becomes 0.
1999-04-09 19:25:55 +00:00
Bob Halley
88c2d3ad0d Eliminate the "prev" pointer in the rdataset header.
rollback_node() incorrectly required that node->references == 0.  We cannot
assume that a node has no references when an update is rolled back.  We now
mark any rolled back rdatasets with the RDATASET_ATTR_IGNORE attribute.  When
the node eventually has a zero reference count, IGNOREd rdatasets will be
cleaned up.  In the meantime, they will be ignored.
1999-04-09 19:18:04 +00:00
Bob Halley
0b1f55d73f Pass time to routines which add or create rdatasets.
Add TTL aging and removal of stale rdatasets (cache databases only).
1999-04-09 01:12:30 +00:00
Bob Halley
95e0ab8284 add glue validation 1999-04-06 04:15:29 +00:00
Bob Halley
0990426ddf fix some locking problems 1999-04-05 23:59:26 +00:00
Bob Halley
fd03e61541 In zone_find(), deal with the ickiness when the desired name is a delegation
point.  Specifically, we return a delegation in this case, except if glue is
OK, or if the caller is looking for NXT or KEY records.
SIG records are going to be a special case, so do not deal with them in the
zone find routine.
1999-04-05 20:51:50 +00:00
Bob Halley
10e905959e When searching a cache db, we did not look for an NS record at the node, so we
sometimes did not find the deepest zone cut.  E.g. If you look for A records at
"com." then you should get a delegation for "com." and not one for ".".
In the various rdataset find routines, we sometimes attempted to bind the
rdataset even if the rdataset pointer was NULL.
Remove inline from a few functions.  Add inline to a few others.
1999-04-02 03:37:24 +00:00
David Lawrence
da1eb108c6 rbtnode's callback member renamed find_callback. 1999-04-01 15:57:48 +00:00
Bob Halley
1b90a27c4d Implement zone and cache versions of dns_db_find().
Add incomplete and not-yet-working dbiterator implementation.
Improve node reference count handling.
Opening and closing the current version more than once was breaking
due to incorrect garbage collection.
Some rbtdb values had not been getting initialized.
Improvements to add procedure.
1999-04-01 04:11:33 +00:00