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

350 Commits

Author SHA1 Message Date
Michael Graff
c45abd11bb gen.c needs LIBS for NetBSD 1999-04-29 05:32:41 +00:00
Michael Graff
d688386936 checkpoint 1999-04-28 03:19:58 +00:00
Mark Andrews
1d6572f9d4 adjust #ifdef labels 1999-04-28 03:16:50 +00:00
Mark Andrews
a41d348e14 Local compression fixes to use rbt bitstrings. 1999-04-28 03:03:56 +00:00
Michael Graff
f9df80f434 snapshot work 1999-04-27 02:24:11 +00:00
Michael Graff
9178881e1b start on message.c 1999-04-26 21:59:36 +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
f53facef17 fix search_name initialization problems 1999-04-24 02:03:25 +00:00
Bob Halley
bd53af8229 add dns_name_clone() 1999-04-24 02:03:07 +00:00
David Lawrence
93b01c7295 Support for bitstring labels. 1999-04-23 04:59:41 +00:00
David Lawrence
605ae28c5a dns_name_split() 1999-04-23 04:58:43 +00:00
Michael Graff
89a90040d5 message rework 1999-04-22 20:12:44 +00:00
David Lawrence
55f6206532 a better fix than the last for dns_rbtnodechain_next 1999-04-22 14:36:30 +00:00
David Lawrence
2292bceadf tried to ascend a level in dns_rbtnodechain_next when at top level 1999-04-22 14:16:52 +00:00
Andreas Gustafsson
2ff9be15ef cut-and-paste bug in dns_rdatasetiter_t documentation 1999-04-21 08:16:07 +00:00
Bob Halley
302d9bebb5 require added rdatasets to be in the same class as the database 1999-04-20 22:31:39 +00:00
Bob Halley
349bc6f0fb add dbtable 1999-04-20 22:27:03 +00:00
Bob Halley
d94c5ba48b add class; minor cleanups 1999-04-20 22:26:50 +00:00
Bob Halley
48481c9b6e add dns_db_class() 1999-04-20 22:26:12 +00:00
David Lawrence
acab2c8094 Fixed a bug that resulted when a callback said to halt a search; the
level_count was decremented below zero because the found node had not
been put in the level history before the callback broke out of the search.

Added a bunch of INSISTS()s to try to catch something like that in the future.
1999-04-20 22:01:00 +00:00
Bob Halley
c91195ca6d switch from chain.level_count to chain.level_matches 1999-04-20 18:16:27 +00:00
David Lawrence
9efc87f857 Added level_matches to chains for rbtdb support. 1999-04-20 18:11:07 +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
b8862d5130 add dns_db_attachversion() 1999-04-19 22:51:48 +00:00
David Lawrence
f8dd2e939e Make sure chain_name and dns_rbtnodechain_current do not try to do
NODENAME() on a NULL chain->end (such as after the chain has been reset.)
1999-04-17 15:43:10 +00:00
David Lawrence
c234ac00b8 The _real_ fix for the callback_name generation problem in findnode.
It wasn't that chain->end was being included (it should have been) but
that the chain had already been expanded to point down a level before
the call to chain_name that needed the state of things before the
descent.
1999-04-17 15:19:45 +00:00
Bob Halley
ca3b094a06 add not-already-paused requirement to pause method 1999-04-17 01:37:12 +00:00
Bob Halley
c1737c417d db iterator support 1999-04-17 01:36:42 +00:00
Bob Halley
6bb7b678f5 do not pass the version to dns_db_createiterator() 1999-04-16 21:28:00 +00:00
Bob Halley
a8166bf1be versions are no longer part of dbiterators 1999-04-16 21:27:26 +00:00
Bob Halley
828870c41a lint 1999-04-16 21:26:41 +00:00
David Lawrence
678bd7ab4b Fixed handling of the name generation for callbacks in findnode. 1999-04-16 21:01:58 +00:00
David Lawrence
c40654ee44 Made addnode and findnode aware of the case where the result of the
comparison is "subdomain" but the full name at the existing node is
not in common with the input name -- when the last label is a bitstring
with some common bits.
1999-04-16 18:30:03 +00:00
David Lawrence
ec80744ad6 The ADD_ANCESTOR macro now checks for the required memory, since it is used
in a lot of places now.  It _returns_ if it fails to get the necessary memory,
so any function using it should be returning a dns_result_t.

chain_name moved toward start of file, for inlining by findnode.

move_chain_to_last broke out some functionality of dns_rbtnodechain_last
(which now calls it), also for the benefit of findnode.

dns_rbtnodechain_init on the chain used by addnode.

All of the new_foundname concatenation gook was removed from findnode,
which now just sets foundname by using chain_name.

The chain set up by findnode points to the predecessor when the searched
for name is not found.

nodechain_current was changed to take name, origin and node parameters while
returning a dns_result_t.  This allows the chain returned by findnode to
be named.

The nodechain_{first,last,prev} use nodechain_current to set their
names and origins.  nodechain_next does not need it because it will never
have to do the "set the origin to '.' and remove '.' from names in the
root level" bit.  The root level will never be more than one name, and
everything in the megatree is a successor to that node, so 'next' never
reaches the root level.
1999-04-16 16:12:15 +00:00
Bob Halley
066ae48be3 include string.h to get memset() prototype 1999-04-14 17:40:22 +00:00
David Lawrence
6d74580f08 Documentation for chains. 1999-04-14 14:39:15 +00:00
David Lawrence
40526b8cbe Oops, untested change of removing DNS_NAMEATTR_ABSOLUTE from names
in top level tree during chain moves didn't actually compile as written.
Surprise.
1999-04-14 14:12:34 +00:00
David Lawrence
dafabe62df Changed a goto into a conditional block that works the same way. 1999-04-14 12:29:39 +00:00
David Lawrence
1adfd0a911 Top level tree always has an origin of "." and all names are relative to "."
in it.

chain _first and _last now work.

Other stuff I can't recall.  Lots of little fiddling with chains.
1999-04-14 12:03:18 +00:00
Mark Andrews
a2b97d054f Convert compress_find to use PARTIAL_MATCH result. 1999-04-14 06:03:15 +00:00
Bob Halley
405a4d66d7 Always lock the dbtable when operating on it.
Attach and detach from the db.
Simplify the API by not requiring the name to be specfied for add and remove,
and by not requiring the db to be specified for removedefault.
Calls to dns_rbt_findname were failing because stored_data was not initialized
to NULL.
1999-04-14 02:37:08 +00:00
Bob Halley
8259b7b150 API simplification 1999-04-14 02:33:19 +00:00
Mark Andrews
95f78a208a Bring local compression into line with draft 04.
'dns_rootname' should be marked read_only.
	Supply 'dns_rootname' with offsets.
1999-04-13 05:50:12 +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
c9a8413dcb Require that only the last reference of a writable version may be committed. 1999-04-13 01:54:02 +00:00
Bob Halley
a3e2ec2dfe dns_db_deleterdataset() needed the same REQUIRE fix as dns_db_addrdataset() 1999-04-13 01:52:58 +00:00
Bob Halley
46d74dd316 fix typo 1999-04-10 00:34:18 +00:00
David Lawrence
675f7c879a Do not return the full name when chain iterating, just relative to the origin. 1999-04-09 22:55:20 +00:00
David Lawrence
c9eae31249 That last checkin was dain-bramaged, because I was thinking solely of
what happens at ".".  For most origins, they do NOT include themself in
a zone file ... that is, the record for "rc" appears in the $ORIGIN for
".vix.com."
1999-04-09 22:49:46 +00:00