Andreas Gustafsson
66bea4d912
if() condition in check_expire_entry did not have
...
the effect I think was intended due to operator precedence: || binds tighter than ?:.
Rewrote it without :?.
2001-10-25 17:47:16 +00:00
Mark Andrews
081cff0c33
1073. [bug] The adb cache should also be space driven,
...
max-adb-size. [RT #1915 , #1938 ]
2001-10-25 04:57:46 +00:00
Andreas Gustafsson
0e27dac042
spacing
2001-10-19 01:29:41 +00:00
Mark Andrews
06a960c681
971. [func] 'try-edns' can be use to disable edns on all queries.
2001-08-30 05:52:18 +00:00
Andreas Gustafsson
76c8294c81
format string bugs and improved format string checking [RT #1578 ]
2001-08-08 22:54:55 +00:00
Andreas Gustafsson
c44072c299
uninitialized pointer could potentially (but not likely)
...
be passed to free_adbfind(); if it happened, it would look like RT #1393
(caught by bwelling)
2001-06-11 04:26:41 +00:00
David Lawrence
92ef1a9b9d
use ISC_MAGIC for all magic numbers, for our friends in EBCDIC land
2001-06-04 19:33:39 +00:00
Brian Wellington
8358be5851
uninitialized variable
2001-05-29 22:44:12 +00:00
Bob Halley
1a286a6613
In certain cases, the resolver's attempts to restart an address lookup
...
at the root could cause the fetch to deadlock (with itself) instead of
restarting. [RT #1225 ]
2001-05-02 17:29:17 +00:00
Andreas Gustafsson
570234616c
when following A6 chains, glue was inadvertantly ignored
2001-05-01 23:17:48 +00:00
Andreas Gustafsson
784d78b831
commented
2001-04-30 18:27:10 +00:00
Brian Wellington
c20ffa38de
808. [func] Add 'rndc flush' to flush the server's cache.
2001-04-11 20:37:50 +00:00
Andreas Gustafsson
abd51a9a96
removed unused label
2001-04-10 00:18:27 +00:00
Bob Halley
907620b5e0
The ADB didn't find AAAA glue in a zone unless A6 glue was also present.
2001-03-30 17:27:29 +00:00
Andreas Gustafsson
d1cc210d20
RT #927 fix from Bob:
...
759. [bug] The resolver didn't turn off "avoid fetches" mode
when restarting, possibly causing resolution
to fail when it should not. This bug only affected
platforms which support both IPv4 and IPv6. [RT #927 ]
758. [bug] The "avoid fetches" code did not treat negative
cache entries correctly, causing fetches that would
be useful to be avoided. This bug only affected
platforms which support both IPv4 and IPv6. [RT #927 ]
2001-02-28 20:51:22 +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
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
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
Andreas Gustafsson
9e992ecf37
further cleanup of ADB dumps
2001-01-27 02:44:35 +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
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
499b34cea0
copyright update
2001-01-09 22:01:04 +00:00
Brian Wellington
58cbc05eb0
Fix memory leak in dns_view_find; return DNS_R_HINTNXRRSET instead of
...
DNS_R_NOTFOUND when correct to do so.
2000-12-20 23:31:11 +00:00
Brian Wellington
13090db2b1
dns_view_find can now do ANY queries; it takes additional db and node
...
parameters used for return values.
2000-12-20 03:38:46 +00:00
Andreas Gustafsson
5fca48054b
dump the ADB in a more user-friendly format (unless a debug flag is set)
2000-12-18 20:03:33 +00:00
Andreas Gustafsson
acea06c80c
spelling
2000-12-15 21:06:00 +00:00
Andreas Gustafsson
f58cfa95f7
comment formatting
2000-11-11 02:14:25 +00:00
Mark Andrews
368b37b616
dns_rdata_invalidate -> dns_rdata_reset
2000-10-31 03:22:05 +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
Brian Wellington
d1cbf71409
clean up suspicious looking and incorrect uses of dns_name_fromregion
2000-10-07 00:09:28 +00:00
Andreas Gustafsson
6bd179ea9a
removed empty line at beginning of file
2000-09-29 23:54:31 +00:00
Andreas Gustafsson
f20c9d340a
fixed a typo in a comment, expanded another
2000-09-29 23:53:05 +00:00
Michael Graff
e1db5e817f
ask the database for aaaa records too, when an a6 isn't found.
2000-09-26 22:28:55 +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
Michael Graff
306a935305
add find->result_v[46]
2000-08-26 02:21:45 +00:00
Brian Wellington
5e387b9ce6
and more calls to DESTROYLOCK
2000-08-26 01:37:00 +00:00
Andreas Gustafsson
e02884167b
use the UNUSED() macro
2000-08-11 16:47:33 +00:00
Brian Wellington
8b858da2bb
An error message was printing a result code as a number, not a string.
2000-08-09 21:15:32 +00:00
Andreas Gustafsson
e605e98f3e
use DNS_NAME_MAXTEXT/DNS_NAME_FORMATSIZE
2000-08-09 00:09:36 +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
David Lawrence
9c3531d72a
add RCS id string
2000-06-22 22:00:42 +00:00
Andreas Gustafsson
8ed2c82a73
do not use initial caps in log messages
2000-06-16 15:51:58 +00:00
Michael Graff
9282e3c21a
don't periodically dump the database. I think we're debugged enough by now.
2000-06-08 01:43:21 +00:00
Michael Graff
a14eb88840
clamp ttls in the adb to be 10 < ttl < 86400, that is, 10 seconds minimum and 24 hours max
2000-06-07 20:15:48 +00:00
David Lawrence
6d12fdf966
Megacommit of many files.
...
Mostly, several functions that take pointers as arguments, almost
always char * pointers, had those pointers qualified with "const".
Those that returned pointers to previously const-qualified arguments
had their return values qualified as const. Some structure members
were qualified as const to retain that attribute from the variables
from which they were assigned.
The macro DE_CONST is used to deal with a handful of very special
places where something is qualified as const but really needs to have
its const qualifier removed.
rdata.c now defines macros for the prototypes of the basic rdata functions,
and all of the lib/dns/rdata/**/*.c files now use them.
Some minor integer-compatibility issues. (IE, ~0x03 is a signed int,
so assigning it to an unsigned int should use a cast. The type of an
enum member is int, so there are some conversion issues there, too.)
A pointers-to-function should not be cast to a pointer-to-object.
Variables should not be named for C reserved identifiers.
One or two set-but-not-used variables removed.
Minor other ISC style cleanups.
2000-06-01 18:26:56 +00:00
Michael Graff
d98c74e2ec
set the default destination port in the view, and use it when returning addresses from the adb.
2000-06-01 00:30:58 +00:00
Andreas Gustafsson
bf16dd5997
use dns_name_format()
2000-05-26 16:12:30 +00:00