Andreas Gustafsson
7cdd0b6ade
allow dbiterators to be paused at any time
2001-01-12 18:56:42 +00:00
Brian Wellington
499b34cea0
copyright update
2001-01-09 22:01:04 +00:00
Brian Wellington
6d5032f9a2
Micro-optimizations:
...
- use the DNS_NAME_INIT macro in name.c
- create dns_name_copy() and use it instead of dns_name_concatenate()
when doing a copy.
2001-01-03 00:05:15 +00:00
Mark Andrews
d30c18b17a
set ttl of subtration header
2000-12-07 23:37:52 +00:00
Mark Andrews
6fda157766
ISC_LINK_*UNSAFE -> ISC_LINK_INITAND*
2000-12-07 20:15:58 +00:00
Mark Andrews
168ec3b800
Check ttl when adding/subtracting.
...
New add flag DNS_DBADD_EXACTTTL.
2000-12-07 19:51:58 +00:00
Mark Andrews
f8abaa0fae
Used a unsigned int rather than a boolean to indicate subtrations making
...
the API more consistant between dns_db_{add,subtract}rdataset(),
dns_rdataslab_{merge,subtract}().
Adjust previous CHANGES to reflect above as this is not yet end user visible.
Add missing CHANGES entry for add/merge.
2000-12-01 01:22:45 +00:00
Mark Andrews
012c6d0b91
585. [func] dns_db_addrdataset() and and dns_rdataslab_merge()
...
now support 'exact' additions in a similar manner to
dns_db_subtractrdataset() and dns_rdataslab_subtract().
2000-11-30 13:19:09 +00:00
Bob Halley
d5c1fec74c
do not force replacement mode for singleton types
2000-11-22 01:56:02 +00:00
Bob Halley
383665e42a
Do not allow rdatasets of singleton type to have more than one rdata.
...
Check for CNAME and other data.
[RT #154 ] [RT #279 ]
2000-11-22 00:18:34 +00:00
Brian Wellington
77ac297199
Database and simple database implementations (except rbt and rbt64) are
...
registered dynamically. Simple database drivers no longer use the
keyword "simple" in named.conf - the driver name is sufficient.
2000-11-16 22:33:53 +00:00
David Lawrence
4a590cf385
Following revision 1.124, 'count' was no longer needed by bind_rdataset().
2000-11-15 23:51:13 +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
b55c30f2de
525. [func] New arguement 'exact' for dns_db_subtractrdataset(),
...
and dns_rdataslab_subtract() requesting that the RR's
must exist prior to deletion. DNS_R_NOTEXACT is
returned if the condition is not met.
2000-10-18 23:53:31 +00:00
Bob Halley
c40085afa7
Fix problems with DNAME chain processing in the resolver, and with
...
retrievals of DNAMEs from the cache. (Changes 516, 517, and 518).
2000-10-13 18:55:11 +00:00
Bob Halley
ba43c53451
Allow nodes obscured by a DNAME to be accessed if the GLUEOK bit is set.
2000-09-11 16:48:25 +00:00
Bob Halley
3ad16d4c3a
In find_closest_nxt(), do not return DNS_R_BADDB because of glue
2000-09-07 20:10:36 +00:00
Andreas Gustafsson
1ed3e846a2
make the initial iterator state of rdatasets undefined
...
so that we can detect cases where the user fails to call dns_rdataset_first()
before calling dns_rdataset_current()
2000-09-06 23:16:14 +00:00
Michael Graff
7da0286b54
get rid of isc_random_t -- use a wrapper around rand() instead that doesn't do as much work. Also, implement isc_random_jitter(), used to generate a value between a min, max, with a provided jitter value.
2000-09-06 02:40:00 +00:00
Mark Andrews
3a34b87c87
Add cache cleaning support (disabled).
2000-08-31 12:15:17 +00:00
Brian Wellington
5e387b9ce6
and more calls to DESTROYLOCK
2000-08-26 01:37:00 +00:00
Brian Wellington
fe12eb4fc2
Add dns_db_ispersistent. This call determines whether a database is
...
persistent - that is, whether it maintains itself and doesn't require
loading, dumping, and other related things.
2000-08-18 18:25:28 +00:00
Andreas Gustafsson
d56b56dbba
nodecount() returns unsigned int, not isc_boolean_t
2000-08-14 02:49:32 +00:00
Andreas Gustafsson
e02884167b
use the UNUSED() macro
2000-08-11 16:47:33 +00:00
Brian Wellington
8eb6e41bfb
A zone is now considered secure if there is a zone key at the apex.
2000-08-10 02:02:10 +00:00
David Lawrence
76c6a504d8
rootname() is no longer necessary now that the rbt will always return a
...
relative name via the find or chain APIs
2000-08-09 04:54:17 +00:00
Andreas Gustafsson
2821f5aeab
createiterator() failed to set rbtdbiter->common.db
...
to NULL before attaching it
2000-08-08 21:41:58 +00:00
Brian Wellington
83e6eb0dfe
Add routines to count the number of nodes in a database and an rbt.
2000-08-03 19:46:37 +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
David Lawrence
15a4474541
word wrap copyright notice at column 70
2000-07-27 09:55:03 +00:00
Andreas Gustafsson
398bdb2710
in deleterdataset(), set the DNS_DBADD_FORCE flag
...
when adding the deletion rdataset so that rdatasets can be deleted
regardless of their trust level
2000-07-25 01:19:51 +00:00
Andreas Gustafsson
9037893f90
add() assumed dns_trust_authsecure is the highest trust level,
...
but this is no longer the case. Thus, the DNS_DBADD_FORCE option did not take effect
if the existing data was at level dns_trust_ultimate. Since the DNS_DBADD_FORCE
option is currently used only with cached data, no actual harm has been done.
2000-07-25 01:06:01 +00:00
Mark Andrews
8c1aa8573d
308. [bug] Treat a SOA record not at top of zone as an error
...
when loading a zone. (RT #154 )
2000-07-04 04:28:44 +00:00
David Lawrence
9c3531d72a
add RCS id string
2000-06-22 22:00:42 +00:00
Mark Andrews
bcff319811
Wildcard NS records are not conceptually allowed by RFC 103[45].
2000-06-09 06:03:47 +00:00
Mark Andrews
a6733246ea
240. [func] databases now come in three flavours: zone, cache
...
and stub.
2000-06-07 02:38:41 +00:00
Andreas Gustafsson
ac940fef1b
[RT #115 ] find_closest_nxt() tried to concatenate . with .
...
when the closest NXT was owned by the root domain
2000-05-19 21:27:14 +00:00
David Lawrence
29aa703dd6
Fixed IRIX warnings:
...
"rbtdb.c", line 1579: remark(1552): parameter "now" was set but never used
"rbtdb.c", line 2888: remark(1552): parameter "version" was set but never used
by using UNUSED() rather than setting variables to unused values.
2000-05-13 20:42: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
David Lawrence
09f22ac5b0
Redundant header work, mostly removing <dns/result.h> from installed
...
headers and adding it to source files that need it.
2000-05-02 03:54:17 +00:00
Andreas Gustafsson
82ca33427b
declare arguments as UNUSED() when used in assertions only
2000-04-28 01:24:18 +00:00
Michael Graff
1911100e64
add comments about 'RETAIN'
2000-04-27 01:47:38 +00:00
Bob Halley
684ac09e11
add noexact matching option; conform to RBT API changes
2000-04-19 18:22:39 +00:00
Bob Halley
a0f9edd9a4
attach to memory context
2000-04-12 01:35:59 +00:00
Michael Graff
4195904998
s/DNS_R_/ISC_R_/ change for some codes.
2000-04-06 22:03:35 +00:00
Bob Halley
3e26dd4d1f
In free_rbtdb(), only try to put the current version if it has been allocated.
...
Replace old origin name duplication code with calls to
dns_name_dupwithoffsets() and dns_name_free().
2000-03-30 00:59:24 +00:00
Bob Halley
d1409e874b
add XXXRTH comment about CNAME and other data
2000-02-19 00:10:46 +00:00
Bob Halley
73016bd7ef
In the case where an rdataset subtraction resulted in the nonexistence
...
of the rrset, the subtraction code created a nonexistent rdataset
entry with an incorrect type (the "covers" part of the type was not
set).
2000-02-11 02:17:56 +00:00
Bob Halley
535f453de3
The zone node cleaner did least serial number cleaning too soon, which
...
could result in the incorrect deletion of the most recent version of a
node when a rollback occurred.
2000-02-11 01:51:33 +00:00