Commit graph

3258 commits

Author SHA1 Message Date
Brian Wellington
319d2971f1 When the client informs the dispatcher of a received response, have the
dispatcher copy the event instead of reusing the original one.
2001-02-10 02:00:11 +00:00
Brian Wellington
64e7f8541d optimization - if the compression table for a message is empty, don't
hash and look up each label.
2001-02-10 01:18:19 +00:00
Brian Wellington
1c1f5e1911 The root node was added to the hashtable twice, which could lead to an
infinite loop. [RT #840]
2001-02-09 18:48:57 +00:00
Mark Andrews
e911387be8 redo:
728.   [bug]           Fix comment processing on master file directives.
                        [RT# 757]
2001-02-09 14:34:52 +00:00
Mark Andrews
80aba3d49a 734. [bug] An attempt to re-lock the zone lock could occur if
the zone was shutdown during a zone tranfer. [RT #830]
2001-02-09 06:04:55 +00:00
Brian Wellington
2d6a6174f1 micro-optimizations 2001-02-09 02:13:07 +00:00
Brian Wellington
65bc8f2af8 When assigning a bucket lock to an rbt node, use the hash of the full name,
rather than the hash of the partial name stored in the node.  This more
evenly distributes nodes across locks.

This change only takes effect when DNS_RBT_USEHASH is defined, and also changes
the rbt so that the hashtable is created when the first node is created in the
tree, not after 64 nodes are added.
2001-02-09 01:26:51 +00:00
Andreas Gustafsson
97f26b88f6 removed more needless attaching and detaching of the blackhole ACL 2001-02-09 00:23:16 +00:00
Andreas Gustafsson
a349fd680c removed all code for maintaining a 'goodness' value in the adb,
since it was never used and Michael thinks 'it should probably be removed'.
2001-02-09 00:13:55 +00:00
Andreas Gustafsson
aa23a35d81 733. [bug] Reference counts of dns_acl_t objects need to be
locked but were not. [RT #801]
2001-02-08 23:30:32 +00:00
Bob Halley
22457624d3 deal with 0 TTL glue 2001-02-08 19:14:58 +00:00
Andreas Gustafsson
8ed67113ec there is no need for each dispatch to have a separate reference to
the blackhole list; they can use the blackhole list of the dispatch
manager directly. This eliminates some unsafe unlocked accesses to
the reference count of the blackhole list dns_acl_t object
2001-02-08 18:25:09 +00:00
Mark Andrews
f765672e93 731. [bug] certian zone errors could cause named-checkzone to
fail ungracefully.  [RT #819]
2001-02-08 01:52:33 +00:00
Mark Andrews
e880677f63 728. [bug] Fix comment processing on master file directives.
[RT# 757]
2001-02-07 13:24:19 +00:00
Brian Wellington
e618d503ba Remove (now unused) code for handling queries. 2001-02-07 05:11:58 +00:00
Brian Wellington
98c80a3456 do_next_response() was unlinking an event from the wrong list 2001-02-07 03:01:19 +00:00
Brian Wellington
c716477d2e don't free the structure twice (thanks, Andreas) 2001-02-05 20:29:56 +00:00
Brian Wellington
15bc0af6a1 chain_name() built the fully qualified name in a very inefficient way.
Reversing the order of the concatenations makes it significantly faster.
2001-02-05 20:07:20 +00:00
Brian Wellington
5e8ff069e2 clean up the code to determine if dns_rdata_freestruct() needs to be called 2001-02-05 19:50:42 +00:00
Brian Wellington
b7cd261f2f dns_name_concatenate(foo, NULL, bar, NULL) -> dns_name_copy(foo, bar, NULL) 2001-02-05 19:47:05 +00:00
Andreas Gustafsson
6b2f58f5c1 removed inappropriate 'Any bitstring labels are in canonical form' comments 2001-02-02 22:08:27 +00:00
Bob Halley
d6b3d06db7 Referrals whose NS RRs had a 0 TTL caused the resolver to return
DNS_R_SERVFAIL.  [RT #783]
2001-02-02 00:10:26 +00:00
Mark Andrews
8e68489885 722. [func] Allow n/named/server.cincrememtal loads to be canceled.
721.   [cleanup]       Load manager and dns_master_loadfilequota() are no
                        more.
2001-02-01 21:29:41 +00:00
Andreas Gustafsson
6983bb151a #else -> #else NOMINUM_PUBLIC 2001-02-01 21:27:10 +00:00
Andreas Gustafsson
fc16063c23 removed dns_qid_t::mctx since it was never used 2001-01-31 22:16:37 +00:00
Andreas Gustafsson
2571d4a73d make sanitation work when building into a separate build directory
directly from a CVS tree [RT #765]; also removed code for removing "#line" directives and the
comment saying that the code for removing #line directives should be removed. :-)
2001-01-31 21:34:38 +00:00
Andreas Gustafsson
c17c59662f 720. [bug] Server could enter infinite loop in
dispatch.c:do_cancel(). [RT #743]
2001-01-31 17:21:11 +00:00
Mark Andrews
ec4f7c6d0f 719. [bug] Rapid reloads could trigger an assertion failure.
[RT #743]
2001-01-31 05:22:55 +00:00
Andreas Gustafsson
8d5ec7195a new dns_master_load() option DNS_MASTER_NOINCLUDE 2001-01-30 23:12:27 +00:00
Andreas Gustafsson
651421a5db removed the "additional-data" option, since it was never
fully implemented and because it causes "internal" to be a reserved word in
named.conf, causing problems for those using "internal" as an ACL name.
Since additional-data was never documented, the user-visible aspect of the
change is:

 718.   [cleanup]       "internal" is no longer a reserved word in named.conf.
                        [RT #753, #731]
2001-01-30 22:02:31 +00:00
Bob Halley
7427490a67 Certain TKEY processing failure modes could
reference an uninitialized variable, causing the
server to crash. [RT #750]
2001-01-30 19:18:19 +00:00
Mark Andrews
aac319b506 716. [bug] The first line of a $INCLUDE master file was lost if
a origin was specified. [RT #744]
 Adjust comment.
2001-01-30 13:23:32 +00:00
Andreas Gustafsson
dfa0badebe 715. [bug] Resolving some A6 chains could cause an assertion
failure in adb.c. [RT #738]
2001-01-30 05:56:58 +00:00
Brian Wellington
63ca494e7e Added the isc_refcount_t type, which is a generic locked reference counter,
and make the rbtdb, zone, and view objects use it.
This should reduce contention on other locks, since (in the normal)
implementation, the reference count has its own lock.  In the future, it
should also be possible to implement an isc_refcount_t with atomic operations
instead of mutexes, which should also help performance.
2001-01-30 02:50:51 +00:00
Brian Wellington
b3936096b8 fix get_key_struct() definition 2001-01-27 04:33:18 +00:00
Andreas Gustafsson
9e992ecf37 further cleanup of ADB dumps 2001-01-27 02:44:35 +00:00
Brian Wellington
94baac869a 712. [bug] Sending a large signed update message caused an
assertion failure. [RT #718]

- Resetting a message should clear the TSIG/SIG(0) sections
- Rerendering a message if the first try returned USETCP should not call
  dns_message_settsigkey() again.
2001-01-27 02:28:33 +00:00
Andreas Gustafsson
fd73b3a68d fixed incorrect error message 2001-01-27 02:12:13 +00:00
Andreas Gustafsson
a618f8d5b7 suppress compiler warnings 2001-01-27 02:11:35 +00:00
Brian Wellington
35f06ab0e6 Clients now listen on sockets instead of accepting queries from dispatchers.
When a socket is shared by clients and query-source, the client hands off
responses to the dispatcher.
2001-01-27 02:08:07 +00:00
Brian Wellington
7b5172166d Waking up once a second to clean one bucket is excessive. Change the
default values (and dependencies) so that the clenup routine is called once
ever 30 seconds and cleans 8-9 buckets.
2001-01-26 03:20:58 +00:00
Brian Wellington
9f7b524522 The forwarders statements in zones & views didn't work. 2001-01-25 21:10:18 +00:00
Brian Wellington
330705066b Wrap inet_ntop() and use that in the _totext() functions. The wrapper calls
inet_ntop() and copies the output (but not the trailing null) into the buffer.
2001-01-25 20:14:42 +00:00
Andreas Gustafsson
bc85580ff8 mask message id to 16 bits explicitly 2001-01-25 13:52:32 +00:00
Andreas Gustafsson
3530e10080 commented and removed dead code 2001-01-25 13:47:59 +00:00
Brian Wellington
a12d9cfa59 710. [func] The forwarders statement now takes an optional port.
Also some assorted cleanup, which resulted in a lot of duplicated code removal.
2001-01-25 02:33:53 +00:00
Mark Andrews
1a2b3fbeb1 don't attempt to refresh while loading. 2001-01-25 02:30:21 +00:00
Brian Wellington
c6c1846361 oops, missed a function declaration 2001-01-25 00:44:29 +00:00
Brian Wellington
038a3e6bfe use dns_messageid_t instead of isc_uint32_t in a few places. [RT #703] 2001-01-25 00:42:31 +00:00
Mark Andrews
3bed75bb2d silence compiler 2001-01-24 07:12:56 +00:00