Commit Graph
4551 Commits
Author SHA1 Message Date
Mark Andrews 4e7942dc76 648. [port] Add support for pre-RFC2133 IPv6 implementations. 2001-01-03 13:13:14 +00:00
Brian Wellington 6d5032f9a2 Micro-optimizations:
- use the DNS_NAME_INIT macro in name.c
	- create dns_name_copy() and use it instead of dns_name_concatenate()
	  when doing a copy.
2001-01-03 00:05:15 +00:00
Andreas Gustafsson 22dbaf9ad8 647. [bug] Resolver queries sent after following multiple
referrals had excessively long retransmission
                        timeouts due to incorrectly counting the referrals
                        as "restarts".
2001-01-02 20:46:07 +00:00
Andreas Gustafsson 21931e9334 cleanup of logging code 2001-01-02 18:51:07 +00:00
Andreas Gustafsson 6af9849f74 log message about disabling EDNS0 only once per lookup 2001-01-02 17:59:13 +00:00
Mark Andrews 55a7fc9d8f When a zone expires move the on disk cache (if any) sideways. 2001-01-02 04:45:24 +00:00
Andreas Gustafsson ca2912424b DEL (ASCII 127) is not a printable character and should be
backslash-decimal quoted when printing TXT record
2001-01-02 04:24:52 +00:00
David Lawrence b8ebf57228 fix a rather stupid incomplete cut-n-pasting job of in the
ISC_PLATFORM_FIXIN6ISADDR block for UnixWare.
2001-01-01 22:02:27 +00:00
Mark Andrews 046a9aca49 642. [bug] #622 needed more work. 2000-12-31 05:05:34 +00:00
Mark Andrews f4e4111795 643. [bug] xfrin error messages made more verbose, added class
of the zone.  [RT# 599]
2000-12-30 13:03:48 +00:00
Brian Wellington 65a275fb3d The resolver doesn't need to manually dissect a TSIG and look at the error
field, since dns_message_checksig returns an error in that case.
2000-12-29 23:24:32 +00:00
Brian Wellington ed6d3c9660 remove sanitize cruft 2000-12-29 22:07:25 +00:00
Brian Wellington 917d2db965 if DNS_NAME_USEINLINE was set, DNS_NAME_SETBUFFER was defined, but never used,
since dns_name_setbuffer was never #defined to it.
2000-12-29 21:54:52 +00:00
Brian Wellington 0c710d7162 #define isc_mutex_stats to nothing 2000-12-29 19:55:37 +00:00
Brian Wellington dacf0cc454 Merged the private functions compress_add and compress_find into
dns_compress_add and dns_compress_findglobal.
2000-12-29 19:38:50 +00:00
Brian Wellington bb88eab95f fix an uninitialized variable; reformat some >80 character lines 2000-12-29 18:49:36 +00:00
Brian Wellington 26d20cd51c oops, forgot to commit this yesterday. 2000-12-29 18:19:52 +00:00
Mark Andrews 02bad0bd51 fix lock heirachy in zone_shutdown() 2000-12-29 13:20:46 +00:00
Brian Wellington 3f160155da ISC_MUTEX_PROFILE can be set to enable basic mutex profiling. Running named
with -s prints the results.
2000-12-29 01:29:56 +00:00
Mark Andrews 253ab81bf2 642. [bug] Break the exit_check() race in the zone module.
[RT #598]
2000-12-29 01:04:10 +00:00
Brian Wellington 8e047d3b74 microoptimizations to make quantize/rmsize more efficient. 2000-12-29 01:02:07 +00:00
Brian Wellington 575737b964 Rewrite the name compression code to use a hashtable instead of an RBT and
avoid allocating memory in most cases.  This increases performance by
about 225% on the rc query test (~305 q/s to 990 q/s).
2000-12-29 00:59:41 +00:00
Brian Wellington 4efa04801e Remove DNS_COMPRESS_GLOBAL, since the only type of global compression
is GLOBAL14.
2000-12-29 00:54:36 +00:00
Andreas Gustafsson af5995e08f remove unused variable 2000-12-28 03:04:35 +00:00
Mark Andrews 9f28451bca 641. [bug] $GENERATE caused a uninitialized link to be used.
[RT #595]
2000-12-28 02:31:20 +00:00
Mark Andrews de154f65f6 Ensure that ns_client_*() are only called from the client's task. 2000-12-28 01:29:09 +00:00
Brian Wellington d780c35e54 remove all vestiges of 16 bit global compression 2000-12-28 00:43:12 +00:00
David Lawrence 090432605e isc_file_renameunique() set its result incorrectly if renaming failed; it used
the value of errno from an unlink() call, not from the rename() call.
2000-12-27 17:21:53 +00:00
Brian Wellington ee303f481d 639. [bug] Reading entropy from the keyboard would sometimes fail.
[RT #591]

note: the entropy callback conventions should really be documented.
2000-12-27 00:11:26 +00:00
David Lawrence 801dceea23 Revert my last change. It was stupid, which I if I had been thinking clearly
I would have seen *before* I commited anything.  So, include isc/thread.h,
isc/mutex.h and isc/condition.h even if ISC_PLATFORM_USETHREADS is not defined.

(What caused me to bother with this at all was a problem that I resolved
a few days ago by fixing configure ... though now that I think about it,
that probably means there is some other latent problem with inconsistent
definitions that could maybe be handled better.  I'll look into it more
later, AFTER vacation.)
2000-12-26 21:45:08 +00:00
David Lawrence bdcae3560b Only include isc/thread.h, isc/mutex.h and isc/condition.h if
ISC_PLATFORM_USETHREADS is defined.
2000-12-26 21:12:25 +00:00
David Lawrence 8ab1d97093 sigh. "define" -> "defined". never make trivial changes without retesting. 2000-12-26 21:06:49 +00:00
David Lawrence 86b8c48576 638. [port] lib/isc/random.c needed to explicitly include
time.h explicitly to get a prototype for time() when
			pthreads was not being used. [RT #592]
2000-12-26 21:02:14 +00:00
David Lawrence 125a916d1a 637. [port] Use isc_u?int64_t instead of (unsigned) long long in
lib/isc/print.c.  Also allow lib/isc/print.c to
			be compiled even if the platform does not need it.
			[RT #592]

Also cleaned up some const issues.
2000-12-26 21:00:41 +00:00
David Lawrence 0b3427d15c 636. [port] Shut up MSVC++ about a possible loss of precision
in the ISC__BUFFER_PUTUINT*() macros. [RT #592]

This is the basically the same change made to buffer.c before the macros
were created:

   revision 1.18
   date: 1999/09/23 17:54:57;  author: tale;  state: Exp;  lines: +4 -4
   Shut up MSVC++ compiler warning about loss of precision when assigning
   8 bits masked out of a 32 bit int to individual bytes.

Also, an #if 0 around "#define ISC_BUFFER_USEINLINE" was removed, per the
ISC coding style, and instead a comment was used to disable the definition.
2000-12-26 20:51:14 +00:00
Brian Wellington 02e3821450 635. [bug] Reloading a server with a configured blackhole list
would cause an assertion. [RT #590]
2000-12-26 09:48:41 +00:00
David Lawrence f8da2d9583 634. [bug] A log file will completely stop being written when
it reaches the maximum size in all cases, not just
			when versioning is also enabled. [RT #570]
2000-12-23 19:23:48 +00:00
David Lawrence 17012a8797 632. [port] Cope with rlim_t missing on BSD/OS systems. [RT #575] 2000-12-23 02:46:34 +00:00
Andreas Gustafsson 642e583687 ...and in two different ways, at that 2000-12-22 23:47:00 +00:00
Andreas Gustafsson e0a90d7579 journal index array was corrupted on write 2000-12-22 23:37:03 +00:00
Andreas Gustafsson 029ce2f952 need #include <dns/rdataset.h> and <dns/rdatastruct.h> 2000-12-22 23:01:56 +00:00
Brian Wellington 2374f16f5d missing ISC_LANG_ENDDECLS 2000-12-22 22:56:55 +00:00
Brian Wellington 489b762926 - if pthreads are not found, build a nonthreaded version
- check for pthread_attr_getstacksize
2000-12-22 20:50:05 +00:00
Andreas Gustafsson 0ad8ee89c5 more request shutdown logic fixes from Mark 2000-12-22 19:39:01 +00:00
Andreas Gustafsson 4c1fee4236 don't turn on ISC_MEM_BDEBUGRECORD by default 2000-12-22 18:30:26 +00:00
Mark Andrews 6cc5eac41b more unlocked calls to cancel_refresh(). 2000-12-22 05:55:20 +00:00
Mark Andrews bd5f2ac188 630. [bug] locking failure in zone code. [RT #582] 2000-12-22 02:43:42 +00:00
Brian Wellington 48540261f1 replace (isc_mem_debugging > 1) with (MEM_RECORD) 2000-12-22 00:26:33 +00:00
Andreas Gustafsson 709fa2054f oops, it's <dst/dst.h>, not <dst/key.h> 2000-12-21 18:11:00 +00:00
Andreas Gustafsson c663d46e47 need #include <dst/key.h> 2000-12-21 16:27:22 +00:00