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
James Brister
d549c37348
Support ondestroy notfication of databases.
2000-02-10 16:09:01 +00:00
Brian Wellington
6cac2e0f7a
dns_db_deleterdataset can now delete SIG sets.
2000-02-08 19:25:37 +00:00
Bob Halley
7d32c065c7
update copyright
2000-02-03 23:50:32 +00:00
Bob Halley
2d8ac40e14
Wildcard matching was broken.
2000-02-02 21:22:09 +00:00
Bob Halley
64e829fffb
allow db adds to be forced
2000-01-25 19:26:45 +00:00
Bob Halley
3baef4d529
Detaching an rdataset after the last reference to its database had been
...
detached did not trigger an exit check if the bucket's reference count went
to zero.
2000-01-21 02:43:07 +00:00
Bob Halley
48870cbd6e
eliminate compiler warning
2000-01-18 20:57:06 +00:00
Mark Andrews
f6c1a76e91
Cached NXDOMAIN for type ANY queries should be bound to a rdataset.
1999-12-23 06:50:51 +00:00
Michael Graff
3ddd814a97
dns_result_t is no more. s/dns_result_t/isc_result_t/ -- more later, when I need a break.
1999-12-23 00:09:04 +00:00
Mark Andrews
491319c34c
dbiterator_pause (dns_dbiterator_pause) can now pause a interator after
...
hitting end of chain. If we have a node increase its reference count
and set paused flag.
1999-12-22 03:01:02 +00:00
Michael Graff
58aaab3687
isc_stdtime_get() now returns void, not isc_result_t.
1999-12-16 23:29:07 +00:00
Michael Graff
440be4c866
move util.h to <isc/util.h>
1999-12-16 22:24:22 +00:00
Bob Halley
b65c1b247f
add DNS_DBFIND_PENDINGOK support
1999-11-23 20:53:17 +00:00
Bob Halley
b223821425
ANY queries should not match negative cache entries
1999-11-09 02:27:46 +00:00
Michael Graff
b06ac13313
check for NULL before filling in retured node pointer.
1999-11-04 18:42:27 +00:00
Bob Halley
8d298aca1c
suppress glue in most cache retrievals; get rid of NXGLUE
1999-10-25 21:19:02 +00:00
Bob Halley
bad8294771
add const to filename args
1999-10-25 18:42:09 +00:00
Bob Halley
9acbfdb6a2
add dns_db_findzonecut()
1999-10-21 17:50:36 +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
c144a41078
CNAME signature finding could fail in cache_find().
1999-10-17 19:21:02 +00:00
Bob Halley
1aaa8e40df
Add support for negative cache entries to add().
1999-10-16 00:49:33 +00:00
Bob Halley
ad6a3ba5ef
Start ncache support
1999-10-15 20:51:38 +00:00
David Lawrence
1398d0a72d
chain->level_matches can be -1 in find_deepest_zonecut() if the node that
...
was found is in the topmost tree; so compare > 0 rather than != 0.
cast RBTDB_RDATATYPE_{BASE,EXT}() to dns_rdatatype_t to shut up NT's CL.
The value of each is already suitably bit masked to dns_rdatatype_t size.
#undef IGNORE before making a new definition; CL's winbase.h defines it.
2nd parameter of allocate_version changed from "unsigned int serial" to
"rbtdb_serial_t serial" to have proper sizing when compiled as rbtdb64.c.
cast header->type in two function calls to dns_rdatatype_t.
1999-10-12 14:14:57 +00:00
Bob Halley
3c24b4ebae
addrdataset() now returns the existing rdataset in addedrdataset if the
...
result is DNS_R_UNCHANGED.
Adjust find_deepest_zonecut() to deal with the new treatment of level_matches
by the RBT code. These changes, combined with the RBT changes, fix a bug
where the wrong delegation was returned if the partial match was a terminal
node in the RBT.
Deal with wildcards of the form *.<zone_origin>. This stops us from
treating the zone top as a delegation point if wildcards are present.
delegating_type() was erroneously returning true for type NS records in a
cache database.
1999-10-11 19:23:48 +00:00