Commit Graph

4707 Commits

Author SHA1 Message Date
Brian Wellington
dd66e6306b Remove isc_socket/[send|recv]mark, which were never used. 2001-01-26 23:17:26 +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
Damien Neil
dfb0717d75 - Receive and send operations on UDP sockets no longer need to acquire
the socket lock.  (Assuming the operation succeeds immediately, and doesn't
need to be queued.)

- Communications with the watcher thread tweaked to reduce the need for
locking.
2001-01-25 22:25:10 +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
b586eb4408 revert half of 711. - there was no off by one error in the v6 case,
only in the v4 case
2001-01-25 20:10:02 +00:00
Brian Wellington
1ac2c28488 711. [bug] The libisc and liblwres implementations of
inet_ntop contained an off by one error.
2001-01-25 19:39:48 +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
Damien Neil
3c31899857 Fix warning in the overrun detection code. 2001-01-25 01:38:01 +00:00
Damien Neil
823eed5ea9 Made the internal malloc() optional, selected by the
ISC_MEM_USE_INTERNAL_MALLOC preprocessor constant.
2001-01-25 01:18:00 +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
Brian Wellington
f6478f5e44 formatting & macro updates 2001-01-24 21:12:48 +00:00
Mark Andrews
3bed75bb2d silence compiler 2001-01-24 07:12:56 +00:00
Bob Halley
40fdf87153 Deal with TTL 0 ANY and SIG queries. 2001-01-24 02:40:19 +00:00
Brian Wellington
46c3b3f6e1 isc_uint16_t -> dns_keytag_t in many places; dns_keytable_findkeynode
was casting incorrectly. [RT #664]
2001-01-24 02:23:02 +00:00
Brian Wellington
0f537d1c63 + 708. [bug] When building with --with-openssl, the openssl headers
+                       included should not be used. [RT #702]
+
2001-01-24 01:34:14 +00:00
Andreas Gustafsson
c271488682 706. [bug] Zones with an explicit "allow-update { none; };"
were considered dynamic and therefore not reloaded
                        on SIGNUP or "rndc reload".
2001-01-24 00:00:21 +00:00
Brian Wellington
1e3bc7eaeb only use data from accept() if accept succeeds. 2001-01-23 21:07:12 +00:00
Andreas Gustafsson
b346ae570d style 2001-01-23 20:45:31 +00:00
Brian Wellington
e90441d922 INSIST that accept() returns a socket of the correct protocol family. Also
assign the "pf" field in the new socket.
2001-01-23 20:42:46 +00:00
Brian Wellington
dac1e1dd18 remove more duplicated code 2001-01-23 19:50:10 +00:00
James Brister
6ca537b8a3 New include statement for ndc.conf
include "/tmp/foo";

only allowed at file level (not at any random whitespace location).
2001-01-23 13:15:12 +00:00
Mark Andrews
9a6632fb42 removed unnecessary assignment 2001-01-23 07:45:39 +00:00
Mark Andrews
7c2dce3c4d common code elimination 2001-01-23 07:36:06 +00:00
Mark Andrews
ab0380976c add isc/platform.h 2001-01-23 06:00:11 +00:00
Mark Andrews
4ae98f5100 Use approptiate typoe based on configure results. 2001-01-23 05:13:25 +00:00
Mark Andrews
66ad1d85cb 703. [port] sys/select.h is needed on older platforms. [RT #695] 2001-01-23 04:47:56 +00:00
Mark Andrews
07d6480b68 704. [port] RLIMIT_NOFILE in to available on all platforms.
[RT #695]
2001-01-23 03:14:28 +00:00
Mark Andrews
363cb30a83 703. [port] sys/select.h is needed on older platforms. [RT #695] 2001-01-23 03:07:18 +00:00
Brian Wellington
47f65caf30 The msgcat text contained an extra %s. 2001-01-23 02:27:19 +00:00
Brian Wellington
5d18f1205a remove the call to dns_name_getlabel(), since the dns_name_toregion() macro
is faster.
2001-01-23 02:19:48 +00:00
Brian Wellington
668eb43f1f spacing 2001-01-23 02:00:56 +00:00
Andreas Gustafsson
49d61b46a7 inconsistent spacing in duplicated code 2001-01-23 01:59:03 +00:00
Brian Wellington
fd091cb3cd freerrset() wasn't. 2001-01-23 01:51:21 +00:00
Brian Wellington
d29da750d2 statistics counting was slowing down the server. Make client.c:count_query()
inline and remove dns_stats_ncounters(), which just returned the public
constant DNS_STATS_NCOUNTERS.
2001-01-23 01:50:29 +00:00
Brian Wellington
ea6709ec8a 702. [func] If the address 0.0.0.0 is seen in resolv.conf,
use 127.0.0.1 instead. [RT #693]
2001-01-23 00:41:55 +00:00
Andreas Gustafsson
57ecc983c0 removed unused edns_level member from ADB entry 2001-01-22 22:53:13 +00:00
Andreas Gustafsson
d5874af5a5 removed avoid_bitstring feature from the ADB 2001-01-22 22:51:23 +00:00
Brian Wellington
70b4889c85 A minor optimation to the rbt hash code that should reduce the number
of calls to dns_name_fullcompare().
2001-01-22 20:41:43 +00:00
Brian Wellington
9d967288c3 zero length keys from the config file were not being logged as too short to be
secure.
2001-01-22 20:27:04 +00:00
Andreas Gustafsson
5042f374bc a valid buffer has the current pointer before or at the
used pointer by definition; there is no need to require that explicitly
2001-01-22 18:21:45 +00:00
Andreas Gustafsson
3a5cbb3c22 Fixed 39 cases where either named or rndc would crash when
given empty string values in rndc.conf or on the command line
2001-01-22 03:59:21 +00:00
Mark Andrews
ce1269825c 700. [bug] $GENERATE range check was wrong. [RT #688] 2001-01-22 03:34:25 +00:00
Brian Wellington
9427d22299 make dns_name_fromtext fail when passed an empty string, not assert. 2001-01-22 03:30:27 +00:00
Andreas Gustafsson
e8af4e1524 699. [bug] The lexer mishandled empty quoted strings. [RT #694] 2001-01-22 02:46:34 +00:00
Brian Wellington
bf6d4f9cad Install the lwres man pages. 2001-01-19 22:46:27 +00:00