Commit Graph
56 Commits
Author SHA1 Message Date
Mark Andrews a821d5fa3d DNSSEC bis merge from HEAD:
1581.  [func]          Disable DNSSEC support by default.  To enable
                       DNSSEC specify "enable-dnssec yes;" in named.conf.

1565.  [bug]           CD flag should be copied to outgoing queries unless
                       the query is under a secure entry point in which case
                       CD should be set.

1558.  [func]          New DNSSEC 'disable-algorithms'.  Support entry into
                       child zones for which we don't have a supported
                       algorithm.  Such child zones are treated as unsigned.

1557.  [func]          Implement missing DNSSEC tests for
                       * NOQNAME proof with wildcard answers.
                       * NOWILDARD proof with NXDOMAIN.
                       Cache and return NOQNAME with wildcard answers.

1541.  [func]          NSEC now uses new bitmap format.

1519.  [bug]           dnssec-signzone:nsec_setbit() computed the wrong
                       length of the new bitmap.

1516.  [func]          Roll the DNSSEC types to RRSIG, NSEC and DNSKEY.
2004-03-08 02:08:05 +00:00
Mark Andrews cbdd3a318b update lib copyrights 2004-03-06 08:15:48 +00:00
Mark Andrews f0af00eb5d 1525. [bug] dns_cache_create() could trigger a REQUIRE
failure in isc_mem_put() during error cleanup.
2003-10-16 06:06:07 +00:00
Mark Andrews 69acffbb19 sync with HEAD 2003-10-14 03:48:11 +00:00
Mark Andrews b1e91bee5b three -> two 2003-10-13 00:41:22 +00:00
Mark Andrews 57b54234cd sizeof style 2003-09-11 00:18:18 +00:00
Mark Andrews c354304ec4 1138. [func] It is now possible to flush a given name from the
cache by calling the new function
                        dns_cache_flushname().
2003-08-08 04:53:11 +00:00
Mark Andrews 891c424e56 update_copyrights 2002-08-05 06:57:16 +00:00
Mark Andrews 2ea0604c6f reviewed: bwelling
1299.   [port]          Darwin uses (unsigned long) for size_t. [RT #2590]
2002-07-10 06:10:45 +00:00
Mark Andrews 8153dde6c8 pullup:
eliminated race condition in water() [RT #1932]
2001-10-23 01:31:08 +00:00
Mark Andrews c65bd9be83 pullup:
1061.   [bug]           If periodic cache cleaning happened to start
                        while cleaning due to reaching the configured
                        maximum cache size was in progress, the server
                        could catch an assertion failure. [RT #1912]
2001-10-19 00:22:26 +00:00
Andreas Gustafsson 5f62432db2 removed extraneous empty line 2001-07-02 20:44:30 +00:00
Mark Andrews dee489d6c1 incremental_cleaning_action() is now re-called as a result of normal event
processing, not as the result of timer action.
2001-06-28 13:51:40 +00:00
David Lawrence 6817b32d2c Revert "incremental cleaning should actually clean" because it already did.
dns_dbiterator_setcleanmode(cleaner->iterator, ISC_TRUE) causes
dns_dbiterator_current() to do node expiry.
2001-06-27 20:18:03 +00:00
Mark Andrews ba94ff2e56 incremental cleaning should actually clean.
end_cleaning wants busy not idle
2001-06-27 14:48:21 +00:00
Andreas Gustafsson d358eea93e megabytes is abbreviated MB, not mb 2001-06-07 18:31:54 +00:00
David Lawrence f991461dc1 The most notable change is that incremental_cleaning_action() will now
wait at least six seconds between each pass of the tree.  This keeps
the CPU from being bogged down in a persistent overlimit condition, and
because it uses timers also lets the cache cleaner know right away when
the server is being shut down, so it can stop trying to clean.

Also fixed an unlocked access to cache->live_tasks in dns_cache_detach().

Also fixed a problem with repeated calls to dns_cache_setcachesize() setting
the database as not overmem, even though it might have still been in
the process of cleaning from a previous limit.  Just set the new
isc_mem_setwater() limits instead and let the mem.c call water() if cleaning
needs to be either started or stopped because of the new limits.

Minor code cleanups.
2001-06-05 22:27:51 +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
David Lawrence ed8daea264 enforce a minimum cache size of 2mb 2001-05-31 10:53:42 +00:00
David Lawrence f3083bc781 In incremental_cleaning_action(), detach the node returned by
dns_dbiterator_current(). [RT #1007]
2001-04-11 22:15:00 +00:00
Brian Wellington c20ffa38de 808. [func] Add 'rndc flush' to flush the server's cache. 2001-04-11 20:37:50 +00:00
David Lawrence 03609d0b8f Use a cleaning iterator (dns_dbiterator_setcleanmode()).
Reworked some overmem thread handling.
2001-03-08 01:22:48 +00:00
Brian Wellington bd703253b7 oops, a mutex was locked too early. 2001-01-13 00:23:34 +00:00
Brian Wellington f0e246e271 Fully implement the cachefile option, which allows persistent caching. This
removes some unused code in view.c and uncomments some code in cache.c.
This still isn't really usable, since the trust level of cached data is
not persistent, so all data in the persistent cache will be promoted to
"ultimate" trust on reload.
2001-01-12 22:22:17 +00:00
Brian Wellington 499b34cea0 copyright update 2001-01-09 22:01:04 +00:00
Brian Wellington 78838d3e0c 8 space -> tab conversion 2000-12-11 19:24:30 +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
Andreas Gustafsson 7acfb3bcd2 previous change did not compile 2000-08-18 22:32:45 +00:00
Andreas Gustafsson 618a5e4923 dns_cache_setcleaninginterval() could try to access
timer after it had been freed
2000-08-18 21:22:26 +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 951c247f29 style lint 2000-07-26 21:44:34 +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
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
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
David Lawrence fc8a6561cb include isc/time.h 2000-04-25 19:35:39 +00:00
Michael Graff e44487bfc2 convert sender, arg, action, etc. to ev_sender, ev_arg, ev_action, etc. 2000-04-17 19:22:44 +00:00
Bob Halley f80ea74e19 isc_task_create() API change; attach to mctx 2000-04-12 01:37:41 +00:00
Michael Graff 4195904998 s/DNS_R_/ISC_R_/ change for some codes. 2000-04-06 22:03:35 +00:00
Andreas Gustafsson 2539896175 do not indent CVS ID comment 2000-03-17 17:49:37 +00:00
Bob Halley 7d32c065c7 update copyright 2000-02-03 23:50:32 +00:00
Andreas Gustafsson 7618f0551e replaced several RUNTIME_CHECK()s with less fatal means
of error reporting; fixed some potential leaks
2000-02-03 18:59:24 +00:00
Bob Halley e485d16462 name tasks 2000-01-25 19:31:23 +00:00
Bob Halley 5dbf258e2c add comment 2000-01-21 02:49:07 +00:00
Andreas Gustafsson a243aeb92b always log both 'begin cache cleaning' and 'end cache cleaning',
or neither one, but never one without the other
2000-01-08 02:12:57 +00:00
Andreas Gustafsson a928d61917 fixed a race condition where a cache cleaning cycle could
be started when one was already in progress; restructured to destroy and recreate
the cache database iterator between cleaning cycles instead of just pausing it
2000-01-06 01:12:20 +00:00
Andreas Gustafsson ed04318ef6 timer event could arrive after cache cleaner was destroyed;
use the new <isc/util.h>
2000-01-04 23:24:13 +00:00