Commit graph

6996 commits

Author SHA1 Message Date
Andreas Gustafsson
3931325c6d spacing 2001-10-22 18:18:34 +00:00
Andreas Gustafsson
0ae6a5f852 pullup:
1063.   [bug]           libbind: "make install" was failing on IRIX.
(lib/bind/port/irix/include/paths.h was pulled up by tagging)
2001-10-22 17:00:49 +00:00
Mark Andrews
1255d388f0 1067. [func] Allow quotas to be soft, isc_quota_soft(). 2001-10-22 07:09:25 +00:00
Mark Andrews
31d3464c0c 1065. [func] Runtime support to select new / old style interface
scanning using ioctls.
2001-10-22 04:01:32 +00:00
Mark Andrews
ea7b38cd1e 1063. [bug] libbind: irix "make install" was failing. 2001-10-22 00:40:47 +00:00
Mark Andrews
31e12a627d add 2001-10-22 00:32:56 +00:00
Andreas Gustafsson
b8685833f1 expand the qstringornone type in the grammar summary 2001-10-19 18:08:27 +00:00
Andreas Gustafsson
0e27dac042 spacing 2001-10-19 01:29:41 +00:00
Andreas Gustafsson
059a29a179 when using the system malloc, isc__mempool_get(), isc__mempool_put(),
and isc_mempool_destroy() failed to update memory statistics. [RT #1915]
2001-10-19 01:29:09 +00:00
Andreas Gustafsson
eb7f938194 style 2001-10-19 00:38:18 +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
dfafc36515 style 2001-10-19 00:17:17 +00:00
Mark Andrews
07eaf0b8d0 1060. [func] Move UDP retry processing into dns_request. 2001-10-18 06:12:04 +00:00
Mark Andrews
cf70df7d0e 1059. [func] dns_request now support will now retry UDP queries,
dns_request_createvia2() and dns_request_createraw2().
2001-10-18 06:09:39 +00:00
Mark Andrews
9234d92d4e 1058. [func] Limited lifetime ticker timers are now available,
isc_timertype_limited.
2001-10-18 06:06:13 +00:00
Andreas Gustafsson
86a292d459 added more logging to help track down RT #1912 if not fixed by previous commit 2001-10-18 01:48:35 +00:00
Andreas Gustafsson
937ccb270e The call to incremental_cleaning_action() added to cleaning_timer_action()
in revision 1.40 is clearly incorrect.  If the cleaner is already in the busy state, a call to
incremental_cleaning_action() has already been scheduled as an event, and there is no
need to do an extra call.  Furthermore, the call passed the timer event as an argument
to incremental_cleaning_action(), which would ultimately cause it to be passed
to end_cleanin() and assigned to cleaner->resched_event rather than freed.
This commit may or may not fix RT #1912.
2001-10-18 01:40:56 +00:00
Andreas Gustafsson
dcfc52bbba Added a version.h file for each library; made version
variables const
2001-10-16 23:21:07 +00:00
Andreas Gustafsson
3c3fe07225 1055. [func] Version and hostname queries can now be disabled
using "version none;" and "hostname none;",
                        respectively.
(for consistency with "pid-file none" and each other)
2001-10-16 22:18:59 +00:00
Andreas Gustafsson
8d2b885018 The option for disabling the PID file is now pid-file none, not pid-file "none" 2001-10-16 20:04:41 +00:00
Mark Andrews
ec95dac291 pullup:
1054.   [bug]           winnt: cfg_categories and cfg_modules need to be
                        visible outside of the libisccfg DLL.
2001-10-16 05:58:29 +00:00
Mark Andrews
c8b58baa78 Change #1042 was incomplete. cfg_categories and cfg_modules need to be
visible outside of the DLL.
2001-10-16 05:28:14 +00:00
Mark Andrews
a1a06d7854 pullup:
1052.  [bug]           Journals were not being created in binary mode
                       resulting in "journal format not recognized" error
                       under Windows NT/2000.  [RT #1889]
2001-10-15 04:57:51 +00:00
Mark Andrews
1094dec52a 1052. [bug] Journals were not being created in binary mode
resulting in "journal format not recognized" error
                        under Windows NT/2000.  [RT #1889]
2001-10-15 04:47:55 +00:00
Mark Andrews
267d8eb613 pullup:
1050.  [bug]           Log messages reporting malformed IP addresses in
                       address lists such as that of the forwarders option
                       failed to include the correct error code, file
                       name, and line number. [RT #1890]
2001-10-13 03:52:13 +00:00
Andreas Gustafsson
b38ab99bdc patch from Danny:
Fixed formattimestamp to use locale specific dates and times, the same way
as Unix format
2001-10-13 01:57:37 +00:00
Andreas Gustafsson
6e93e6ea45 if the sdb lookup function fails at the zone origin for reasons other
than nonexistence of the domain name, the failure should be propagated
to the caller
2001-10-13 01:37:58 +00:00
Andreas Gustafsson
01818a424a document return value of the sdb lookup function 2001-10-13 01:32:34 +00:00
Andreas Gustafsson
62a3dbe63e 1050. [bug] Log messages reporting malformed IP addresses in
address lists such as that of the forwarders option
                        failed to include the correct error code, file
                        name, and line number. [RT #1890]
2001-10-12 22:00:31 +00:00
Andreas Gustafsson
315eafec07 pullup:
1039.   [bug]           Negative responses with CNAMEs in the answer section
                        were cached incorrectly. [RT #1862]
2001-10-12 17:49:41 +00:00
Mark Andrews
a4fbe403e4 pullup:
1048.   [bug]           Servers built with -DISC_MEM_USE_INTERNAL_MALLOC=1
                        didn't work.
2001-10-12 01:17:37 +00:00
Andreas Gustafsson
e69b9ffb0f 1048. [bug] Servers built with -DISC_MEM_USE_INTERNAL_MALLOC=1
didn't work.
2001-10-12 00:35:11 +00:00
Andreas Gustafsson
29ca9003a5 use "oldconfig", not "_placeholder" as the name of the
obsolete DNS_LOGCATEGORY_CONFIG logging category, to lessen confusion in
case someone links a 9.2.0-pre-rc7 binary against an rc7 or newer shared
library
2001-10-11 23:07:00 +00:00
Andreas Gustafsson
7779b6cbf6 pullup:
1045.   [bug]           It was possible to skip saving glue for a nameserver
                        for a stub zone.
2001-10-11 17:20:40 +00:00
Andreas Gustafsson
e370391b5e pullup:
1044.   [bug]           Specifying allow-transfer, notify-source, or
                        notify-source-v6 in a stub zone was not treated
                        as an error.
2001-10-11 17:12:42 +00:00
Mark Andrews
ada9b8ab20 1045. [bug] It was possible to skip saving glue for a nameserver
for a stub zone.
2001-10-11 06:12:42 +00:00
Mark Andrews
3a92768cad 1044. [buf] Specifying allow-transfer, notify-source or
notify-source-v6 in a stub zone was not treated as
                        a error.
2001-10-11 04:52:21 +00:00
Mark Andrews
329fd2fe75 pullup:
1043.   [bug]           Specifying a transfer-source or transfer-source-v6
                        option in the zone statement for a master zone was
                        not treated as an error. [RT #1876]
2001-10-11 03:31:04 +00:00
Mark Andrews
8002894e6e pullup:
1042.   [bug]           The "config" logging category did not work properly.
                        [RT #1873]
2001-10-11 02:03:23 +00:00
Andreas Gustafsson
bb60abb445 1043. [bug] Specifying a transfer-source or transfer-source-v6
option in the zone statement for a master zone was
                        not treated as an error. [RT #1876]
2001-10-11 01:55:03 +00:00
Andreas Gustafsson
024face21c 1042. [bug] The "config" logging category did not work properly.
[RT #1873]
2001-10-11 01:16:18 +00:00
Andreas Gustafsson
78d811f8fb spacing 2001-10-11 01:07:50 +00:00
Andreas Gustafsson
247b6de61b Some comments referred to DNS_R_NOTVERIFIEDYET as
DNS_R_SIGNOTVERIFIEDYET
2001-10-10 21:39:16 +00:00
Mark Andrews
13f2c161db 1039. [bug] We cached an incorrect negative response if there were
CNAMES in the answer section.  [RT#1862]
2001-10-10 04:11:32 +00:00
Andreas Gustafsson
ae62248c8a pullup:
1038.   [bug]           TKEY queries with an owner name other than the root
                        could cause an assertion failure. [RT #1866, #1869]
2001-10-09 23:06:57 +00:00
Brian Wellington
173a45b43c fix assertion in tkey code [RT #1866] 2001-10-09 17:26:33 +00:00
Mark Andrews
3fc4c1434d 1037. [bug] We failed to reject some self inconsistant answers.
[RT #1862]
2001-10-09 08:03:32 +00:00
Andreas Gustafsson
96bc10707a pullup:
on plaforms with no gettimeofday(), use struct _TIMEZONE instead of
struct timezone
2001-10-09 00:51:07 +00:00
Andreas Gustafsson
6c6ceac1bc reverted incorrect commit 2001-10-08 18:58:11 +00:00
Andreas Gustafsson
c7302ffd98 pullup:
1031.   [bug]           libbind.a: isc__gettimeofday() infinite recursion.
                        [RT #1858]
2001-10-08 18:10:57 +00:00
Mark Andrews
df7596a03e 1032. [func] hostname.bind/txt/chaos now returns the name of
the machine hosting the nameserver.  This is useful
                        in diagnosing problems with anycast servers.
2001-10-08 07:46:11 +00:00
Danny Mayer
f3fcde886c Fixed formattimestamp to use locale specific dates and times, the same way as Unix format 2001-10-08 01:20:08 +00:00
Mark Andrews
f08782f092 1031. [bug] libbind.a: isc__gettimeofday() infinite recursion.
[RT #1858]
2001-10-08 00:33:45 +00:00
Danny Mayer
4186249fea Eliminate unnecessary macro and increase buffer length MAX_NAME_LENGTH 2001-10-06 01:10:06 +00:00
Danny Mayer
5ea492b94d Restore Andrea's changes along with the updates 2001-10-05 22:25:54 +00:00
Bob Halley
8db00cd940 add 2001-10-05 20:57:24 +00:00
Danny Mayer
49d23a92a9 Check for malloc out-of-memory conditions, changed return codes to provide more meaningful error codes. Minor cleanup 2001-10-05 05:51:50 +00:00
Andreas Gustafsson
4e9291c48b pullup:
the wrong result code was checked [RT #1847]
2001-10-04 19:43:06 +00:00
Brian Wellington
61e30d3194 the wrong result code was checked [RT #1847] 2001-10-04 18:22:57 +00:00
Andreas Gustafsson
a1d2958b24 pullup:
1022.   [bug]           Don't report empty root hints as "extra data".
                        [RT #1802]
2001-10-03 22:31:19 +00:00
Mark Andrews
b09f4e054c 1025. [bug] Don't use multicast addresses to resolve iterative
queries.  [RT #101]
2001-10-03 07:43:03 +00:00
Mark Andrews
40dd9cb8cc 1024. [port] HP and Sun decided to use the same macros and
structures for different things.
2001-10-03 05:08:32 +00:00
Mark Andrews
8f534756ca Disallow creation of TYPE0 records from wire data 2001-10-03 02:07:34 +00:00
Mark Andrews
2d4f039432 Disallow creation of TYPE0 records from master files, since the server
reserves type 0 for internal purposes related to negative caching
2001-10-03 02:05:25 +00:00
Andreas Gustafsson
6bebabb376 Also disallow creation of TYPE0 records from wire data 2001-10-03 00:51:38 +00:00
Andreas Gustafsson
de5247ae16 Disallow creation of TYPE0 records from master files, since the server reserves type 0 for
internal purposes related to negative caching
2001-10-02 23:33:04 +00:00
Mark Andrews
c54091c8ed IPv6 addresses containing mapped IPv4 addresses generate the same hash
value as the equivalent IPv4 address.  This is now true regardless of
the value of address_only.  Document.
2001-10-02 06:06:15 +00:00
Andreas Gustafsson
1b8eaf4143 style 2001-10-01 20:58:51 +00:00
Andreas Gustafsson
24dd4582a2 install check.h in include/bind9, not include/isccfg 2001-10-01 20:53:48 +00:00
Andreas Gustafsson
9066d09c3e Removed all code within #ifdef DNS_OPT_NEWCODES*.
It was the last thing being sanitized out of releases; removing
it makes it possible to eliminate the sanitation process.
2001-10-01 18:54:05 +00:00
Andreas Gustafsson
1ebadd777b pullup:
1021.   [bug]           On Win32, log message timestamps were one month
                        later than they should have been, and the server
                        would exhibit unspecified behavior in December.
2001-10-01 01:42:38 +00:00
Mark Andrews
96ea98af24 1023. [func] Accept hints without TTLs. 2001-09-30 04:31:28 +00:00
Mark Andrews
54c4aa0f62 1022. [bug] Allow hints to be completely empty. [RT #1802] 2001-09-30 03:02:47 +00:00
Danny Mayer
37f08fab28 Timestamp was one month later than it should have been. SYSTEMTIME starts with January=1 2001-09-30 02:41:11 +00:00
Bob Halley
3e1f3de348 check.h has moved to libbind9 2001-09-29 20:00:39 +00:00
Bob Halley
6d7c0fd73b add 2001-09-29 19:59:29 +00:00
Bob Halley
27ef660057 cfg.h and log.h are not in libbind9 2001-09-29 19:59:11 +00:00
Bob Halley
e83e8e7734 libtool is generated 2001-09-29 19:58:52 +00:00
Andreas Gustafsson
513dd4a616 style 2001-09-28 23:34:55 +00:00
Andreas Gustafsson
c3312fd9d0 pullup:
dns_tsigkey_createfromkey wasn't checking that the key algorithm matched the
key name.
2001-09-27 23:17:10 +00:00
Brian Wellington
ff7b9eede9 dns_tsigkey_createfromkey wasn't checking that the key algorithm matched the
key name.
2001-09-27 17:49:11 +00:00
Andreas Gustafsson
82c168127c When retrying with AXFR after a failed IXFR, don't do a SOA query
over TCP before the AXFR request.  Doing so has not been
necessary since zone maintenance using UDP SOA queries was
implemented in zone.c a long time ago.
2001-09-27 01:01:46 +00:00
Brian Wellington
c9b3f64262 fix comment 2001-09-25 22:45:02 +00:00
Danny Mayer
7e351cd18f Added named service location in Registry 2001-09-25 01:41:43 +00:00
Danny Mayer
ecde762a60 Code to fetch list of NT Groups for a given account. This is used for retrieving privilege information and rights for an account as well as for NTFS File system and other object security 2001-09-25 01:37:02 +00:00
Andreas Gustafsson
4632c084a6 missing comma in last pullup [RT #1780] 2001-09-21 23:18:45 +00:00
Andreas Gustafsson
1d89523b69 pullup:
1000.   [bug]           BIND 8 compatibility: accept "HESIOD" as a alias
                        for class "HS".  [RT #1759]
2001-09-21 20:46:35 +00:00
Andreas Gustafsson
4fdcaf0cc7 redo pullup:
1013.   [bug]           It was possible to cancel a query twice when marking
                        a server as bogus or by having a blackhole acl.
                        [RT #1776]
2001-09-21 20:40:06 +00:00
Andreas Gustafsson
7e470ba93b oops, previous commit included other stuff in addition to the
intended pullup; reverting it
2001-09-21 20:37:09 +00:00
Andreas Gustafsson
f0f9aa979b pullup:
1013.   [bug]           It was possible to cancel a query twice when marking
                        a server as bogus or by having a blackhole acl.
                        [RT #1776]
2001-09-21 18:50:46 +00:00
Mark Andrews
8296690f17 DNS_EVENT_QUERYABORTED is no longer gemerated. 2001-09-21 14:00:06 +00:00
Mark Andrews
595a14576e 1013. [bug] It was possible to cancel a query twice when marking
a server as bogus or by having a blackhole acl.
                        [RT #1776]
2001-09-21 13:31:55 +00:00
Brian Wellington
8f674b13e8 dns_time*_fromtext should take "const char *"s, not "char *"s. 2001-09-21 00:11:30 +00:00
Andreas Gustafsson
1299e93989 1011. [cleanup] Removed isc_dir_current(). 2001-09-20 21:21:53 +00:00
Andreas Gustafsson
d6baaf3649 added INSISTs to help diagnose RT #1775 2001-09-20 16:48:20 +00:00
Mark Andrews
c2bc56dc65 Move configuration checking to libbind9. 2001-09-20 15:17:07 +00:00
Mark Andrews
ae5df22719 iadd missing const 2001-09-20 06:50:34 +00:00
Mark Andrews
ad8e6236a4 add missing const to declaration. 2001-09-20 06:50:08 +00:00
Brian Wellington
a25169ea43 pullup:
1006.   [bug]           If a KEY RR was found missing during DNSSEC validation,
			an assertion failure could subsequently be triggered
			in the resolver. [RT #1763]
2001-09-19 21:51:42 +00:00
Andreas Gustafsson
01446841be 1006. [bug] If a KEY RR was found missing during DNSSEC validation,
an assertion failure could subsequently be triggered
                        in the resolver. [RT #1763]
2001-09-19 21:25:46 +00:00
Mark Andrews
5e8c385e64 pullup:
1004.  [port]          Deal with recvfrom() returning EHOSTDOWN. [RT #1770]
2001-09-19 02:37:21 +00:00
Brian Wellington
21825a8d00 Sync up the dnssec key algorithms listed in include/dns/keyvalues.h and
rdata.c.
2001-09-19 00:14:48 +00:00
Andreas Gustafsson
1de63e34f1 1004. [port] Deal with recvfrom() returning EHOSTDOWN. [RT #1770] 2001-09-18 22:54:02 +00:00
Andreas Gustafsson
9b009c9f5a reverted previous change since it doesn't compile after make clean 2001-09-18 18:43:16 +00:00
Mark Andrews
2bb3d8bdfe Make casting easier in symbolic debuggers by using different names
for the 64 bit version.
2001-09-18 14:30:10 +00:00
Andreas Gustafsson
94c8b1aa0f pullup:
doio_recv was not catching a ECONNRESET error. Fixed this and added code to catch other possible errors. Miscellaneous errno handling cleanup [RT #1745]
2001-09-17 22:28:57 +00:00
Andreas Gustafsson
67298a4b2f "data" is plural 2001-09-17 20:24:13 +00:00
Mark Andrews
36a91ab163 Don't send notifies to mapped addresses. 2001-09-17 14:04:32 +00:00
Mark Andrews
8138bb315d The hash of IPv6 isc_sockaddr_t containing mapped IPv4 addresses should be
the same as the hash of the corresponding IPv4 isc_sockaddr_t.
2001-09-17 06:58:18 +00:00
Mark Andrews
f0261e88a8 check view/zone classes. 2001-09-17 02:48:58 +00:00
Danny Mayer
8423b244ec doio_recv was not catching a ECONNRESET error. Fixed this and added code to catch other possible errors. Miscellaneous errno handling cleanup [RT #1745] 2001-09-16 06:19:22 +00:00
Mark Andrews
e6f17474cb 1000. [func] Accept "HESIOD" as a alias for class "HS". 2001-09-16 05:27:04 +00:00
Mark Andrews
5fe1a246cf replace common code in dns_journal_commit by calling index_to_disk().
remove redundant call to index_to_disk() from dns_journal_compact().
2001-09-15 07:16:39 +00:00
Andreas Gustafsson
b2eeaf6500 pull up part of 997.:
ISC_R_SUCCESS could be returned on failure
2001-09-15 00:37:18 +00:00
Brian Wellington
4fb42a8382 unused #defines 2001-09-15 00:27:26 +00:00
Brian Wellington
36e37042c6 997. [func] Add support for RSA-SHA1 keys. 2001-09-15 00:01:58 +00:00
Andreas Gustafsson
4a20a92f4f replaced 994. with alternative fix:
994.   [func]          Treat non-authoritative responses to queries for type
                        NS as referrals even if the NS records are in the
                        answer section, because BIND 8 servers incorrectly
                        send them that way.  This is necessary for DNSSEC
                        validation of the NS records of a secure zone to
                        succeed when the parent is a BIND 8 server. [RT #1706]
2001-09-14 21:04:35 +00:00
Andreas Gustafsson
34aa790937 reverted 994. 2001-09-14 20:53:33 +00:00
Mark Andrews
56d69016f4 994. [bug] If the unsecure proof fails for unsigned NS records
attempt a secure proof using the NS records found as
                        glue to find the NS records from the zone's servers
                        along with associated glue rather than from parent
                        servers.  [RT #1706]
2001-09-13 07:23:39 +00:00
Andreas Gustafsson
5de2109e1c pullup:
A message could be leaked when a segment of an incoming zone transfer
failed to verify.
2001-09-12 20:44:04 +00:00
Brian Wellington
ee3555e8c0 A message could be leaked when a segment of an incoming zone transfer
failed to verify.
2001-09-12 20:39:36 +00:00
Andreas Gustafsson
db3822841c failures in dns_db_diff() could cause the server to leak
memory
2001-09-12 18:45:02 +00:00
Andreas Gustafsson
115019ee2c replay the journal on the initial load only,
as it is not needed on subsequent loads and will fail
if the zone is a newly edited zone with ixfr-on-differences
enabled
2001-09-12 18:44:54 +00:00
Mark Andrews
da4535c4b4 991. [func] Lower UDP refresh timeout messages to DEBUG(1). 2001-09-12 03:46:32 +00:00
Andreas Gustafsson
1015c4cdea pullup:
989.   [bug]           Report filename if $INCLUDE fails for file related
                        errors. [RT #1736]
2001-09-11 23:32:55 +00:00
Mark Andrews
9de04a5713 LOGIT -> LOGITFILE 2001-09-11 05:09:41 +00:00
Mark Andrews
1592bf7349 989. [bug] Report filename if $INCLUDE fails for file related
errors.  [RT #1736]
2001-09-11 04:56:06 +00:00
Andreas Gustafsson
976dd45973 pullup:
compare: a REQUIRE() was comparing a variable against itself not agaist the
other arguement as it should have been.
2001-09-11 01:09:07 +00:00
Mark Andrews
f3352b9bec compare: a REQUIRE() was comparing a variable against itself not agaist the
other arguement as it should have been.
2001-09-10 23:47:26 +00:00
Andreas Gustafsson
8cccaeaee1 New named.conf option "ixfr-from-differences" [RT #1727] 2001-09-08 00:21:49 +00:00
Mark Andrews
e0806ab5ed Correct comment saying that 'max_size' is ignored. 2001-09-07 00:51:51 +00:00
Mark Andrews
ae35d154ce pullup:
host-statistics is not implemented,
maintain-ixfr-base is obsolete [RT #1717]
2001-09-06 23:06:43 +00:00
Andreas Gustafsson
50a8312c9f #define ISC_MEM_TRACKLINES 1 2001-09-06 23:03:17 +00:00
Andreas Gustafsson
f8dbd659d0 When ISC_MEM_TRACKLINES=1, don't calle {add,delete}_trace_entry()
for every alloc/free if neither ISC_MEM_DEBUGTRACE nor
ISC_MEM_DEBUGRECORD is turned on.  This removes my
last objection to setting ISC_MEM_TRACKLINES=1 by default.
2001-09-06 23:03:01 +00:00
Andreas Gustafsson
6d858e75d4 more documentation; indentation 2001-09-06 22:13:47 +00:00
Andreas Gustafsson
fe5146716e host-statistics is not implemented,
maintain-ixfr-base is obsolete [RT #1717]
2001-09-06 21:52:46 +00:00
Andreas Gustafsson
18159f6f60 document what ISC_MEM_DEBUG does; clarify descriptions of other
memory debugging options
2001-09-06 18:23:35 +00:00
Andreas Gustafsson
eb70ba210b spacing 2001-09-06 01:06:24 +00:00
Mark Andrews
2958e100b5 check return value of strftime() 2001-09-06 00:34:06 +00:00
Mark Andrews
aa6e560fbd 980. [bug] Incoming zone transfers restarting after an error
could trigger an assertion failure. [RT #1692]
2001-09-06 00:23:19 +00:00
Andreas Gustafsson
3f538ef15c pullup:
[RT #1709]
Change isc_entropy_usebestsource() to have saner semantics:
 - If an invalid file is specified, an error will be returned instead of the
   keyboard being used.
 - If no file is specified but a random device is present, the keyboard will
   be used if there is an error opening the random device.
 - ISC_ENTROPY_KEYBOARDYES indicates that the keyboard should be the
   only device used.  Otherwise, passing '-r keyboard' is meaningless
   on a machine with a random device, since the keyboard will not be used.

Change the callers in the dnssec tools and rndc-confgen to check for the
special file "keyboard" and call isc_entropy_usebestsource() with the right set
of parameters.
2001-09-06 00:14:18 +00:00
Andreas Gustafsson
847169dab2 980. [bug] Incoming zone transfers restarting after an error
could trigger an assertion failure. [RT #1692]
2001-09-05 23:02:28 +00:00
Brian Wellington
ed29aefe31 [RT #1709]
Change isc_entropy_usebestsource() to have saner semantics:
 - If an invalid file is specified, an error will be returned instead of the
   keyboard being used.
 - If no file is specified but a random device is present, the keyboard will
   be used if there is an error opening the random device.
 - ISC_ENTROPY_KEYBOARDYES indicates that the keyboard should be the
   only device used.  Otherwise, passing '-r keyboard' is meaningless
   on a machine with a random device, since the keyboard will not be used.

Change the callers in the dnssec tools and rndc-confgen to check for the
special file "keyboard" and call isc_entropy_usebestsource() with the right set
of parameters.
2001-09-05 22:32:09 +00:00
Brian Wellington
aba9f3dd7e remove an invalid close paren 2001-09-05 21:05:36 +00:00
Andreas Gustafsson
f58f6043ce pullup:
Assertion failure when ISC_MEM_DEBUGRECORD set.
2001-09-05 17:51:13 +00:00
Andreas Gustafsson
f17bffa68d pullup:
isc_time_formattimestamp() created static const for bad time string
2001-09-05 17:32:05 +00:00
Andreas Gustafsson
b1436346a0 pullup:
isc_file_getmodtime() does not need write access to file
2001-09-05 17:29:25 +00:00
Andreas Gustafsson
26f327f1f5 const correctness 2001-09-05 17:22:55 +00:00
Andreas Gustafsson
ff6e834f7d check return value of strftime() 2001-09-05 17:05:47 +00:00
Andreas Gustafsson
fdd3a3e7fa pullup:
needs #include <isc/print.h>
2001-09-05 17:04:43 +00:00
Andreas Gustafsson
33f87146a8 needs #include <isc/print.h> 2001-09-05 17:03:42 +00:00
Andreas Gustafsson
e282509475 80 columns 2001-09-05 16:55:05 +00:00
Mark Andrews
e6e233e73f remove extranous debugging 2001-09-05 15:01:52 +00:00
Mark Andrews
ec495a6ade Call dns_master_dumpinc() for "regular" dumps. 2001-09-05 14:13:29 +00:00
Mark Andrews
ed03e26c44 Add dns_dumpctx_db() and dns_dumpctx_version(). 2001-09-05 10:28:55 +00:00
Mark Andrews
7f006841fc Assertion failure when ISC_MEM_DEBUGRECORD set. 2001-09-05 06:26:07 +00:00
Mark Andrews
1d32e01f17 testing wrong variable 2001-09-05 06:04:58 +00:00
Danny Mayer
e78a28ffb5 isc_time_formattimestamp() created static const for bad time string 2001-09-05 04:18:15 +00:00
Danny Mayer
fdacf913e1 isc_file_getmodtime() does not need write access to file 2001-09-05 04:17:13 +00:00
Andreas Gustafsson
7ee450d5f6 pullup:
972.   [bug]           The file modification time code in zone.c was using the
                        wrong epoch.  [RT #1667]
(This pullup includes not only the changes to zone.c, but all the
recent epoch-related fixes)
2001-09-05 00:38:13 +00:00
Andreas Gustafsson
641e33bdd4 pullup:
978.   [bug]           dns_db_attachversion() had an invalid REQUIRE()
                        condition.
2001-09-04 23:09:33 +00:00
Andreas Gustafsson
faedfb6dce pullup:
Previous update was missing the release version of telling how to build the
resource file [RT #1668]
2001-09-04 22:54:59 +00:00
Andreas Gustafsson
89227c76be pullup:
977.   [bug]           Improve "not at top of zone" error message.
2001-09-04 22:51:41 +00:00
Andreas Gustafsson
e5094285ce pullup:
Update to change path to resolv.conf and define RESOLV_CONF
2001-09-04 19:36:33 +00:00
Andreas Gustafsson
2c141ce0fb pullup:
975.   [bug]           "max-cache-size default;" as a view option
                        caused an assertion failure.

 974.   [bug]           "max-cahe-size unlimited;" as a global option
                        was not accepted.
2001-09-04 19:15:36 +00:00
Mark Andrews
c6b5faa001 remove extraneous UNUSED(). 2001-09-04 14:27:42 +00:00
Mark Andrews
9aba20edee 979. [func] Incremental master file dumping. dns_master_dumpinc(),
dns_master_dumptostreaminc(), dns_dumpctx_attach(),
                        dns_dumpctx_detach() and dns_dumpctx_cancel().
2001-09-04 14:18:31 +00:00
Mark Andrews
e8d86192fc 978. [bug] dns_db_attachversion() had an invalid REQUIRE()
condition.
2001-09-04 12:17:13 +00:00
Danny Mayer
aa7638fce5 Fix some signed/unsigned mismatches when comparing offsets 2001-09-04 04:14:31 +00:00
Danny Mayer
6f2e507e7e Added support for isc__strerror, moving the message code handling from errno2result.c to strerror.c. updated routines to use it and updated makes to include additional files 2001-09-04 03:22:23 +00:00
Danny Mayer
7c7b389ae0 Added isc_file_truncate routine 2001-09-04 03:10:33 +00:00
Danny Mayer
dcc35bf6a4 Previous update was missing the release version of telling how to build the resource file [RT #1668] 2001-09-04 03:05:55 +00:00
Mark Andrews
bae5d9fcb4 977. [bug] Improve "not at top of zone" error message. 2001-09-04 00:35:19 +00:00
Mark Andrews
a9c2c07c96 zone_settimer() nolonger needs to calculate the interval between two times.
[RT #1691]
2001-09-03 01:21:19 +00:00
Danny Mayer
a22a4084dd Update to change path to resolv.conf and define RESOLV_CONF 2001-09-01 05:22:04 +00:00
Andreas Gustafsson
847ed3fccf new configuration data type cfg_type_sizenodefault,
which can be a size or the string 'unlimited' but not the string
'default'.  This is used for max-cache-size and max-journal-size,
and obsoletes the special check for 'default' in check.c.
2001-09-01 01:41:40 +00:00
Andreas Gustafsson
0c5233171f allow setting a default max-journal-size in the options or view 2001-09-01 01:24:29 +00:00
Andreas Gustafsson
cb8fd52bbe call the new option for setting the maximum journal
size 'max-journal-size', not 'journal-size', in the tradition of the
historical option 'max-ixfr-log-size'
2001-09-01 01:13:41 +00:00
Andreas Gustafsson
355cc22e32 The epoch is once again zero in Win32;
removed win32 implementations of isc_time_set(), isc_time_seconds() and
isc_time_secondsastimet() as they are no longer needed
2001-09-01 00:55:27 +00:00
Andreas Gustafsson
43f117d5f0 typo in comment 2001-09-01 00:46:04 +00:00
Andreas Gustafsson
b3034d815c isc_time_formattimestamp() declaration should go before ISC_LANG_ENDDECLS, not after 2001-09-01 00:18:43 +00:00
Andreas Gustafsson
bdec94477c isc_file_getmodtime() should call GetFileTime(), not file_stats(),
so that the time returned is a native win32 FILETIME
2001-09-01 00:05:38 +00:00
Andreas Gustafsson
528baec07b removed C++ comments; comment and indentation style 2001-08-31 23:57:05 +00:00
Andreas Gustafsson
ff8cd3afa7 implemented isc_time_formattimestamp() for Win32.
I have no way of testing this.
2001-08-31 22:31:18 +00:00
Andreas Gustafsson
6184f9fc1e REQUIRE(len > 0) 2001-08-31 21:58:49 +00:00
Andreas Gustafsson
c8563aaf86 added isc_time_formattimestamp() (Unix only so far);
call it from log.c [RT #1687]
2001-08-31 21:51:27 +00:00
Andreas Gustafsson
0674850fcb in dns_zone_notifyreceive(), the variable 'now' was
set but never used
2001-08-31 19:27:22 +00:00
Andreas Gustafsson
130904d648 in zone_settimer(), it seems cleaner to check whether
the variable 'next' is set to the epoch (which is used as a sentinel value
meaning 'not set') before comparing it to another time value rather than
after, since the other comparison is meaningless when 'next' is the epoch
2001-08-31 19:25:51 +00:00
Andreas Gustafsson
9113f8b75c pullup: string formats 2001-08-31 18:01:22 +00:00
Mark Andrews
4b87939256 strerror() -> isc__strerror() [RT #1689] 2001-08-31 05:57:58 +00:00
Mark Andrews
6db92bd107 string formats 2001-08-31 04:47:59 +00:00
Mark Andrews
ac9d955cdd pullup:
The request object would fail to send its completion event when
the control event was delivered if a response was received between
sending and delivery of the completion event [RT #1676]
Fix locking hierarchy violation [RT #1672]
2001-08-31 02:07:11 +00:00
Mark Andrews
cfa3ab7f89 Timers now use isc_time_t rather than isc_stdtime_t.
zone->expiretime now has a consistant epoch [RT #1686]
2001-08-31 02:01:56 +00:00
Andreas Gustafsson
39125379e5 made mkstemp() static 2001-08-30 21:16:41 +00:00
Andreas Gustafsson
faa96aba6d removed empty line 2001-08-30 20:55:37 +00:00
Andreas Gustafsson
c2df80e759 lower case 2001-08-30 20:40:27 +00:00
Andreas Gustafsson
6aa1a89bf1 pullup:
RT #1675 resolv.conf was specified to be in an invalid directory.
Location was changed to be in the same etc directory as all of the other
configuration files
2001-08-30 20:29:53 +00:00
Andreas Gustafsson
9ec3c7b42d mem.c did not compile when ISC_MEM_TRACKLINES was not defined 2001-08-30 20:23:44 +00:00
Mark Andrews
6668eca26b 972. [bug] The file modification time code in zone.c was using the
wrong epoch.  [RT #1667]
2001-08-30 06:48:43 +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
Mark Andrews
90989375ca Improve time taken to free memory when ISC_MEM_DEBUGRECORD is set. 2001-08-30 05:40:04 +00:00
Mark Andrews
bd3091eb7d compact journals on succesful dumps to the zone file. 2001-08-30 05:24:44 +00:00
Mark Andrews
cc0a5f7142 journal-size can now be set from named.conf 2001-08-30 05:23:00 +00:00
Mark Andrews
fa59c08f71 abort transfer if SOA response is not authoritative. 2001-08-30 05:12:39 +00:00
Mark Andrews
2c64908ae0 DNS_R_NOTAUTHORITATIVE 2001-08-30 05:10:55 +00:00
Mark Andrews
53e3724e23 dns_journal_compact() 2001-08-30 05:04:18 +00:00
Mark Andrews
59251c9e9c isc_file_truncate() 2001-08-30 04:55:36 +00:00
Mark Andrews
91579a2424 add isc_strerror to build 2001-08-30 04:49:36 +00:00
cvs2git
92e662f530 This commit was manufactured by cvs2git to create branch 'v9_3'. 2001-08-30 04:33:22 +00:00
cvs2git
02da396800 This commit was manufactured by cvs2git to create branch 'v9_2'. 2001-08-30 04:33:21 +00:00
Mark Andrews
c654449ccf isc__strerror 2001-08-30 04:33:20 +00:00
Danny Mayer
b602bf9e8b RT #1667. File modification dates were wrong due to the isc_time_set routine not adding back the epoch to give the absolute Windows time and isc_file_settime not correctly making the right calls to modify the file date 2001-08-30 04:31:31 +00:00
Danny Mayer
e2a35f7524 RT #1675 resolv.conf was specified to be in an invalid directory. Location was changed to be in the same etc directory as all of the other configuration files 2001-08-30 04:28:24 +00:00
Andreas Gustafsson
8068ceb2a9 The request object would fail to send its completion event
when the control event was delivered if a response was received between sending and delivery
of the completion event [RT #1676]
2001-08-29 23:52:28 +00:00
Andreas Gustafsson
9cb39bbe40 fix locking hierarchy violation [RT #1672] 2001-08-29 21:15:56 +00:00
Mark Andrews
7231717254 Ensure that the files contents have been synced to disk prior to renaming. 2001-08-29 05:52:49 +00:00
Danny Mayer
06b47b13db Bug #1671 isc_time_now was erroneously calling strtime() 2001-08-29 05:13:42 +00:00
Danny Mayer
9559bf89b1 Bug #1668 resource file was missing in link 2001-08-29 05:08:58 +00:00
Mark Andrews
28fc90e6c8 #857 was incomplete, ISC_MAGIC was not being used everwhere it should have been.
'magic' was not being declared consistantly.
some #include <isc/magic.h> were missing from other include files.
NS_SERVER_VALID was not using ISC_MAGIC_VALID.
2001-08-28 03:58:29 +00:00
Andreas Gustafsson
9c067741f1 don't #define DNS_STATS_NCOUNTERS in two different places [RT #1666] 2001-08-27 21:47:00 +00:00
Andreas Gustafsson
fba21fcab9 regenerated 2001-08-27 18:53:29 +00:00
Andreas Gustafsson
b495fd2992 each AC_MSG_CHECKING should be balanced with an
AC_MSG_RESULT
2001-08-27 18:52:59 +00:00
Andreas Gustafsson
c7eb99970e consistently use single quotes around varying text
in log messages
2001-08-27 17:21:56 +00:00
Andreas Gustafsson
135c1c53b8 don't INSIST() that calling dns_db_find() on the root hints
only binds the rdataset when returning ISC_R_SUCCESS, because that's not the case -
for example, if the root hints are '. 300 IN CNAME .', DNS_R_CNAME is returned and
the rdataset is bound
2001-08-27 17:20:10 +00:00
Mark Andrews
89555ff443 965. [bug] Using non root hints caused a rbtdb node reference
leak.    [RT #1581, RT #1618]
2001-08-27 06:10:17 +00:00
Mark Andrews
440906ce59 INSIST that the rdataset is unassociated. 2001-08-27 03:58:44 +00:00
Mark Andrews
73ac1894ea 964. [func] Warn if non root hints data is found in hints file. 2001-08-27 03:36:00 +00:00
Mark Andrews
330b421487 963. [bug] bad ISC_LANG_ENDDECLS. [RT #1645] 2001-08-20 23:56:25 +00:00
Mark Andrews
9b30c8e8f0 regen 2001-08-20 07:47:05 +00:00
Mark Andrews
e22dca2a9a 962. [bug] libbind: bad "#undef", don't attempt to install
non-existant nlist.h.  [RT #1640]
2001-08-20 07:44:53 +00:00
Mark Andrews
d7728fcf85 add nlist.h 2001-08-20 07:29:47 +00:00
Mark Andrews
2c0b26955e 961. [bug] Tried to use a IPV6 feature when ISC_PLATFORM_HAVEIPV6
was not defined.  [RT #1482]
2001-08-16 07:27:48 +00:00
Mark Andrews
2449f41e75 960. [port] liblwres failed to build on systems with support for
getrrsetbyname() in the OS.  [RT #1592]
2001-08-16 06:39:33 +00:00
Mark Andrews
6f7660093e 959. [port] freebsd: ncpus via sysctlbyname(). [RT #1584] 2001-08-16 06:19:58 +00:00
Mark Andrews
8ff4edd14e silence format warning: remove unused arg. 2001-08-12 00:12:14 +00:00
Mark Andrews
a28db387fc full copyrights 2001-08-09 06:15:34 +00:00
Mark Andrews
2861ab6188 regen 2001-08-09 06:09:30 +00:00
Mark Andrews
8e6813696a support running configure in a directory other than the source directory 2001-08-09 05:59:58 +00:00
Danny Mayer
51ac5c28de Changed win32 code to remove references to named.key 2001-08-09 02:55:41 +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
b21320abb5 brace style 2001-08-08 20:52:34 +00:00
Danny Mayer
66352c0a05 Added support for key for win32 2001-08-06 05:34:26 +00:00
Mark Andrews
907ec2c618 952. [bug] The server required manual intervention to serve the
affected zones if it died between creating a journal
                        and committing the first change to it.
2001-08-06 02:10:59 +00:00
Andreas Gustafsson
66ff5b7d78 cut-and-paste-o 2001-08-03 23:19:01 +00:00
Andreas Gustafsson
7dac8d231c the server would catch an assertion failure if the key statement in rndc.key
was missing the algorithm or secret clause
2001-08-03 17:24:11 +00:00
Mark Andrews
326bcfa0e2 rndc.key support 2001-08-03 05:56:22 +00:00
Andreas Gustafsson
5c213fcd1d mark rrset-order as unimplemented [RT #1561] 2001-08-02 23:36:23 +00:00
Danny Mayer
a59a1d313a Updated .mak files to remove dependancies 2001-08-02 07:05:43 +00:00
Andreas Gustafsson
23a020bc13 950. [bug] Explicit TTLs did not properly override
due to a bug in change 834. [RT #1558]
2001-08-01 17:58:45 +00:00
Andreas Gustafsson
ab54086529 print detailed description of grammar of socket addresses instead
of obscure names like 'v6addrportwild'; misc cleanup
2001-07-31 20:07:48 +00:00
Mark Andrews
43e2ec89d8 redundate #include 2001-07-31 03:45:04 +00:00
Andreas Gustafsson
9f5a862a90 lwres.h should be installed, and net.h should not 2001-07-31 01:32:45 +00:00
Mark Andrews
c38b92000c 947. [bug] dns_rdata_soa_t had a badly name element "mname" which
was really the RNAME field from RFC1035.  To avoid
                        confusion and silent errors that would occur it ther
                        "origin" and "mname" elements were given their correct
                        names "mname" and "rname" respectively, the "mname"
                        element is renamed to "contact".
2001-07-30 01:09:14 +00:00
Danny Mayer
b59115de5f Updated config information 2001-07-28 02:50:39 +00:00
Andreas Gustafsson
321fd0ceb4 in named-checkconf, pass in the complete path of named.conf
as NAMED_CONFFILE instead of constructing it by compile-time concatenation of NS_SYSCONFDIR
and /named.conf, to facilitate win32 support
2001-07-27 17:45:29 +00:00
Danny Mayer
0794ffffee Added paths info 2001-07-27 05:17:39 +00:00
Danny Mayer
075a7534a8 Added path information - retry 2001-07-27 05:16:55 +00:00
Danny Mayer
61e561c2ca Added path information 2001-07-27 05:15:27 +00:00
Andreas Gustafsson
90e289c59f A6 has an RFC now 2001-07-26 21:34:02 +00:00
Andreas Gustafsson
657a6a6f3c some unimplemented options were not marked as such in the grammar summary output 2001-07-26 21:27:51 +00:00
Brian Wellington
26a5f97dd8 Don't refer to keys as "TSIG keys", since they might be used for rndc only,
and this could be confusing.
2001-07-26 20:54:35 +00:00
Brian Wellington
ee3ab6063d 945. [func] Add the new view-specific options
"match-destinations" and "match-recursive-only".
2001-07-26 20:42:46 +00:00
Andreas Gustafsson
e5b18854e3 define RNDC_AUTOCONFFILE on win32 so that the code again
compiles on win32 and behaves like it did before.
2001-07-26 20:40:01 +00:00
Andreas Gustafsson
38f0e0520c tabified 2001-07-26 20:31:48 +00:00
Andreas Gustafsson
dcfaeabc63 renamed RNDC_SYSCONFPATH to RNDC_CONFFILE; there's
nothing specifically SYS about it
2001-07-26 20:06:22 +00:00
Danny Mayer
922a15c7c0 Changes to support win32 2001-07-26 03:15:16 +00:00
Brian Wellington
d81622b537 944. [func] Check for expired signatures on load. 2001-07-24 18:49:06 +00:00
Danny Mayer
b61c97cebd Changed initialize to include void. This keeps the VC++ compiler from complaining about the isc_once_do code arguments 2001-07-24 05:23:38 +00:00
Andreas Gustafsson
831bbce008 commented trust levels 2001-07-23 17:55:37 +00:00
Andreas Gustafsson
2fa436a15c 80 columns 2001-07-23 16:58:18 +00:00
Mark Andrews
90228beed3 regen 2001-07-23 07:03:10 +00:00
Mark Andrews
af898946e4 osf 4.0 support 2001-07-23 07:02:48 +00:00
Mark Andrews
3ef9b0c10f regen 2001-07-23 05:22:22 +00:00
Mark Andrews
a1a421899e BSDI 4.2 support [RT #1529] 2001-07-23 05:21:56 +00:00
Danny Mayer
dfca19a1aa Added LIBISCCFG_EXTERNAL_DATA macros to 3 declarations 2001-07-23 05:00:44 +00:00
Danny Mayer
1bf250400e Make file for bindevt 2001-07-23 03:04:32 +00:00
Danny Mayer
2b9debd520 syslog for win32 2001-07-23 03:03:22 +00:00
Danny Mayer
10266aa76f Conditionalize declaration of LIBLWRES_EXTERNAL_DATA 2001-07-23 03:01:56 +00:00
Mark Andrews
06596f0ec7 wrog prototype for getnetbyaddr_r under glibc 2001-07-23 00:48:51 +00:00
Andreas Gustafsson
33654a83db const correctness [RT #1011] 2001-07-23 00:23:30 +00:00
Mark Andrews
75b3a86c57 regen 2001-07-23 00:05:04 +00:00
Mark Andrews
ab35bf14bd osf getnetent_r changes 2001-07-23 00:04:28 +00:00
Danny Mayer
72dc0b0824 Added make file 2001-07-22 06:30:18 +00:00
Danny Mayer
1186577d90 Updated scripts and added make file 2001-07-22 06:28:49 +00:00
Danny Mayer
e056d87076 Updated scripts 2001-07-22 06:26:47 +00:00
Danny Mayer
138fc7eeba Created makefile 2001-07-22 06:25:34 +00:00
Danny Mayer
22a0a2c432 Fixed variable declarations 2001-07-22 06:22:28 +00:00
Danny Mayer
71542eaf04 Added make file and updated scripts 2001-07-22 06:21:05 +00:00
Mark Andrews
4bec81d388 regen 2001-07-20 11:06:19 +00:00
Mark Andrews
2da0b7dfbd 942. [port] libbind: GETNETBYADDR_ADDR_T was not correctly
defined on some platforms.
2001-07-20 11:06:05 +00:00
Andreas Gustafsson
7faa8f35e5 coding style 2001-07-19 17:13:54 +00:00
Andreas Gustafsson
001d1ceec6 coding style 2001-07-19 16:59:32 +00:00
Brian Wellington
1cb6e8cbe4 941. [bug] The configuration checker crashed if a slave
zone didn't contain a masters statement. [RT #1514]
2001-07-19 16:29:14 +00:00
Danny Mayer
3316814025 Added support for win32 2001-07-19 06:11:31 +00:00
Mark Andrews
2033e30585 940. [bug] Double zone locking failure on error path. [RT #1510] 2001-07-19 05:08:03 +00:00
Mark Andrews
3489d64bde "or equals" rather than "not equals" 2001-07-19 04:57:46 +00:00
Danny Mayer
7181165333 Add support for win32 2001-07-19 02:50:12 +00:00
Andreas Gustafsson
7ecaf69507 need <lwres/platform.h> 2001-07-18 20:14:52 +00:00
Andreas Gustafsson
3abbed44db coding style 2001-07-18 18:29:59 +00:00
Mark Andrews
aac5a28f1f LIBISCCFG_EXTERNAL_DATA should be in lwres/platform.h 2001-07-18 08:15:23 +00:00
Mark Andrews
964a14ad23 regen 2001-07-18 05:50:18 +00:00
Mark Andrews
f24920422d we don't need to know about rlim_t 2001-07-18 05:49:13 +00:00
Mark Andrews
9c1a4265ad regen 2001-07-18 05:42:07 +00:00
Mark Andrews
51bb20b0d7 report the results of "checking for socket length type..." 2001-07-18 05:40:52 +00:00
Mark Andrews
29493eee3d paths.h 2001-07-18 05:13:27 +00:00
Danny Mayer
5236050c0f Add support for win32 2001-07-18 02:37:15 +00:00
Andreas Gustafsson
d2a7d7e26c all failures opening /dev/random were reported as
'I/O error'.  This was highly confusing.
2001-07-18 01:31:13 +00:00
Brian Wellington
8b8812c41d regen 2001-07-17 22:29:27 +00:00
Brian Wellington
5aaf43590f lib/bind doesn't actually use linux/capability.h or sys/prctl.h 2001-07-17 22:29:16 +00:00
Andreas Gustafsson
07dcadc6e2 update_copyrights 2001-07-17 20:29:36 +00:00
Andreas Gustafsson
4954945531 coding style 2001-07-17 19:17:02 +00:00
Mark Andrews
15903c9f3a memory allocation failure would cause INSIST(ctx->stats[i].gets == 0) failure.
use consistant arguement name for MEMRECORD
2001-07-17 10:02:46 +00:00
Danny Mayer
fd0ec4bfad Initial win32 Release 2001-07-17 06:13:59 +00:00
Danny Mayer
c84e68d720 Initial win32 Release 2001-07-17 06:10:24 +00:00
Mark Andrews
0176adc7c5 937. [bug] A race when shutting down a zone could trigger a
INSIST() failure. [RT #1034]
2001-07-17 02:49:44 +00:00
Andreas Gustafsson
ba35e9924e added isc_file_ischdiridempotent() 2001-07-16 18:33:02 +00:00
Andreas Gustafsson
a548a3c20c added unix implementation of isc_file_absolutepath() 2001-07-16 17:26:44 +00:00
Andreas Gustafsson
dee69dd3aa renamed isc_file_getabsolutepath() to isc_file_absolutepath()
to be more consistent with established naming conventions
2001-07-16 17:22:17 +00:00
Andreas Gustafsson
5827c8e0a6 80 columns 2001-07-16 17:15:08 +00:00
Andreas Gustafsson
83018d6cf9 removed spurious empty line inserted in previous commit 2001-07-16 17:14:38 +00:00
Mark Andrews
ac1f768061 regen 2001-07-16 14:43:49 +00:00
Mark Andrews
47dfc702de glibc getserv*_r() 2001-07-16 14:43:40 +00:00
Brian Wellington
cabaeca9ae missing assertion checks 2001-07-16 09:48:05 +00:00
Mark Andrews
e88c4a4917 regen 2001-07-16 08:38:06 +00:00
Mark Andrews
101e6adfe0 glibc getproto*_r() 2001-07-16 08:37:45 +00:00
Mark Andrews
fd61f111a8 regen 2001-07-16 08:05:43 +00:00
Mark Andrews
16b5ecc6f3 glibc getnet*_r() 2001-07-16 08:05:20 +00:00
Danny Mayer
1336066b63 Added support for Win32 2001-07-16 05:48:16 +00:00
Mark Andrews
acee1ae35c glibc prototypes 2001-07-16 05:23:28 +00:00
Mark Andrews
7c7c717788 HOST_R_SETANSWER 2001-07-16 05:17:13 +00:00
Mark Andrews
8c8d889d10 glibc prototypes for gethost*_r(). 2001-07-16 05:16:33 +00:00
Danny Mayer
f621719829 Added support for Win32 2001-07-16 05:10:30 +00:00
Mark Andrews
5deaff6621 regen 2001-07-16 05:02:58 +00:00
Mark Andrews
3024819c2e int -> size_t 2001-07-16 05:01:27 +00:00
Mark Andrews
692d2a9c7e regen 2001-07-16 04:55:31 +00:00
Mark Andrews
4ccd54f3af in 2001-07-16 04:54:23 +00:00
Mark Andrews
42f476472a regen 2001-07-16 04:24:38 +00:00
Mark Andrews
6cf48dea49 glibc's gethost*_r() is different to anyone elses. 2001-07-16 04:23:00 +00:00
Andreas Gustafsson
9115330256 coding style 2001-07-16 04:09:45 +00:00
Danny Mayer
3bd4083e48 Updates to support win32 2001-07-16 03:52:14 +00:00
Mark Andrews
f73c8fffee pullup from BIND 8:
1242.   [bug]           inet_pton() failed to reject octal input.
2001-07-16 03:31:45 +00:00
Mark Andrews
bddfe77128 936. [func] Warn when non dotted decimal quad's are used.
[RT #1084]

 935.   [bug]           inet_pton failed to reject leading zeros.
2001-07-16 03:06:53 +00:00
Mark Andrews
bd12be6e88 spelling 2001-07-15 23:29:48 +00:00
Andreas Gustafsson
aa0dc8d920 934. [port] Deal with systems where accept() spuriously returns
ECONNRESET.
2001-07-15 22:50:24 +00:00
Mark Andrews
9ec26a1862 regen 2001-07-15 22:23:13 +00:00
Mark Andrews
159b83ff18 unixware [RT #1496] 2001-07-15 22:20:43 +00:00
Mark Andrews
5c2551db52 regen 2001-07-14 23:16:50 +00:00
Mark Andrews
47d48791fc 933. [bug] configure failed doing libbind on platforms not
supported by BIND 8.  [RT #1496]
2001-07-14 23:14:09 +00:00
Brian Wellington
b9be76ed89 lwres.h wasn't installed [RT #1494] 2001-07-14 18:41:33 +00:00
Andreas Gustafsson
86a733bc74 use ISC_PLATFORM_RLIMITTYPE unconditionally, eliminating
the need for the HAVE_RLIM_T macro
2001-07-14 01:55:08 +00:00
Mark Andrews
0792e396ea regen 2001-07-13 02:46:21 +00:00
Mark Andrews
5e68d98eff add libtool support to libbind [RT #1491] 2001-07-13 02:38:28 +00:00
Danny Mayer
c4958494a9 Updates to support LIBISC_EXTERNAL_DATA and misc. cleanup 2001-07-12 05:58:28 +00:00
Mark Andrews
c70896e026 namespace collision [RT #1399] 2001-07-12 03:51:14 +00:00
Mark Andrews
39ebcd5955 #927
check for DUMPNEEDED in dns_zone_flush.
check for zone->masterfile != NULL in zone_dump().
2001-07-11 23:15:14 +00:00
Andreas Gustafsson
dc9b928cf6 net.h has moved 2001-07-11 21:42:25 +00:00
Brian Wellington
b6d7e96688 LOCK_ZONE/UNLOCK_ZONE, not LOCK/UNLOCK 2001-07-11 19:12:53 +00:00
Brian Wellington
529017a705 The testing framework didn't handle T_UNTESTED at all. It also sucks. 2001-07-11 18:51:22 +00:00
David Lawrence
37aa910318 ISC_PLATFORM_USEDECLSPEC hook for Microsoft DLL declaration junk 2001-07-11 05:32:55 +00:00
Mark Andrews
e9596e1fb3 927. [bug] Don't hold the zone lock for the entire dump to disk.
[RT #1423]
2001-07-11 05:20:26 +00:00
Danny Mayer
ad38e19578 Fix isabsolute for absolute path names 2001-07-11 04:32:15 +00:00
Bob Halley
c54210716e avoid deadlock with the ADB when shutting down [RT #1324] 2001-07-11 01:19:56 +00:00
Brian Wellington
9a43e47721 ordering 2001-07-10 23:38:44 +00:00
Brian Wellington
3fcf6b956f 925. [cleanup] Remove openssl from the distribution; require that
--with-openssl be specified if DNSSEC is needed.
2001-07-10 21:40:10 +00:00
Brian Wellington
6614bac268 oops, don't return an isc_boolean_t as an isc_result_t. 2001-07-10 21:27:59 +00:00
Andreas Gustafsson
1858039a0e spacing 2001-07-10 21:13:07 +00:00
Andreas Gustafsson
3d4d93c35b misplaced cast could cause EDNS extended RCODE bits to be lost [RT #1483] 2001-07-10 20:09:24 +00:00
Andreas Gustafsson
55a96dbea0 need sys/time.h on some platforms 2001-07-10 19:54:01 +00:00
Brian Wellington
5939aa7265 wording 2001-07-10 19:08:28 +00:00
Brian Wellington
3b31ce9da9 functions can now return DST_R_NOCRYPTO 2001-07-10 19:05:53 +00:00
Andreas Gustafsson
34729dbcb3 split lwres/net.h into separate Unix and Win32 version to facilitate
porting; rely on that header for networking definitions rather than redundantly
including OS-dependent headers from the various lwres .c files
2001-07-10 18:26:12 +00:00
Andreas Gustafsson
5d97773191 rewrote isc_file_isabsolute() 2001-07-10 17:31:05 +00:00
Danny Mayer
14597c218d Fix memory leak [RT 1478] 2001-07-10 06:27:44 +00:00
Danny Mayer
bb48ac4f81 array bounds error in isc_file_isabsolute and REQUIRE != NULL fixes [RT 1470] 2001-07-10 06:24:15 +00:00
Brian Wellington
28e2058c5f macro style 2001-07-10 05:12:43 +00:00
Brian Wellington
9622173ccb only create a memory pool if OPENSSL is defined. 2001-07-10 05:00:42 +00:00
Brian Wellington
4f0187f10c DST_R_NOCRYPTO 2001-07-10 04:34:36 +00:00
Brian Wellington
bb5de15290 REQUIRE that parameters are not NULL in many functions [RT #1470] 2001-07-10 04:23:01 +00:00
Brian Wellington
024550401d #if defined(OPENSSL) ==> #ifdef OPENSSL
remove unused #include <openssl/rand.h>
2001-07-10 04:01:19 +00:00
Andreas Gustafsson
a8f94d29b3 compile the version number into the isccfg and isccc libraries,
like we do with all other libraries
2001-07-09 22:25:29 +00:00
Andreas Gustafsson
38fed7505d do multiple inclusion protection in all header files, and using the established ISC style 2001-07-09 21:34:44 +00:00
Andreas Gustafsson
ec4f2e859f 80 columns 2001-07-09 21:27:45 +00:00
Andreas Gustafsson
e76d4c91bf coding style 2001-07-09 21:06:30 +00:00
Mark Andrews
9d99e3fda1 924. [port] Extend pre-RFC2133 support. [RT #987] 2001-07-09 08:07:41 +00:00
Mark Andrews
de18d9daa6 regen 2001-07-09 07:35:03 +00:00
Mark Andrews
752b0c0fa7 install as ${prefix}/bind/*. [RT #1472] 2001-07-09 07:33:11 +00:00
Danny Mayer
36d26b9d26 add export for isc_ntfile_printf 2001-07-08 07:22:42 +00:00
Danny Mayer
11045ab3d1 code style cleanup 2001-07-08 05:16:13 +00:00
Danny Mayer
68c2ccc953 code style cleanup 2001-07-08 05:09:35 +00:00
Brian Wellington
0a2d5c9905 924. [port] Apply #910 to lib/lwres. [RT #987] 2001-07-07 00:03:26 +00:00
Andreas Gustafsson
f2ee3341c7 spacing 2001-07-06 22:53:48 +00:00
Andreas Gustafsson
886db6ade3 make install failed in lib/bind/include due to lack of a mkinstalldirs script
in lib/bind
2001-07-06 22:23:42 +00:00
Andreas Gustafsson
305795c093 finish app.h move 2001-07-06 22:12:21 +00:00
Andreas Gustafsson
1e71bc82b8 coding style 2001-07-06 21:57:22 +00:00
Andreas Gustafsson
718d6eadd4 spacing 2001-07-06 21:47:15 +00:00
Andreas Gustafsson
96ed624253 923. [bug] Multiline TSIG secrets (and other multiline strings)
were not accepted in named.conf. [RT #1469]
2001-07-06 20:34:12 +00:00
Andreas Gustafsson
ad493ef9dd spacing 2001-07-06 20:15:08 +00:00
Andreas Gustafsson
675a191f43 moved <isc/app.h> to OS-independent include directory 2001-07-06 19:50:05 +00:00
Andreas Gustafsson
8e3366bd7c simplified 2001-07-06 19:40:33 +00:00
Andreas Gustafsson
19b34f979c removed initializations of nonexistent variables at Danny's request 2001-07-06 17:35:04 +00:00
Mark Andrews
221a206115 IN6_IS_ADDR_V4COMPAT and IN6_IS_ADDR_V4MAPPED are also broken in glibc 2.1 2001-07-06 07:25:51 +00:00
Mark Andrews
f5af89cdee IN6_ARE_ADDR_EQUAL and IN6_IS_ADDR_UNSPECIFIED are broken in glibc 2.1 2001-07-06 06:13:19 +00:00
Danny Mayer
2c50ab702f stat routines 2001-07-06 06:00:17 +00:00
Danny Mayer
7fb411cfd1 plaform specific header 2001-07-06 05:59:09 +00:00
Danny Mayer
b02635aa75 offset header 2001-07-06 05:58:00 +00:00
Danny Mayer
1ee7ce8fbd win32-specific runtime path header 2001-07-06 05:57:19 +00:00
Danny Mayer
b22d62aa69 ntfile FILE replacement headers 2001-07-06 05:56:25 +00:00
Danny Mayer
bcf5804255 win32 keyboard routines 2001-07-06 05:51:45 +00:00
Danny Mayer
a0f854291f IPv6 on Win32 header 2001-07-06 05:50:42 +00:00
Danny Mayer
12d08bf91e win32-specific integer definitions 2001-07-06 05:49:22 +00:00
Danny Mayer
c15033634e Initial win32 release 2001-07-06 05:48:27 +00:00
Danny Mayer
83a373fc81 BIND Event information header 2001-07-06 05:46:37 +00:00
Danny Mayer
f950ce9932 BIND registry header information 2001-07-06 05:45:21 +00:00
Danny Mayer
c5e84ff0e4 app headers 2001-07-06 05:44:32 +00:00
Danny Mayer
f210fb51ef Version information for libisc module 2001-07-06 05:43:17 +00:00
Danny Mayer
d4cfec8537 I/O header definitions 2001-07-06 05:42:24 +00:00
Danny Mayer
39a1539c7a Header file for win32 emulation of syslog use the event log 2001-07-06 05:40:41 +00:00
Danny Mayer
f3f064ba86 win32 emulation of syslog use the event log 2001-07-06 05:39:57 +00:00
Danny Mayer
9ecea05b89 stdio routines 2001-07-06 05:38:47 +00:00
Danny Mayer
fd61d0cab1 Initial release of socket code 2001-07-06 05:37:46 +00:00
Danny Mayer
ca5c761cde Resources Available 2001-07-06 05:37:10 +00:00
Danny Mayer
1c456bcdb4 O/S specific code 2001-07-06 05:36:13 +00:00
Danny Mayer
72c0894efa functions to determine locations of configuration files at runttime 2001-07-06 05:35:09 +00:00
Danny Mayer
e397736476 win32 overrides of FILE function to centralize I/O stream and avoid problems with iob array 2001-07-06 05:34:06 +00:00
Danny Mayer
48b785fe6b win32 version of netdb.h headers 2001-07-06 05:32:44 +00:00
Danny Mayer
602f0b8e48 net routines 2001-07-06 05:30:51 +00:00
Danny Mayer
e1bdeeadb3 libisc workspace file 2001-07-06 05:29:58 +00:00
Danny Mayer
fc72de271b libisc project file 2001-07-06 05:29:24 +00:00
Danny Mayer
1d7574a6de Export link File 2001-07-06 05:28:32 +00:00
Danny Mayer
0b38e0a117 Keyboard Routines 2001-07-06 05:27:37 +00:00
Danny Mayer
e2d579a021 ipv6 variables initialization 2001-07-06 05:26:58 +00:00
Danny Mayer
3d8c1213d9 Interface Iteration routines 2001-07-06 05:25:20 +00:00
Danny Mayer
fc4bae7e83 header file for error routines 2001-07-06 05:24:22 +00:00
Danny Mayer
9fe3c2060d error routines 2001-07-06 05:23:58 +00:00
Danny Mayer
a38e51e5ef Fixed duplicate routines 2001-07-06 05:22:46 +00:00
Danny Mayer
6f5d6e3f8c isc_app_* routines 2001-07-06 05:21:44 +00:00
Danny Mayer
1e36937976 Entry point routine for libisc 2001-07-06 05:20:33 +00:00
Danny Mayer
e35c1bb3ec Initial win32 Release 2001-07-06 05:08:39 +00:00
Danny Mayer
2773eae702 Fix variable declarations and remove initializations 2001-07-06 02:57:40 +00:00
Danny Mayer
4da4fef481 Fix printf's to use fprintf(stdout... to be consistent and set data initializations in main since they are runtime addresses 2001-07-06 02:56:47 +00:00
Brian Wellington
ed95ebaa42 remove references to vms_idhacks.h, since VMS doesn't seem to need it.
[RT #1432]
2001-07-05 19:06:07 +00:00
Brian Wellington
b6d5ee2fb2 ignore lib/bind/timestamp and lib/bind/port/*/include/Makefile 2001-07-05 18:50:39 +00:00
Mark Andrews
c8366d92f7 add port_before.h/port_after.h 2001-07-05 06:18:43 +00:00
Mark Andrews
3b8c76cb25 regen 2001-07-05 06:13:15 +00:00
Mark Andrews
9565793aed pullup BIND 8.
1239.   [bug]           call res_ndestroy() in net_data_destroy().
2001-07-04 08:10:23 +00:00
Mark Andrews
e598df739d Add getnetgrent_r.c prototype 2001-07-04 05:32:42 +00:00
Mark Andrews
93373a8c3c silence broken IN6ADDR_{ANY,LOOPBACK}_INIT macros 2001-07-04 05:18:12 +00:00
Mark Andrews
60d17e54ea singed/unsigned 2001-07-04 04:51:05 +00:00
Mark Andrews
567fb9c5e7 silence __sputaux 2001-07-04 03:48:43 +00:00
Brian Wellington
64b92523f9 check for getc_unlocked() 2001-07-04 00:34:44 +00:00
Andreas Gustafsson
37c961df41 extra space in error message string 2001-07-03 17:12:19 +00:00
Mark Andrews
2ef189c6d7 missed one 2001-07-03 13:44:53 +00:00
Mark Andrews
7cbf7d6613 nsprom() was unused. 2001-07-03 08:11:51 +00:00
Mark Andrews
5a20525ef3 unreachable statement 2001-07-03 07:53:36 +00:00
Mark Andrews
b8c618c852 remove unreachable code.
move&correct error statement.
2001-07-03 07:43:02 +00:00
Mark Andrews
7fff9e8cea unused variable 2001-07-03 06:55:04 +00:00
Mark Andrews
2b959a1fad regen 2001-07-03 06:52:15 +00:00
Mark Andrews
7050586959 silence aix (+others) compiler warnings re accept, getsockname, getpeername,
recvfrom etc.
2001-07-03 06:49:55 +00:00
Mark Andrews
265c5051d7 cp was being assign from the wrong pointer 2001-07-03 06:47:32 +00:00
Mark Andrews
b0a599b02e regen 2001-07-03 03:56:47 +00:00
Mark Andrews
a1703aa367 ISC_SOCKADDR_LEN_T 2001-07-03 03:55:42 +00:00
Andreas Gustafsson
00380255bd regenerated 2001-07-02 21:29:16 +00:00
Andreas Gustafsson
47ad4fad77 922. [func] Added two new lwres_getrrsetbyname() result codes,
ERR_NONAME and ERR_NODATA.
2001-07-02 21:28:56 +00:00
Brian Wellington
5733d25b06 921. [bug] lwres returned an incorrect error code if it received
a truncated message.

 920.	[func]		Increase the lwres receive buffer size to 16K.
			[RT #1451]
2001-07-02 20:46:31 +00:00
Andreas Gustafsson
5f62432db2 removed extraneous empty line 2001-07-02 20:44:30 +00:00
Andreas Gustafsson
2b8e5a5254 errors were logged as warnings and vice versa 2001-07-02 17:48:27 +00:00
Andreas Gustafsson
207c7c1ea3 added ISC_FORMAT_PRINTF checks 2001-07-02 17:05:46 +00:00
Mark Andrews
1f90214bb4 pullup from BIND 8:
1236.   [bug]           ignore white space after address of nameserver.
2001-07-02 02:33:45 +00:00
Mark Andrews
8eca454f9f regen 2001-07-02 02:03:54 +00:00
Mark Andrews
9e80f632c8 pullup BIND 8:
Solaris 2.4 (and earlier) USE_FIONBIO_IOCTL support.
2001-07-02 02:02:27 +00:00
Mark Andrews
d4e535315d pullup from BIND 8:
1237.   [bug]           buffer overrun, access mode read.
2001-07-02 00:44:50 +00:00
Danny Mayer
cddd0ddf07 rdclass and rdtype size misdeclaration 2001-06-30 04:13:50 +00:00
Andreas Gustafsson
97e1692460 New function cfg_print_grammar(), which generates a human-readable
summary of the grammar for a given configuration type from its syntax
tables.  Running bin/tests/cfg_test --grammar --named will print a
named.conf grammar summary, and bin/tests/cfg_test --grammar --rndc
will print the rndc.conf grammar summary.
2001-06-29 18:36:13 +00:00
Mark Andrews
545be70a4d regen 2001-06-29 15:26:15 +00:00
Mark Andrews
b0b4e03da5 "make install" should now work. 2001-06-29 15:25:25 +00:00
Andreas Gustafsson
7d8c3693d0 914. [bug] Gobal 'server' statements were rejected when
using views, even though they were accepted
                        in 9.1. [RT #1368]
2001-06-28 21:58:54 +00:00
Andreas Gustafsson
389677e152 removed empty line 2001-06-28 21:34:54 +00:00
Andreas Gustafsson
dcc7ea9717 spacing 2001-06-28 21:34:39 +00:00
Andreas Gustafsson
60dcbecf04 Instead of choosing between memcpy and memmove at run time, call
memmove unconditionally since any reasonable implementation of
memmove will perform such a choice internally, and also doing it
in the caller duplicates the effort.
2001-06-28 21:34:11 +00:00
Andreas Gustafsson
b1a7fea53c brace style 2001-06-28 21:21:39 +00:00
Brian Wellington
ff8335f908 regen 2001-06-28 17:45:05 +00:00
Brian Wellington
ea562e4401 Properly set _GNU_SOURCE on linux 2001-06-28 17:44:53 +00:00
Brian Wellington
cab94c1516 'make distclean' should remove files created by configure. 2001-06-28 17:35:49 +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
Danny Mayer
f47c41b5fe htons expects an unsigned short for the argument 2001-06-28 06:02:18 +00:00
Mark Andrews
1e34f21f4c regen 2001-06-28 04:29:07 +00:00
Mark Andrews
93810b1ace add aix 2001-06-28 04:27:56 +00:00
Mark Andrews
73620f726a regen 2001-06-28 02:58:27 +00:00
Mark Andrews
c3a5709c2b autoconf swallowed the [ ] in case statement 2001-06-28 02:57:23 +00:00
Mark Andrews
c18d42b96b use MEM_RECORD rather than debugging > 1 2001-06-28 01:57:34 +00:00
Mark Andrews
594a685c8d Add ISC_MEM_DEBUGGING to set default compile time flags.
Remember ISC_MEM_DEBUGRECORD state when isc_mem_create() is called as
it is dangerous to change this afterwards.
2001-06-28 01:51:20 +00:00
Mark Andrews
950d71eee3 allow maximum inuse memory to be tracked. 2001-06-27 23:29:29 +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
Mark Andrews
c86b6051b6 hp cleanup 2001-06-27 12:29:41 +00:00
Danny Mayer
53bc020d74 modified to use isc_file_rename instead of rename 2001-06-27 04:37:11 +00:00
Danny Mayer
11c7a43642 type needed to be defined as dns_rdatatype_t instead of int in rdataset_totext() 2001-06-27 04:30:37 +00:00
Brian Wellington
f215881bb0 removed unnecessary const [RT #1440] 2001-06-27 04:21:18 +00:00
Mark Andrews
b6f0efbf3e aix namespace collision ERR -> EV_ERRR 2001-06-27 03:55:48 +00:00
Mark Andrews
98b2d12313 rejen 2001-06-25 13:27:29 +00:00
Mark Andrews
51cb4eba54 aix & hp 2001-06-25 13:22:33 +00:00
Mark Andrews
2bc98b7d91 910. [port] Some pre-RFC2133 IPv6 do not define IN6ADDR_ANY_INIT. 2001-06-25 03:56:58 +00:00
Mark Andrews
9432c5ee8b pullup:
64 bit alignment is only required on 64 bit machines
2001-06-25 00:30:46 +00:00
Mark Andrews
768d8c0ceb _SOCKADDR_LEN 2001-06-23 04:02:24 +00:00
Mark Andrews
14c32141f7 regen 2001-06-23 03:45:35 +00:00
Mark Andrews
008616624a extra commas 2001-06-23 03:44:11 +00:00
Mark Andrews
0cbda00d11 regen 2001-06-23 02:17:13 +00:00
Mark Andrews
bf92294d2a osf sethostent_r 2001-06-23 02:16:13 +00:00
Mark Andrews
a4786a3117 uint#_t 2001-06-23 02:11:08 +00:00
Mark Andrews
5f229adf3a regen 2001-06-23 02:03:26 +00:00
Mark Andrews
8264cdf2f1 add port/decunix 2001-06-23 02:02:01 +00:00
Mark Andrews
3d112f226f regen 2001-06-23 01:50:27 +00:00
Mark Andrews
cd7564646e OSF 5.0 setpwent_r() support 2001-06-23 01:49:21 +00:00
David Lawrence
9bfa90768a 907. [func] The ability to get entropy from either the
random device, a user-provided file or from
			the keyboard was migrated from the DNSSEC tools
			to libisc as isc_entropy_usebestsource().
2001-06-22 17:05:54 +00:00
Mark Andrews
de8e172e44 regen 2001-06-22 05:11:52 +00:00
Mark Andrews
7ae2ccb5d1 linux netbsd 2001-06-22 05:11:05 +00:00
David Lawrence
2d67c24744 906. [port] Separated the system independent portion of
lib/isc/unix/entropy.c into lib/isc/entropy.c
			and added lib/isc/win32/entropy.c.
2001-06-21 14:19:20 +00:00
Mark Andrews
2ef3e44fc8 regen 2001-06-21 09:04:21 +00:00
Mark Andrews
45a0264e76 alternate getnetgrent_r signature 2001-06-21 09:03:16 +00:00
Mark Andrews
e481f1dd57 distclean -> config.cache 2001-06-21 08:53:15 +00:00
Mark Andrews
c288005389 add IN6ADDR_LOOPBACK_INIT 2001-06-21 08:51:21 +00:00
Mark Andrews
e2935ef152 clean/distclean to remove libbind.a 2001-06-21 08:50:34 +00:00
Mark Andrews
527302c4fe BIND 8.3.0-T1A sync 2001-06-21 08:26:27 +00:00
Mark Andrews
74f16d58a3 regen 2001-06-21 08:04:16 +00:00
Mark Andrews
800764304d spelling of HAVE_SOCKADDR_STORAGE 2001-06-21 08:03:21 +00:00
Mark Andrews
85bdc128fc Relax REQUIRES() in *fromstruct() and unconditionally call
mem_maybedup() in *tostruct().
TXT is one or more (not zero or more) strings.
2001-06-21 04:00:47 +00:00
Andreas Gustafsson
77efdc854b spacing; typo 2001-06-21 01:30:22 +00:00
Andreas Gustafsson
08a44b06ef the length of the NULL record RDATA can be zero;
do not assert the contrary
2001-06-20 17:43:31 +00:00
Andreas Gustafsson
ac299c4f5c Removed statements to the effect that certain functions
perform assertion checks.  Such statements are inappropriate as they
document the implementation rather than the public interface.  The
functions are not required to perform assertion checks, but the caller
is required to pass arguments that conform to the API requirements.
2001-06-18 22:56:35 +00:00
Andreas Gustafsson
d748172fd7 added one end tag too many 2001-06-18 22:11:59 +00:00
Andreas Gustafsson
86b0285d7e missing end tags; other cleanup 2001-06-18 22:07:02 +00:00
Andreas Gustafsson
474a81662f missing end tags; other cleanup 2001-06-18 17:56:54 +00:00
Andreas Gustafsson
19872fdfb7 convert more socket errors to specific ISC error codes, notably ECONNRESET 2001-06-15 22:07:51 +00:00
Brian Wellington
2196128fc2 When doing best-effort parsing (in dig, for example) on a message with multiple
questions where an unrecoverable error is seen after 2 or more questions have
been parsed, memory would be leaked from msg->namepool, and would trigger an
ENSURE() in dns_message_destroy().
2001-06-15 05:24:24 +00:00
Brian Wellington
0a9a3d8c6d 904. [bug] The server would leak memory if attempting to use
an expired TSIG key. [RT #1406]
2001-06-15 02:24:02 +00:00
Andreas Gustafsson
d1ecee17a5 remove the other blank line before .TH, too 2001-06-14 19:10:14 +00:00
Andreas Gustafsson
23ac0d8259 comments for dns_message_parse() referred to
nonexistent arguments
2001-06-14 18:38:48 +00:00
Mark Andrews
9a6573e16b sys/select.h not sys/socket.h 2001-06-12 01:35:42 +00:00
Andreas Gustafsson
509ef0c871 Keep track of the number of times the system malloc() has
failed, to help determine whether a server crash resulted
from a bug in the handling of an out-of-memory condition
or not.
2001-06-11 20:27:16 +00:00
Andreas Gustafsson
8de7014e56 removed CVS Id from machine-generated man page files -- it is no longer needed
now that they are ignored by update_copyrights
2001-06-11 19:02:45 +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
eda73d8aad redo 1.64 "potential null pointer dereference" more consistent with the style
of the function and file (i.e., not returning from the middle of a function)
2001-06-10 17:06:45 +00:00
David Lawrence
95e8c0f8f5 removed blank line before .TH 2001-06-10 13:58:29 +00:00
David Lawrence
2b403f22d4 Removed an obsolete XXXMLG comment, with the assent of Michael Graff. 2001-06-08 23:53:41 +00:00
David Lawrence
04260c5c48 895. [func] New function, isc_dir_current(), akin to POSIX's
getcwd().
2001-06-08 23:50:32 +00:00
Brian Wellington
ba9e9a88c8 The last change didn't compile due to faulty cut&paste. 2001-06-08 22:48:28 +00:00
David Lawrence
504f7802d4 893. [func] Removed isc_file_test() and added isc_file_exists()
for the basic functionality that was being added
			with isc_file_test().
2001-06-08 21:53:49 +00:00
Brian Wellington
3b6bcedffe 891. [bug] Return an error when a SIG(0) signed response to
an unsigned query is seen.  This should actually
			do the verification, but it's not currently
			possible. [RT #1391]
2001-06-08 19:37:29 +00:00
Andreas Gustafsson
841179549b 889. [port] Eliminated blank lines before .TH in nroff man
pages since they cause problems with some versions
                        of nroff. [RT #1390]
2001-06-08 19:33:02 +00:00
Brian Wellington
01535cfb3a removed erroneous UNUSED macro 2001-06-08 19:16:15 +00:00
Brian Wellington
9af6e1c548 Don't die when trying to delete a nonexistent key [RT #1392] 2001-06-08 18:29:31 +00:00
Mark Andrews
4585aeb2cc 866. [func] Close debug only file channels when debug is set to
zero. [RT #1246]
2001-06-08 02:57:13 +00:00
Andreas Gustafsson
56877490bc 865. [bug] The new configuration parser did not allow
the optional debug level in a "severity debug"
                        clause of a logging channel to be omitted.
                        This is now allowed and treated as "severity
                        debug 1;" like it did in BIND 8.2.4, not as
                        "severity debug 0;" like it did in BIND 9.1.
                        [RT #1367]
2001-06-08 01:03:00 +00:00
Andreas Gustafsson
11c8a04f9b grammar 2001-06-07 20:11:30 +00:00
Andreas Gustafsson
d358eea93e megabytes is abbreviated MB, not mb 2001-06-07 18:31:54 +00:00
Mark Andrews
c69d61c69b realloc -> malloc 2001-06-07 02:14:52 +00:00
Andreas Gustafsson
8b9fa5b005 redid RT #1353 fix in 1.53 so that it does not free
file names while they are still referenced from the parse tree
2001-06-07 01:58:49 +00:00
Brian Wellington
90c845947a #include <time.h> 2001-06-07 00:45:35 +00:00
Mark Andrews
6cefb60af5 pullup from BIND 8
862.   [bug]           Use after realloc(), non portable pointer arithmetic in
                        grmerge().
2001-06-07 00:22:35 +00:00
Brian Wellington
224e84bc0e misc. stuff related to [RT #1293] 2001-06-07 00:21:53 +00:00
Brian Wellington
571688b02f Revert part of the ISC_MAGIC/ISC_MAGIC_VALID change. Because
common.impmagic is not the first four bytes of the struct,
ISC_MAGIC_VALID() cannot be used.
2001-06-06 22:03:58 +00:00
Brian Wellington
338d559b3e remove extraneous blank line 2001-06-06 21:02:43 +00:00
Mark Andrews
cd8c92da37 pullup from BIND8:
DE_CONST bind(arg 2)
2001-06-06 01:56:32 +00:00
Mark Andrews
99a8d30559 860. [func] Drop cross class glue in zone transfers. 2001-06-05 23:43:15 +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
65640f401a Removed the requirement for isc_mem_setwater() that when the callback function
is not null then hi_water must exceed lo_water and both must be > 0.
Now requires hi_water >= lo_water, and they can both be 0.  Not allowing
them to be equal was just an unnecessary restriction, and letting them be 0
is useful for the case where the context has had non-zero values set, went
over hi_water and called the callback, and then wanted to remove limits
(perhaps because of a reconfiguration).  This allows the callback to
be signaled as ISC_MEM_LOWATER on the next isc_mem_put(), which the caller
might need to terminate any outstanding action that was triggered by
the hi_water.
2001-06-05 22:14:20 +00:00
Mark Andrews
92296c744e complete the rollback 2001-06-05 09:23:14 +00:00
Mark Andrews
8af4b7042d rollback individual RR. 2001-06-05 09:17:21 +00:00
Mark Andrews
03f91269f5 856. [func] Allow partial rdatasets to be returned in answer and
authority sections to help non-TCP capable clients
                        recover from truncation.  [RT #1301]
2001-06-05 09:02:16 +00:00
Brian Wellington
7e93abafe6 spelling & style 2001-06-05 06:34:45 +00:00
Brian Wellington
33e49e8fdc #include <isc/magic.h> 2001-06-05 06:34:11 +00:00
Mark Andrews
afb0a628ef 855. [bug] Stop spurious "using RFC 1035 TTL semantics" warnings. 2001-06-05 05:12:47 +00:00
Brian Wellington
17dba29ba5 854. [bug] The config parser didn't properly handle config
options that were specified in units of time other
			than seconds.  [RT #1372]
2001-06-04 21:51:27 +00:00
Brian Wellington
fe61fbe14e ignore Makefiles and autoconf stuff 2001-06-04 21:48:52 +00:00
David Lawrence
163e27991b Revert part of the ISC_MAGIC/ISC_MAGIC_VALID change. Because
common.impmagic is not the first four bytes of the struct,
ISC_MAGIC_VALID() cannot be used.
2001-06-04 20:57:25 +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
deb588e256 typo that caused an assertion failure [RT #1368] 2001-06-03 23:53:50 +00:00
Brian Wellington
c39911afea functions returning void should not return the result of other functions
returning void. [RT #1372]
2001-06-03 19:03:37 +00:00
Mark Andrews
3042b3e271 851. [bug] Handle responses from servers which do not know
about IXFR.
2001-06-01 15:22:56 +00:00
Mark Andrews
989f808405 851. [cleanup] support-ixfr is obsolete, use request-ixfr. 2001-06-01 15:17:19 +00:00
Bob Halley
eba5c23154 undo 1.54, which was an accidental commit 2001-06-01 03:07:54 +00:00
Bob Halley
875542855a update to 9.3.0, now that the 9.2 release branch has been created 2001-06-01 03:05:07 +00:00
Brian Wellington
d0b6ece407 ISC_LANG_BEGINDECLS -> ISC_LANG_ENDDECLS 2001-06-01 01:11:28 +00:00
Brian Wellington
59d5cc31e5 #include <dns/types.h> 2001-06-01 01:09:10 +00:00
Brian Wellington
53aba5065d man pages were not properly installed in separate-object-dir builds 2001-06-01 00:45:04 +00:00
David Lawrence
7fe56f41ec slight optimization for dns_rbt_findnode() when bitstrings are involved:
skip the hashing attempts entirely when not at the root of a level
2001-05-31 22:32:46 +00:00
David Lawrence
68f4a1696f In dns_rbt_findnode() when using hashing, check for a bitstring after
each failure to find the hash_name, not just when the name has multiple labels.
2001-05-31 21:52:22 +00:00
David Lawrence
11c4f6b687 Reversed the sense of my earlier change to hmacmd5 key generation that
required good entropy only when 'param' (to dst_key_generate) was non-zero.
Since the default was always to require good entropy, that default behavior
has been restored and now a non-zero param means that pseudorandom is ok.
2001-05-31 18:34:51 +00:00
David Lawrence
b79e66b06d While searching in dns_rbt_findnode(), cope with the possibility that
a bitstring label might be founding things from any label of a
multilabel search_name.
2001-05-31 11:03:33 +00:00
David Lawrence
64c7a503c2 ensure that INADDR_LOOPBACK is defined 2001-05-31 10:54:51 +00:00
David Lawrence
ed8daea264 enforce a minimum cache size of 2mb 2001-05-31 10:53:42 +00:00
David Lawrence
50b7860fff new function isc_file_test() as framework for determining various attributes
of a pathname
2001-05-31 10:53:14 +00:00
David Lawrence
719f0c0028 A trivial change (added a blank line) so I could add the comment I
*wanted* to add on the last check-in.

The second argument to hmacmd5_generate is no longer unused, it is a flag
to say whether good entropy is needed or not.  This change was approved
by Brian.  The control channel key generator needed it to be able to do
its job all on-the-fly.
2001-05-31 10:49:28 +00:00
David Lawrence
d744418e64 hmac_link.c 2001-05-31 10:47:17 +00:00
David Lawrence
25efbc557e set the permissions on a symmetric keyfile before anything is written to it,
rather than after it is closed
2001-05-31 10:45:32 +00:00
David Lawrence
fe2d25382f don't define INADDR_LOOPBACK; isc/net.h should be ensuring it exists 2001-05-31 10:43:37 +00:00
David Lawrence
4f36774273 include <dns/soa.h> for dns_soa_serial() prototype 2001-05-31 10:38:01 +00:00
Mark Andrews
9dbbd48523 new 2001-05-31 06:13:27 +00:00
Mark Andrews
45d75e9b26 copyrights 2001-05-31 05:54:07 +00:00
Brian Wellington
6d28d54e6f be more tolerant of blank lines 2001-05-31 00:38:07 +00:00
Brian Wellington
1969ab5360 copyright updates 2001-05-30 20:31:08 +00:00
Brian Wellington
a78196366c move variable initialization 2001-05-29 23:07:28 +00:00
Brian Wellington
cbb781f277 uninitialized variable 2001-05-29 22:54:07 +00:00
Brian Wellington
8358be5851 uninitialized variable 2001-05-29 22:44:12 +00:00
Brian Wellington
dd0fdd4426 the array of error messages was incomplete. 2001-05-29 22:40:10 +00:00
Brian Wellington
9547c4a3f8 potential null pointer dereference 2001-05-29 22:35:54 +00:00
Brian Wellington
e2fd12f3a0 841. [bug] When sdb modules were not declared threadsafe, their
create and destroy functions were not serialized.
2001-05-29 18:34:24 +00:00
Mark Andrews
b96a1d9fa3 sync multiple changes from BIND 8. 2001-05-28 08:38:32 +00:00
Mark Andrews
7ca2d9c6ed pullup from BIND 8:
1175.   [bug]           statp->nsort could fail to be re-initialised if
                        resolv.conf goes away.
2001-05-28 06:36:15 +00:00
Mark Andrews
94039cf2c3 pullup from BIND 8:
1172.   [bug]           allow res_{n}update to take a single unlinked element.
2001-05-28 06:25:42 +00:00
Brian Wellington
cf74d05a50 840. [bug] The config file parser could print the wrong file
name if an error was detected after an included file
			was parsed. [RT #1353]
2001-05-28 06:05:24 +00:00
Mark Andrews
3b3a726ae4 pullup from BIND 8:
1215.  [bug]           long UNIX domain control socket names were not being
                       printed in full.
2001-05-25 05:21:25 +00:00
Mark Andrews
ba10e25d1c pullup from BIND 8.
1214.   [bug]           getrgnam()/getgrgid() leaked memory.
2001-05-25 03:32:40 +00:00
Mark Andrews
3dd53ffbd7 remove unnecessary call to res_nsearch() from reverse lookup path. 2001-05-22 22:53:24 +00:00
Mark Andrews
cae062ee07 #include <arpa/nameser.h> for ns_tsig_key 2001-05-22 22:51:31 +00:00
Andreas Gustafsson
508d17362c 834. [func] Accept (but warn about) master files beginning with
an SOA record without an explicit TTL field and
			lacking a $TTL directive, by using the SOA MINTTL
			as a default TTL.  This is for backwards compatibility
			with old versions of BIND 8, which accepted such
			files without warning although they are illegal
			according to RFC1035.
2001-05-22 01:44:37 +00:00
Andreas Gustafsson
e7a4f58d55 833. [cleanup] Moved dns_soa_*() from <dns/journal.h> to
<dns/soa.h>, and extended them to support
			all the integer-valued fields of the SOA RR.
2001-05-21 23:56:34 +00:00
Andreas Gustafsson
ec4df1f908 consistently use lower case in error messages 2001-05-21 22:49:24 +00:00
Brian Wellington
0716b32560 remove unnecessary const 2001-05-21 22:10:23 +00:00
Mark Andrews
1cfecfd34f Bitstring labels are independent of DNAMEs.
Provide a runtime mechanism to set the IPv6 suffixes for reverse lookups.
Provide a runtime mechanism to disable each of the IPv6 reverse lookup
methods.
Provide a mechanism to free memory allocated by res_{n}init().
2001-05-21 14:31:32 +00:00
Mark Andrews
097dc0a693 add sys/types.h for FreeBSD 2.1 2001-05-18 03:02:45 +00:00
Andreas Gustafsson
1242c132a8 removed comment that was no longer correct 2001-05-17 18:14:36 +00:00
Mark Andrews
d972d65d69 add initial support for unix based platforms. 2001-05-17 06:26:01 +00:00
Andreas Gustafsson
d76b6ae2ad isc_print_vsnprintf() could throw an assertion failure when
given a %lld format, causing a deadlock when logging the assertion if invoked
from the logging system.  Since the %qd format does not have the bug, this only
affects platforms where the native quad format is %lld and that lack a native
vsnprintf().  The only known such platform is SunOS 5.5.1. [RT #1312]
2001-05-16 00:52:55 +00:00
Andreas Gustafsson
21a0926b4f the epoch of time() is sytem dependent - use isc_stdtime_get()
instead [RT #1300]
2001-05-15 22:05:35 +00:00
Bob Halley
4e9d4ceadf Take two of new semantics for ANY queries at zone cut points. Now doing
an ANY query at a zone cut point will return a delegation, except if
DNS_DBFIND_GLUEOK is set, in which case DNS_R_ZONECUT will be returned as
before.  Someday it would probably be a good idea to get rid of DNS_R_ZONECUT
entirely and just return DNS_R_GLUE in that case, but I was afraid to do
that now since it might break things.  These changes pass all system tests.
2001-05-15 05:35:27 +00:00
Andreas Gustafsson
0d205b805a backed out changes to handling of DNS_DBFIND_VALIDATEGLUE
option in previous commit - they broke DNS_DBFIND_GLUEOK lookups,
causing several of the system tests to fail
2001-05-15 03:52:31 +00:00
Andreas Gustafsson
740ae0808f when returning a socket error, use isc__errno2result() instead
of always returning ISC_R_UNEXPECTED
2001-05-14 23:58:33 +00:00
Andreas Gustafsson
135b1206c9 don't retry UDP receives after they return an error -
an error return from the socket library means the library has already
decided that the error is not retryable and likely to throw
us into an infinite loop if retried
2001-05-14 23:10:19 +00:00
Andreas Gustafsson
054777a694 eliminated redundant assignments to disp->shutting_down;
if shutting down due to error, set disp->shutdown_why to the appropriate result
code, not to ISC_R_EOF
2001-05-14 22:07:40 +00:00
Brian Wellington
50097b38c0 830. [func] Implement 'rndc status'. 2001-05-14 20:44:16 +00:00
Bob Halley
751aa24c98 only return DNS_R_ZONECUT from secure zones 2001-05-14 19:25:59 +00:00
Brian Wellington
ecf4962155 more of 'rndc status' 2001-05-14 19:06:47 +00:00
Andreas Gustafsson
fd5847ef09 828. [bug] The errno value from recvfrom() could be overwritten
by logging code. [RT #1293]
2001-05-14 18:20:03 +00:00
Mark Andrews
2510f0bd84 axi changes 2001-05-14 07:59:46 +00:00
Mark Andrews
a9aeae8dc0 more #824 fine tuning.
ictx->drop is inherited when a include file is pushed.
NOTE: it is *not* restored when the include file is subsequently popped as
	the current owner is restored to the state it was before the file
	was pushed.
we missed setting source & line after one successful pushfile().
2001-05-14 06:22:40 +00:00
Mark Andrews
378f5abd5f fine tune #824 2001-05-11 02:35:37 +00:00
Brian Wellington
177ede307a minor internal reorganization (yes, this will all become clear at some point) 2001-05-10 19:07:18 +00:00
Andreas Gustafsson
a9ef485446 If IXFR fails, fall back to AXFR 2001-05-10 17:51:49 +00:00
Andreas Gustafsson
344a21e7c7 the return value of ixfr_apply() was not checked 2001-05-10 16:27:14 +00:00
Andreas Gustafsson
17ed6b7945 when subtracting a nonempty rdataset from a nonexistent rdataset
and the DNS_DBSUB_EXACT flag, dns_db_subtractrdataset() should return
DNS_R_NOTEXACT, not DNS_R_UNCHANGED.
2001-05-10 16:26:07 +00:00
Mark Andrews
6ddea57cb4 ais 2001-05-10 07:33:31 +00:00
Mark Andrews
9259ea7e4b aix 2001-05-10 07:29:54 +00:00
Brian Wellington
a62b21afd3 DST_TYPE_PUBLIC|DST_TYPE_PRIVATE 2001-05-10 06:05:54 +00:00
Mark Andrews
4dad906c2f port aix 2001-05-10 05:38:33 +00:00
Mark Andrews
84844522a2 AIX 2001-05-10 05:10:30 +00:00
Mark Andrews
ac7fa9937e sync 2001-05-10 05:10:11 +00:00
Mark Andrews
ba4e2f658e Aix: HOST_R_SET_RESULT HOST_R_SET_RETURN 2001-05-10 05:09:06 +00:00
Brian Wellington
4bd95a4965 fix a cut-and-paste-o and a warning 2001-05-10 04:50:28 +00:00
Mark Andrews
2ddb88d5d4 cync: aix 2001-05-10 04:29:17 +00:00
Mark Andrews
fa358dd30f aix 2001-05-10 04:28:22 +00:00
Mark Andrews
00c6d2626b Add aix 2001-05-10 04:23:15 +00:00
Brian Wellington
8e4da48fa7 consolidated duplicated code for filename mangling, removed sanity checks that
weren't.
2001-05-09 23:04:50 +00:00
Brian Wellington
35582313f7 add dns_zt_zonecount(), which counts the number of zones in a zonetable. 2001-05-09 21:34:19 +00:00
Mark Andrews
f3dd74f1cd ignore in no longer needed in commit. 2001-05-09 07:18:38 +00:00
Bob Halley
42dfa2455d bump version to avoid horrible confusion 2001-05-09 06:12:52 +00:00
Mark Andrews
69d44b2f5a 825. [bug] zone.c:ns_query() detached from the wrong zone
reference.  [RT #1263]
2001-05-09 05:20:28 +00:00
Mark Andrews
f08f3c6cae 824. [bug] Correct line numbers reported by dns_master_load().
[RT #1263].
2001-05-09 03:41:47 +00:00
Andreas Gustafsson
120cf12320 folded lines >80 chars; added comments; removed some unused code 2001-05-09 03:17:02 +00:00
Andreas Gustafsson
c3ebcedbe5 Add isc_file_progname(), with trivial POSIX implementation, and
call it from main().  A separate WIN32 implementation will be needed.
2001-05-08 19:47:55 +00:00
Mark Andrews
dbd6145418 sync 2001-05-08 07:07:11 +00:00
Mark Andrews
dd9b814ace strerror 2001-05-08 07:06:01 +00:00
Mark Andrews
1c81477123 oops2 2001-05-08 06:30:08 +00:00
Mark Andrews
8f7edcb227 more IPv6 macros 2001-05-08 06:25:30 +00:00
Mark Andrews
fcfb81e3c4 oops 2001-05-08 05:18:26 +00:00
Mark Andrews
ff8bc68af4 add various IPv6 macros 2001-05-08 05:15:13 +00:00
Mark Andrews
74186b65a3 add stdio.h 2001-05-08 04:38:28 +00:00
Mark Andrews
cf186bf745 add netbsd 2001-05-08 04:02:54 +00:00
Andreas Gustafsson
9dafd058e3 implemented 'rndc reconfig' 2001-05-07 23:34:24 +00:00
Mark Andrews
25ea25c811 undo part of bind8-823-v6-20010204a.diff 2001-05-07 06:07:44 +00:00
Danny Mayer
94ebc518d0 buffer request needs cast for win32 2001-05-06 02:24:08 +00:00
Danny Mayer
db1bfc3151 htons needs cast for win32 2001-05-06 02:23:06 +00:00
Brian Wellington
d144ea1d1c isc_file_basename should return a (const char *) 2001-05-05 02:47:21 +00:00
David Lawrence
e40cd7f5c9 preserve a reference to the node lock across a call to no_references() in
detachnode
2001-05-05 02:42:38 +00:00
Andreas Gustafsson
bdb60248c3 oops, removed the wrong declaration 2001-05-04 23:57:22 +00:00
Andreas Gustafsson
a08f7f4a6c frombuffer() was declared 'static' but defined
without 'static'
2001-05-04 17:57:33 +00:00
Andreas Gustafsson
2788f21727 don't install the now-nonexistent <dns/namedconf.h> 2001-05-04 17:08:43 +00:00
Brian Wellington
f2194a8ba9 implement isc_file_basename() 2001-05-03 18:59:30 +00:00
Brian Wellington
55ff3f6e65 remove prototypes for nonexistant functions [RT #1240] 2001-05-03 18:40:33 +00:00
Brian Wellington
3f8a9e5196 remove unused byte swapping macros and the associated non-portable includes
[RT #1239]
2001-05-03 18:38:17 +00:00
Brian Wellington
de32cbd34e remove a cut-and-paste-o 2001-05-02 19:25:19 +00:00
Brian Wellington
d2aebe24c4 Allocate the initial buffer for rdata based on the length of the string, to
avoid reallocations and annoying messages.
2001-05-02 18:58:56 +00:00
Andreas Gustafsson
af46049567 removed <dns/namedconf.h>, which pertained to the old
configuration parser
2001-05-02 17:39:51 +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
Brian Wellington
3840dba289 Comment a particularly subtle bit of code. 2001-05-02 00:03:12 +00:00
Brian Wellington
05183bbc4f Signing with a large key didn't work since the static output buffer was too
small; use a dynamic buffer instead.  Also, comment a section
2001-05-02 00:02:28 +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
Andreas Gustafsson
1dbec28030 removed declarations of nonexistent functions 2001-04-30 18:09:31 +00:00
Tatuya JINMEI 神明達哉
931f35a927 removed one more 'ifdef INET6'. 2001-04-30 18:08:54 +00:00
Tatuya JINMEI 神明達哉
291e6be74f some cleanups and clarifications;
- removed 'ifdef INET6' (libbind's getaddrinfo should always be buildable
   with the INET6 part.)
 - use EAI_NONAME instead of EAI_NODATA (this is an API issue.  I'll raise
   it at the group working on the API).
 - use h_errno instead of __h_errno.
 - clarification on using interface names as link IDs of IPv6 link-local
   addresses.  (not all OSes support this.)
2001-04-30 17:46:58 +00:00
Tatuya JINMEI 神明達哉
520717e82b supported the IPv6 scoped addresses format. 2001-04-30 17:35:17 +00:00
Tatuya JINMEI 神明達哉
4df5fde1a7 - code clenaups (removed redundant macros/blank lines, comment clarifications
etc.)
- use EAI_xxx error code according to draft-ietf-ipngwg-rfc2553bis-03.
  (we may still have to reconsider EAI_NODATA - this is an API issue)
2001-04-30 17:34:02 +00:00
Andreas Gustafsson
1ed0723a1f a pointer argument used to return an "int" value into an "int"
variable is better defined as "int *" than "unsigned int *"
2001-04-28 01:08:07 +00:00
Andreas Gustafsson
9762fd29cc DNAME now has an RFC 2001-04-27 21:02:01 +00:00
Mark Andrews
ecaedd50f4 817. [func] Adjust timeouts for dialup zone queries. 2001-04-27 02:34:18 +00:00
Andreas Gustafsson
5e194abb5b 814. [bug] Socket objects left over from accept() failures
were incorrectly destroyed, causing corruption
                        of socket manager data structures.

 813.   [bug]           File descriptors exceeding FD_SETSIZE were handled
                        badly. [RT #1192]
2001-04-26 23:45:55 +00:00
Andreas Gustafsson
e482a1c91e cache dumps now include trust levels and ncache entries 2001-04-26 21:17:56 +00:00
David Lawrence
2b5f436aeb Make greatest_version() return an isc_result_t, which it should have
been doing all along since there was the possibility isc_dir_open() would
fail and overloading the return value of "0" was bad practice.

If isc_dir_open() fails in greatest_version(), make sure the path separator
is restored to the destination pathname if it was NULified before returning
the error.

The underlying problem of isc_log_open() not having the bad result of
isc_dir_open() reported anywhere will be slightly mediate by a change
to bin/named/logconf.c to test the directory.  lib/isc/log.c can't really
handle it because it has no idea to where such an error should be reported,
and it only shows up during isc_log_open() as part of the isc_log_write()
family of calls, which are all void.
2001-04-25 23:59:44 +00:00
Andreas Gustafsson
cb77fe457a "sending notifies (%u)" -> "sending notifies (serial %u)" 2001-04-24 23:03:04 +00:00
Andreas Gustafsson
0dc1e14537 alphabetized includes 2001-04-24 18:40:07 +00:00
Andreas Gustafsson
92ba2e22ae removed extraneous quotes 2001-04-24 18:13:47 +00:00
Andreas Gustafsson
8eea877894 untabified so that program listings line up properly
in the nroff output
2001-04-24 18:11:27 +00:00
Andreas Gustafsson
09df6c7006 removed unnecessary includes 2001-04-24 17:57:46 +00:00
Bob Halley
38d21a360a only reacquire the lock in no_references() if we actually gave it up 2001-04-24 17:03:54 +00:00
Andreas Gustafsson
6f118c4893 removed redundant 'i++;' 2001-04-24 00:56:17 +00:00
Mark Andrews
dab8e1d00c enable IPv6 resolver support 2001-04-23 02:59:53 +00:00
Mark Andrews
f93659e9a2 IPv6 fixes 2001-04-23 02:59:17 +00:00
Mark Andrews
1e6276aaf8 WANT_IRS_NISGR_OBJ -> WANT_IRS_NISGR_OBJS 2001-04-23 02:57:20 +00:00
David Lawrence
ed1c40264e sigh. do not set the lock from node->locknum until being sure node is not null 2001-04-20 21:22:09 +00:00
David Lawrence
a0e1f68e14 Now that no_references() reacquires the node lock after deleting the node,
all of its callers need to maintain a reference to the lock that doesn't
involve looking at node->locknum after no_references() was called.
2001-04-20 14:35:04 +00:00
Andreas Gustafsson
15254d5865 note that parsers are not reusable 2001-04-19 23:28:17 +00:00
Andreas Gustafsson
cedd0ab1e8 811. [bug] Parantheses were not quoted in zone dumps. [RT #1194] 2001-04-19 18:39:42 +00:00
Brian Wellington
59c85e1636 Return ISC_R_NOSPACE if the buffer isn't large enough to hold the DNS header. 2001-04-19 18:28:35 +00:00
Mark Andrews
f6c845a79b build libbind from .o's 2001-04-18 11:08:28 +00:00
David Lawrence
f6f8d61a77 reacquire the node lock the caller held before returning from no_references() 2001-04-18 08:06:11 +00:00
Andreas Gustafsson
ebea68ec9c regenerated man pages with pdated docbook2man-spec.pl;
now the function prototypes are formatted correctly
2001-04-17 18:01:53 +00:00
Brian Wellington
8c3989000a 810. [bug] The signer name in SIG records was not properly
downcased when signing/verifying records. [RT #1186]
2001-04-17 17:20:27 +00:00
David Lawrence
1bd5b8aac6 use ISC_MAGIC to define magic number 2001-04-17 14:36:45 +00:00
David Lawrence
79ed194592 sigh. always test recompile things even after a minor change. after deciding
to _not_ much with the lock tracing/printing facility for the last change,
i forgot to also add the new result variable back into the stack
declarations, where i had correctly put it the first time.
2001-04-17 13:42:32 +00:00
David Lawrence
8e60ba90e0 unlock the mutex when non-blocking locking is attempted and the lock is busy. 2001-04-17 04:07:38 +00:00
Brian Wellington
ec57fd24fc The isccc headers weren't installed at all. Oops. 2001-04-16 22:50:18 +00:00
Brian Wellington
98e8f87a6d actually list all of the headers. 2001-04-16 22:44:43 +00:00
Brian Wellington
4e56b9615f remove the (now) redundant setting of the magic number. 2001-04-16 21:14:27 +00:00
Brian Wellington
ac6afcd0ca 809. [bug] Configuring a non-local address as a transfer-source
could cause an assertion failure during load.
2001-04-16 18:50:32 +00:00
David Lawrence
900d7d9c9b forgot to actually change the macro call that needed the deconst argument 2001-04-14 00:20:07 +00:00
David Lawrence
ddb8f23a09 a different approach to shutting up compilers about an empty file, one that
does not cause all the compilers to complain about a variable being
defined but not used.
2001-04-13 02:26:32 +00:00
David Lawrence
0109515495 use ISC_TF() to set an isc_boolean_t 2001-04-12 22:58:34 +00:00
David Lawrence
ae6860081f a different fix for the lwres_net_aton problem in lwres_create_addr, that
addresses any alignment issues that might have existed with casting
an unsigned char pointer to a struct pointer.
2001-04-12 22:45:12 +00:00
David Lawrence
79b19f175c added a single static variable declaration to prevent compilers from
complainig about an effectively empty input file.
2001-04-12 22:26:41 +00:00
David Lawrence
de6fe5ebe2 cleared up a const issue with IN6_IS_ADDR_V4MAPPED on some platforms 2001-04-12 21:23:21 +00:00
David Lawrence
ceda09e07a removed stale #define DEBUG that my own comment said I was supposed to remove. 2001-04-12 21:18:14 +00:00
David Lawrence
6f053cd485 use ISC_TF() to set an isc_boolean_t 2001-04-12 21:04:14 +00:00
David Lawrence
4ab0eb3be8 mgr was set but not used in dns_dispatch_detach(); removed it 2001-04-12 21:03:37 +00:00
David Lawrence
947295d886 warning cleanup for HPUX-10.20: trivial unsigned vs sign char pointer issues. 2001-04-12 20:39:04 +00:00
David Lawrence
7944c8c5f7 case unsigned char addrbuf pointer to struct in_addr * when used as second
argument to lwres_net_aton, to quiet compiler warning
2001-04-12 20:23:48 +00:00
David Lawrence
3507ae5d59 #include <time.h> for the utimes() prototype 2001-04-12 19:46:39 +00:00
Mark Andrews
d29ec04e37 checkpoint 2001-04-12 02:32:32 +00:00
Mark Andrews
2f2513df09 checkpoint 2001-04-12 02:14:22 +00:00
Mark Andrews
2fbcc2b863 <sting.h>
bad return from void function
2001-04-12 01:57:35 +00:00
David Lawrence
cace8ff3bd use ISC_MAGIC to define the magic number 2001-04-12 00:37:55 +00:00
David Lawrence
383b800c62 Fixed up iteration problems related to name cleaning. In a nutshell,
the node at the end of a chain always needed to have its reference
count incremented, not only when the iterator was paused.  [RT #1007]
2001-04-11 22:17:38 +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
Mark Andrews
e91eeda769 stdio on hpux work around 2001-04-11 08:13:11 +00:00
Mark Andrews
42ca0077ae checkpoint 2001-04-11 04:00:21 +00:00
Mark Andrews
c57c8dd9d3 checkpoint 2001-04-11 03:49:05 +00:00
Mark Andrews
ea5aa5c36c checkpoint 2001-04-11 03:39:01 +00:00
Mark Andrews
53e274dc39 -ld4r 2001-04-11 03:19:55 +00:00
Mark Andrews
328b31fb20 gethostbyname_r 2001-04-11 02:38:24 +00:00
Mark Andrews
8fead63972 checkpoint 2001-04-11 02:30:08 +00:00
Mark Andrews
5ae17a93cd endhostent_r 2001-04-11 02:16:22 +00:00
Mark Andrews
2779002c16 checkpoint 2001-04-11 01:30:12 +00:00
Mark Andrews
6993f1431a remove -Werror 2001-04-11 01:24:49 +00:00
Mark Andrews
3047ad312b remove gcc specific -Werror 2001-04-11 01:23:48 +00:00
Mark Andrews
2b7a77a68e 807. [bug] xfrin was not ignoring the transfer-source port. 2001-04-10 23:54:03 +00:00
Brian Wellington
d4ef65050f copyright updates
(note - this doesn't touch lib/bind at all.  Mark, whenever you're done with
lib/bind, make sure to do the copyright magic)
2001-04-10 21:52:17 +00:00
Andreas Gustafsson
7900390a52 Previous change turned invalid peer address returns from accept()
into hard errors - they should be soft errors
2001-04-10 21:48:27 +00:00
Andreas Gustafsson
a84cfaa3f2 The bug fix in socket.c 1.189 was less than ideal: if a socket
got wedged in a state where accept() always returns EBADF, the server would loop calling
internal_accept() repeatedly.  Implemented an alternative fix where a hard
error in accept() causes an event with a nonzero result code to be sent, and
the new socket object to be freed
2001-04-10 21:38:33 +00:00
Brian Wellington
8865eeaf14 Don't log a generic "sending notifies" message if there are no servers to
be notified.
2001-04-10 19:19:49 +00:00
Mark Andrews
86529bb697 806. [bug] DNS_R_SEENINCLUDE was failing to propogate back up
the calling stack to the zone maintence level.
2001-04-10 03:05:55 +00:00
Andreas Gustafsson
abd51a9a96 removed unused label 2001-04-10 00:18:27 +00:00
Mark Andrews
e22fa3a686 hpux 2001-04-09 09:17:16 +00:00
Mark Andrews
dcab756185 Solaris 2.8 header files are broken for getnetbyaddr(). Both cases
of the #ifdef/#else/#endif are the same.
2001-04-09 06:06:20 +00:00
Mark Andrews
b9614c7d79 checkpoint 2001-04-09 05:02:53 +00:00
Mark Andrews
01de82c03a checkpoint 2001-04-09 04:57:28 +00:00
Mark Andrews
6339db444a getpwent_r 2001-04-09 04:43:16 +00:00
Mark Andrews
194a73cc32 db.h 2001-04-09 03:21:22 +00:00
Mark Andrews
897cef1269 cut&paste error 2001-04-06 07:02:34 +00:00
Mark Andrews
8957799312 checkpoint 2001-04-06 07:00:58 +00:00
Mark Andrews
0aea8f69cd checkpoint 2001-04-06 06:22:00 +00:00
Mark Andrews
6c89ab9e56 checkpoint 2001-04-06 06:02:24 +00:00
Mark Andrews
0c05c12213 checkpoint 2001-04-06 05:58:57 +00:00
Mark Andrews
3c3d1d0e7e checkpoint 2001-04-06 05:49:52 +00:00
Mark Andrews
225fe2c82c checkpoint 2001-04-06 05:35:41 +00:00
Mark Andrews
da3c3119fe add passwd suport 2001-04-05 07:01:11 +00:00
Mark Andrews
199da345a1 regen 2001-04-05 06:31:21 +00:00
Mark Andrews
8c71da6b2e solaris/posix 2001-04-05 06:31:02 +00:00
Mark Andrews
6942af8143 posix/solaris ~!@#$ 2001-04-05 06:19:32 +00:00
Brian Wellington
f8b3c62794 804. [bug] Attempting to obtain entropy could fail in some
situations.  This would be most common on systems
			with user-space threads. [RT #1131]
2001-04-04 20:57:35 +00:00
Mark Andrews
baa8aebc5b regen 2001-04-04 07:09:44 +00:00
Mark Andrews
3a66cfbc4c hack_POSIX_PTHREAD_SEMANTICS 2001-04-04 07:08:55 +00:00
Mark Andrews
ab628cb652 regen 2001-04-04 06:19:28 +00:00
Mark Andrews
9680305c8b checkpoint 2001-04-04 06:18:40 +00:00
Mark Andrews
ce664dbd95 POSIX_GETGRGID_R 2001-04-04 06:00:57 +00:00
Mark Andrews
2c81d53b9f regen 2001-04-04 05:57:12 +00:00
Mark Andrews
49d4440533 checkpoint 2001-04-04 05:56:10 +00:00
Mark Andrews
216a4baa50 regenerate 2001-04-04 05:45:14 +00:00
Mark Andrews
5f2308318f checkpoint 2001-04-04 05:44:15 +00:00
Mark Andrews
441991722c checkpoint 2001-04-04 05:32:27 +00:00
Brian Wellington
daad43e5a4 802. [bug] DNSSEC key tags were computed incorrectly in almost
all cases. [RT #1146]
2001-04-04 02:02:58 +00:00
Andreas Gustafsson
2901eed986 cfg_type_rndcconf was declared twice 2001-04-04 01:41:06 +00:00
Mark Andrews
65f67161a3 regenerate 2001-04-03 22:59:32 +00:00
Mark Andrews
605263f9e9 checkpoint 2001-04-03 22:41:38 +00:00
Mark Andrews
33f7d8bf2f checkpoint 2001-04-03 13:46:25 +00:00
Mark Andrews
a685e49c98 checkpoint
cvs: ----------------------------------------------------------------------
2001-04-03 08:03:47 +00:00
Mark Andrews
c14f058cc2 checkpoint 2001-04-03 07:56:04 +00:00
Mark Andrews
7f2f148059 checkpoint 2001-04-03 07:47:22 +00:00
Mark Andrews
323b5028ef checkpoint 2001-04-03 07:43:10 +00:00
Mark Andrews
4218e29472 checkpoint 2001-04-03 07:33:07 +00:00
Mark Andrews
8a3e0f66c1 checkpoint 2001-04-03 07:21:35 +00:00
Mark Andrews
3b371eaa5d ALIGN 2001-04-03 07:11:35 +00:00
Mark Andrews
da3db8e2a1 getnetbyaddr_r 2001-04-03 06:52:23 +00:00
Mark Andrews
8ab9428e6b checkpoint 2001-04-03 06:42:33 +00:00
Mark Andrews
2dafe8a9f3 missig semi-colon 2001-04-03 06:01:36 +00:00
Mark Andrews
b0d36cc22b checkpoint 2001-04-03 05:53:02 +00:00
Mark Andrews
bd326fdc6e checkpoint 2001-04-03 02:53:40 +00:00
Mark Andrews
4d8800e571 checkpoint 2001-04-03 02:30:58 +00:00
Mark Andrews
27998b5bbd initial 2001-04-03 02:17:12 +00:00
Brian Wellington
cc0c9a92d6 remove unused base64 <--> binary conversion functions 2001-04-03 00:48:09 +00:00
Brian Wellington
9a28507cde regenerate 2001-04-03 00:29:18 +00:00
Brian Wellington
9bd186cd9a Remove dnssafe, cylink, and the broken dst random generator. 2001-04-03 00:28:16 +00:00
Brian Wellington
7b1ab9e210 don't do 0.0.0.0 -> 127.0.0.1 conversion for netmasks. 2001-04-02 23:05:14 +00:00
Brian Wellington
765eb27068 call inet_aton, not inet_pton when parsing resolv.conf 2001-04-02 22:33:31 +00:00
Mark Andrews
9de63e99af char array index 2001-04-02 09:42:20 +00:00
Mark Andrews
94803c4a46 MIN and MAX 2001-04-02 08:06:18 +00:00
Mark Andrews
d091280d77 MAXHOSTNAMELEN 2001-04-02 07:56:05 +00:00
Mark Andrews
12a7ea1c51 make structures private 2001-04-02 07:53:19 +00:00
Mark Andrews
68a1ce3cee private structures 2001-04-02 07:52:33 +00:00
Mark Andrews
5d989a8b8b checkpoint 2001-04-02 07:23:56 +00:00
Mark Andrews
87c7112365 sync 2001-04-02 07:05:00 +00:00
Mark Andrews
ba980b2c1e checkpoint 2001-04-02 07:03:56 +00:00
Mark Andrews
25ddc215c4 new 2001-04-02 06:42:17 +00:00
Mark Andrews
8122657ebf sync 2001-04-02 06:39:06 +00:00
Mark Andrews
28454712ae checkpoint 2001-04-02 06:38:19 +00:00
Mark Andrews
10e9ae3676 checkpoint 2001-04-02 06:29:21 +00:00
Mark Andrews
8e59dace1f sync 2001-04-02 05:57:53 +00:00
Mark Andrews
8d7927f73a checkpoint 2001-04-02 05:57:11 +00:00
Mark Andrews
2eb2d69130 sync checkpoint 2001-04-02 01:25:32 +00:00
Mark Andrews
ca05034308 checkpoint 2001-04-02 01:24:32 +00:00
Andreas Gustafsson
dcd3db4310 install man page aliases by linking 2001-03-31 00:34:16 +00:00
Andreas Gustafsson
ddccd5811f man page docbook conversion 2001-03-31 00:08:23 +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
Brian Wellington
414d289686 oops, cut-and-paste-o 2001-03-30 00:34:52 +00:00
Brian Wellington
e0bab4386b Treat a zone as secure only if it has a zone key and a signed NXT at the apex. 2001-03-30 00:33:39 +00:00
Brian Wellington
5684e37a3a #ifdef HAVE_SA_LEN 2001-03-29 23:19:51 +00:00
Mark Andrews
6475a59ca4 make/* need to be created _before_ the Makefiles are created. 2001-03-29 07:01:32 +00:00
Mark Andrews
d380990548 Initial pull over from BIND 8 2001-03-29 06:31:59 +00:00
Andreas Gustafsson
4b01d45a49 first cut at mandoc -> docbook conversion 2001-03-29 02:43:28 +00:00
Brian Wellington
672056d560 797. [func] Issue a warning if the 'directory' option contains
a relative path. [RT #269]
2001-03-29 02:33:48 +00:00
Andreas Gustafsson
9ffbbce6a6 first cut at mandoc -> docbook conversion 2001-03-29 02:23:11 +00:00
Brian Wellington
ec56b96c79 log sending of notifies at info level, and include the serial number. Also
clean up some weird code. [RT #1088]
2001-03-28 23:36:53 +00:00
Brian Wellington
c996e500f1 remove the errno handling code, which was only used by readsymtab/writesymtab 2001-03-28 23:11:41 +00:00
Brian Wellington
0368474a75 remove isccc_cc_readsymtab/isccc_cc_writesymtab 2001-03-28 23:10:39 +00:00
David Lawrence
2a86ee1f54 simplify the test about whether to roll; one expression was redundant 2001-03-28 05:48:16 +00:00
David Lawrence
9027e1bcf1 796. [func] When a size limit is associated with a log file,
only roll it when the size is reached, not every
			time the log file is opened. [RT #1096]
2001-03-28 04:16:32 +00:00
Brian Wellington
caa55a6557 When printing KEY records with COMMENT and MULTILINE, the line would often
be too long.
2001-03-28 02:57:26 +00:00
Brian Wellington
668f8d91db 795. [func] Add the +multiline option to dig.
(which requires dns_message_totext(), etc. to take a style parameter)
2001-03-28 02:42:56 +00:00
Andreas Gustafsson
bed7a35293 dns_master_questiontotext() needs a style argument after all 2001-03-28 00:58:15 +00:00
Andreas Gustafsson
bfe313722d dns_masterfile_style_debug -> dns_master_style_debug 2001-03-28 00:54:40 +00:00
Andreas Gustafsson
531eafa302 use dns_master_rdatasettotext() &co; removed unused flag
DNS_MESSAGETEXTFLAG_OMITDOT
2001-03-28 00:50:05 +00:00
Andreas Gustafsson
421551db8a new functions dns_master_rdatasettotext() and dns_master_questiontotext(),
replacing dns_rdataset_totext()
2001-03-28 00:22:16 +00:00
Brian Wellington
d7ba3622ff 794. [func] Implement the "port" and "default-port" statements
in rndc.conf.
2001-03-28 00:16:09 +00:00
Brian Wellington
45e22378fc dns_name_tofilenametext() now downcases the name, which means the callers
don't need to.
2001-03-27 23:43:15 +00:00
Brian Wellington
7d7215baf8 Add dns_name_tofilenametext(), and use it in the dnssec tools. 2001-03-27 22:57:48 +00:00
Brian Wellington
cb3e854e18 oops, use the nominum copyright for lib/isccc. Also fix the update_copyrights
script to do @YEARS@ expansion on 2 lines.
2001-03-27 20:08:15 +00:00
Andreas Gustafsson
9d2d409333 removed unused function isccc_ccmsg_keepbuffer();
fixed incorrect header multi-inclusion protection macros;
changed comment referring to 'DNS message' to say 'command channel message'
2001-03-27 18:34:56 +00:00
Brian Wellington
2999a3a988 remove erroneously added copyright 2001-03-27 02:25:34 +00:00
Brian Wellington
022d19c138 copyright updates 2001-03-27 02:06:13 +00:00
Brian Wellington
badf66abe0 Remove OMAPI. 2001-03-27 00:53:58 +00:00
Brian Wellington
1d92d8a245 792. [cleanup] Replace the OMAPI command channel protocol with a
simpler one.
2001-03-27 00:44:59 +00:00
Andreas Gustafsson
b52a5b0630 790. [bug] Wildcards created using dynamic update or IXFR
could fail to match. [RT #1111]
2001-03-27 00:06:34 +00:00
Brian Wellington
6eccf5bd07 788. [feature] Add the "match-mapped-addresses" options, which
causes IPv6 v4mapped addresses to be treated as
			IPv4 addresses for the purpose of acl matching.
2001-03-26 21:33:07 +00:00
Brian Wellington
0a10d7722e remove comment referring to dead code. 2001-03-26 21:11:33 +00:00
Andreas Gustafsson
9efa0d2ae3 do not capitalize error message strings 2001-03-24 02:18:42 +00:00
Brian Wellington
b8a85202af 786. [bug] When signing/verifying data, names were not properly
downcased.
2001-03-23 03:51:04 +00:00
Andreas Gustafsson
c52683ae45 'serial-query-rate 1;' caused an assertion failure 2001-03-23 00:33:28 +00:00
Brian Wellington
734ae1f7c6 isc_{base64|hex}_decodestring took an unused mctx. Remove the mctx. 2001-03-22 00:07:07 +00:00
Brian Wellington
27422dd5db typo [RT #1094] 2001-03-21 20:45:55 +00:00
Andreas Gustafsson
1824b43f62 parse_mapbody() could return ISC_R_SUCCESS when it failed, triggering
an assertion
2001-03-21 19:01:36 +00:00
Andreas Gustafsson
b879ed05f4 785. [bug] A race condition in the resolver could cause
an assertion failure. [RT #673, #872, #1048]
2001-03-20 22:13:00 +00:00
Brian Wellington
48565891e8 784. [bug] nsupdate and other programs would not quit properly
if some signals were blocked by the caller. [RT #1081]
2001-03-20 21:45:20 +00:00
Brian Wellington
dde4382b7f fix comment 2001-03-19 22:44:52 +00:00
Brian Wellington
54d64c7994 782. [feature] Implement the serial-query-rate option. 2001-03-19 22:34:14 +00:00
Brian Wellington
c302b021cc the sdb returned the wrong answer when querying for dnames below other dnames
and ANY queries at delegation points.
2001-03-17 02:52:29 +00:00
Brian Wellington
ae114ded82 Fix a bunch of unused variable warnings that only occurred with assertions
turned off.
2001-03-16 22:53:20 +00:00
Brian Wellington
0d19c777ae Use a counter instead of a flag to indicate if the resolver is in the
process of connecting.  There's a possibility that a connect might not
have sent a completion event when another one starts, and this could cause
bad things to happen since the query would only know about one connect.
2001-03-16 21:50:59 +00:00
Brian Wellington
fc0d37fa3a init the name in dns_message_gettempname(). This means it'll be done twice
in many cases, but it means dns_message_puttempname() can safely be called
on the name in all cases.
2001-03-15 03:00:50 +00:00
Brian Wellington
2048bb8c0c dns_message_parse() cannot return DNS_R_MOREDATA. 2001-03-15 02:00:15 +00:00
Bob Halley
d911284333 add support for minimal-responses 2001-03-14 21:53:29 +00:00
Bob Halley
9ac88d91b4 Simplify some code in protocol_setvalue(), eliminating the "sigsize"
variable which was causing a compiler warning.
2001-03-14 17:59:25 +00:00
Brian Wellington
2f02f32f04 exit(1), not exit(-1) 2001-03-14 06:31:17 +00:00
Andreas Gustafsson
52c17deb58 some variables which should have been static weren't 2001-03-14 00:30:06 +00:00
Mark Andrews
b01cd0d5c7 Use dns_dispatch_getlocaladdress() to retrieve the local address to bind too. 2001-03-13 05:49:58 +00:00
Mark Andrews
a674e7ecec add dns_dispatch_getlocaladdress(). 2001-03-13 05:48:41 +00:00
Andreas Gustafsson
b31c8af1d9 name libisccfg logging functions consistently with
other libisccfg functions [RT #1020]
2001-03-13 03:04:09 +00:00
Brian Wellington
d03fd76636 add a cast [RT #1013] 2001-03-12 22:39:36 +00:00
Brian Wellington
461260ac15 add casts [RT #1017] 2001-03-12 22:27:15 +00:00
Mark Andrews
a65826596f Add const to declaration of start_directory(); 2001-03-12 01:05:52 +00:00
Andreas Gustafsson
dd57718608 #include <isc/print.h> 2001-03-09 23:38:00 +00:00
Brian Wellington
e608c9829f - Detect selective forwarding errors in the configuration checker.
- Clean up selective forwarding configuration.
- Fixed a few minor unrelated bugs in the configuration checker.
2001-03-09 19:07:30 +00:00
Bob Halley
c6237585d8 Fix some typos in the non-threaded version of isc_rwlock_trylock() that
were preventing compilation.
2001-03-08 19:52:13 +00:00
David Lawrence
f3432e1b48 moved INADDR_LOOPBACK definition to lwres/net.h, because it was causing
redefinition warnings on multiple platforms
2001-03-08 16:09:41 +00:00
David Lawrence
2283923028 a last minute edit added one too many conditions for putting a node on the
deletions list
2001-03-08 03:31:29 +00:00
David Lawrence
85e80b5b69 Remove name/node from the rbtdb in no_references().
Iterator uses 'cleaning' flag to expire nodes.
2001-03-08 01:35:27 +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
David Lawrence
31d3e8d2fe new function, dns_dbiterator_setcleanmode(), which enables cleaning
in the rbtdb
2001-03-08 01:16:06 +00:00
David Lawrence
a09c545af1 join_nodes is removed; node joining is no longer done at any time, because
it corrupts active chains and can change the data at a node which
someone might be using.  (In the latter case, though the full name from
the root was still intact, and the ->data member was not altered, other
values like the partial name ndata and offsets could change.)

New functions dns_rbt_fullnamefromnode() and dns_rbt_formatnodename(),
for getting a dns_name_t and filling a char buffer, respectively, with
the complete name of a node from the root.

rbtnode.is_root was being treated as isc_boolean_t even though it was bitfield
of width 1.  This worked fine, but wasn't consistent with ISC style, and
would have puked if someone decided to change isc_true from 1 (unlikely
as that is).  Yeah, anal, I know.
2001-03-08 01:08:39 +00:00
Brian Wellington
8b9b498009 Check for duplicate zone and key statements. Note that duplicate server
and view statements are not detected, because they're harder.
2001-03-08 00:55:50 +00:00
David Lawrence
a82fd2c01b added non-blocking locking, isc_rwlock_trylock() 2001-03-08 00:55:15 +00:00
Andreas Gustafsson
d55642259e use a simpler, faster hash function 2001-03-07 23:52:16 +00:00
Brian Wellington
0783aab720 allow-update-forwarding is not allowed in stub zones. 2001-03-07 23:36:26 +00:00
Andreas Gustafsson
123a3dddc9 772. [bug] Owner names could be incorrectly omitted from cache
dumps in the presence of negative caching entries.
                        [RT #991]
2001-03-07 22:30:21 +00:00
Brian Wellington
5ea0d11ca4 771. [cleanup] TSIG errors related to unsynchronized clocks
are logged better.
2001-03-07 20:53:32 +00:00
Andreas Gustafsson
fc04bb9d98 lame server on ... -> lame server resolving ... [RT #641] 2001-03-07 18:03:07 +00:00
Brian Wellington
d25dd5b056 770. [func] Add the "edns yes_or_no" statement to the server
clause. [RT #524]
2001-03-06 23:54:37 +00:00
Brian Wellington
3fccea030d #include <lwres/net.h> 2001-03-06 23:12:15 +00:00
Brian Wellington
ac3f9fa1ec remove unnecessary #includes 2001-03-06 23:02:04 +00:00
Mark Andrews
9ac7076eba 769. [func] Improved error reporting when parsing rdata. [RT #740]
Two new error codes.  Also push back the last token, if it makes
sense to do so, so that it gets printed in the error message using
RETTOK macro, rather than straight return or RETERR.
2001-03-06 22:11:18 +00:00
Brian Wellington
93e66a44a0 remove #ifdef REENTRANT 2001-03-06 21:46:03 +00:00
Andreas Gustafsson
2c476880d6 parse_sockaddrsub() assumed current token was string
token withouth checking that it actually was; reformatted for
80 columns
2001-03-06 19:13:01 +00:00
Brian Wellington
72b7d215f7 The directory option didn't have the CFG_CLAUSEFLAG_CALLBACK bit set, so the
callback wasn't executed. [RT #978]
2001-03-06 18:17:52 +00:00
Mark Andrews
5aa9a23af5 MANYERRORS would cause the next line to be skipped if dns_rdata_fromtext failed. 2001-03-06 13:32:42 +00:00
Brian Wellington
2eb3dafdcf Add the socket flag ISC_R_NORETRY, which makes the socket code treat
a soft error as a hard error on send (that is, not retry it).  It also
modifies the code calling sendmsg() to retry on EINTR.
2001-03-06 01:23:03 +00:00
Brian Wellington
56ea2e19a2 add a cast [RT #974] 2001-03-05 23:14:03 +00:00
Brian Wellington
438b80a31b Remove the old configuration parser 2001-03-05 22:49:33 +00:00
Brian Wellington
5e2f472561 add casts [RT #974] 2001-03-05 22:39:57 +00:00
Brian Wellington
e43b9a2005 move compression context create/delete into the caller of the message
rendering functions.  This reduces the size of the message object.
2001-03-05 21:15:47 +00:00
Brian Wellington
be066f0629 Put 4 offsets in a msgblock, not 8. offsets are big enough that this helps.
Also remove an unused variable.
2001-03-05 20:12:49 +00:00
Brian Wellington
5f8b996a81 Reduce the number of objects preallocated in the message, which reduces
the per-recursive-client memory.
2001-03-05 20:06:10 +00:00
Danny Mayer
943322a123 Remove LIBISC_EXTERNAL_DATA usage 2001-03-05 18:47:00 +00:00
Danny Mayer
8096fe1df5 put function declaration on new line 2001-03-05 18:20:24 +00:00
David Lawrence
c56c28c3f2 grammatical typo in comment 2001-03-05 12:34:02 +00:00
Brian Wellington
6893a1ee93 fix more bugs 2001-03-04 21:18:30 +00:00
Brian Wellington
b3eac7c50c #include <config.h> 2001-03-04 18:38:13 +00:00
Brian Wellington
e1fc1c580b consolidate duplicated code 2001-03-03 23:09:23 +00:00
Brian Wellington
dd741aefc3 check that 'max-cache-size' is not 'default' 2001-03-03 23:05:23 +00:00
Andreas Gustafsson
3ee9853eb4 return sizes as 64-bit integers, not strings 2001-03-03 02:18:13 +00:00
Andreas Gustafsson
0d453b0ef2 'versions' and 'size' are not log channel clauses 2001-03-03 01:08:02 +00:00
Andreas Gustafsson
d39e9cdfd0 logging statement file clause syntax was still wrong 2001-03-03 00:52:39 +00:00
Andreas Gustafsson
fac0a17b66 fix syntax of the logging statement file clause 2001-03-02 20:00:17 +00:00
Brian Wellington
303243b9d4 Add isc/unix/syslog.c with a function to convert strings to syslog facilities. 2001-03-02 19:25:19 +00:00
Brian Wellington
bdc79a7164 The constants CFG_CLAUSEFLAG_NEWDEFAULT and CFG_CLAUSEFLAG_NYI should have
different values.
2001-03-02 07:03:55 +00:00
Brian Wellington
0ca1225ee6 more bugs 2001-03-02 03:09:27 +00:00
Brian Wellington
18b492aed1 bugs 2001-03-02 01:30:32 +00:00
Andreas Gustafsson
58fd5050ce check enumerated values 2001-03-02 01:10:51 +00:00
Brian Wellington
94030c4654 remove 'static' 2001-03-02 00:49:31 +00:00
Brian Wellington
12f4f02695 Add code to syntactically check a named.conf file. 2001-03-01 23:46:49 +00:00
Brian Wellington
3e72dc6534 DNS_CFG_H -> ISCCFG_CFG_H 2001-03-01 23:03:43 +00:00
Brian Wellington
a8dd4ccadb missing space 2001-03-01 22:40:09 +00:00
Brian Wellington
ae00b82d93 spelling 2001-03-01 17:46:59 +00:00
Andreas Gustafsson
37928634f4 don't print extra spaces at omitted optional fields 2001-03-01 03:22:12 +00:00
Andreas Gustafsson
36b810d77a the 'keys' clause of the 'controls' statement is optional 2001-03-01 03:10:08 +00:00
Brian Wellington
15c5b240a6 dns_peer_setkeybycharp didn't initialize a fixedname. 2001-03-01 02:28:34 +00:00
Andreas Gustafsson
478f0ca6b3 revert previous change - it breaks default resolution 2001-03-01 00:08:58 +00:00
Andreas Gustafsson
38c6d5d57b check for attempts to retrieve nonexistent map clauses 2001-03-01 00:01:23 +00:00
Brian Wellington
999c7e9e33 There can be multiple "lwres" statements. 2001-02-28 23:56:08 +00:00
Brian Wellington
a0b4d6cf8a comment style 2001-02-28 21:19:53 +00:00
Brian Wellington
0dea013c25 add an ISC_FORMAT_PRINTF qualifier to cfg_obj_log(). 2001-02-28 20:54:03 +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
088a25086a warn about attempts to configure control channels of the
unimplemented 'unix' type
2001-02-28 20:40:48 +00:00
Brian Wellington
d752e5c19e removed pointless code (an if statement checking something that had been
INSISTed on the previous line).
2001-02-28 20:20:18 +00:00
Andreas Gustafsson
f565623991 parsing the 'controls' statement is now table driven; each
'controls' statement is a map with the clauses 'inet' and 'unix'
2001-02-28 19:54:10 +00:00
Brian Wellington
113dee27af dns_zt_load() was not checking the validity of the zonetable. 2001-02-27 02:54:11 +00:00
Andreas Gustafsson
28a3d52904 define ISC_PLATFORM_QUADFORMAT in platform.h so that it can more easily
be overridden on Win32.  This means ISC_PLATFORM_LONGLONGEQUALLONG is no longer
needed. [RT #896]
2001-02-27 02:22:17 +00:00
Brian Wellington
948113671b cfg_list_first() now returns NULL if the list is NULL. 2001-02-27 01:49:46 +00:00
Andreas Gustafsson
d011c10d8a the name of a 'server' map is now a network address, not a string;
avoid infinite loop when parsing a bad ACL element
2001-02-27 01:31:56 +00:00
Brian Wellington
590f840d34 implement the prototyped but nonexistant function dns_peer_setkeybycharp(). 2001-02-27 01:13:18 +00:00
Andreas Gustafsson
0b6849487f cfg_type_keyref needs to be public 2001-02-26 22:55:55 +00:00
Andreas Gustafsson
9fa6e90569 new function cfg_obj_istype(); the sole tuple field of negated acls is now
called 'value', not 'acl'; rationalized representation of key references and
debug levels
2001-02-26 22:37:34 +00:00
Andreas Gustafsson
0136b4ef55 new functions cfg_obj_isnetprefix(), cfg_obj_asnetprefix() 2001-02-26 19:15:12 +00:00
Andreas Gustafsson
681780f044 represent negated acls as one-element tuples rather than a special
primitive type
2001-02-26 18:58:36 +00:00
Brian Wellington
f5ccecd9c3 #include <config.h> 2001-02-26 02:49:19 +00:00
Mark Andrews
a93cf7e83b 756. [bug] dns_zone_load() could "return" success when no master
file was configured.

 755.   [bug]           Fix format bugs in zone.c (non-exploitable).
2001-02-26 01:45:57 +00:00
Andreas Gustafsson
c05eeed3c9 754. [bug] Certain failure returns from sendto() could
cause the server to retry the transmission
                        indefinitely. [RT #902]
2001-02-24 23:51:09 +00:00
Mark Andrews
70ec7dd741 fix tv_usec in isc_time_nowplusinterval() also. 2001-02-24 10:22:20 +00:00
Mark Andrews
0fd53e151b unse not sec 2001-02-24 02:53:38 +00:00
Brian Wellington
6fd0827482 Remove notify forwarding. 2001-02-24 00:59:00 +00:00
Mark Andrews
df0f58959e 752. [func] Correct bad tv_usec elements returned by gettimeofday(). 2001-02-23 23:12:28 +00:00
Mark Andrews
903e9d41ef 751. [func] Log successful zone loads / transfers. 2001-02-23 22:32:07 +00:00
Bob Halley
c274e542ad The fixes to return the SIG of a DNAME RR missed one place where
search.zonecut was set, and consequently we were accessing
search.zonecut_sigrdataset without initializing it.
2001-02-23 05:33:36 +00:00
David Lawrence
f6d45c9539 missing va_start() in cfg_obj_log() 2001-02-23 04:52:29 +00:00
Bob Halley
f4b5a0f434 When a query matched a DNAME in a secure zone, the server did not return the
signature of the DNAME.  [RT #915]

A query should not match a DNAME whose trust level is pending.  [RT #916]
2001-02-23 02:14:14 +00:00
Brian Wellington
542a74fcc4 comment update 2001-02-23 01:52:18 +00:00
Brian Wellington
c5c779df9a add a comment 2001-02-23 01:45:29 +00:00
Brian Wellington
5ca7310c8a msg->tsigkey was not checked for NULL before deferencing [RT #913] 2001-02-23 01:38:07 +00:00
Andreas Gustafsson
106ff3bc09 more typos 2001-02-23 01:00:58 +00:00
Brian Wellington
d5573eb8a9 typos 2001-02-23 00:24:34 +00:00
Andreas Gustafsson
4428702688 the values of the notify and dialup options may now be of either boolean or
string types; added cfg_obj_is*() functions for determining the type of a configuration object;
reordered some functions in parser.c
2001-02-23 00:15:55 +00:00
Brian Wellington
fba7c63ea4 add cfg_obj_assockaddr 2001-02-22 23:59:28 +00:00
Andreas Gustafsson
a9be709e8e cfg_obj_log now takes a log context instead of a parser 2001-02-22 20:41:43 +00:00
Andreas Gustafsson
042285a6a6 localization-wise, an assertion error message saying
(literally) "INSIST(isc_msgcat_get(isc_msgcat, ISC_MSGSET_PRINT, ISC_MSG_USELD,
"use %ld instead of %D") == NULL) failed" is not really any more user-friendly
than one saying just "INSIST("use %ld instead of %D" == NULL) failed
2001-02-22 19:12:57 +00:00
Andreas Gustafsson
9165c95fc2 use isc_int64_t, not long long 2001-02-22 18:03:11 +00:00
Andreas Gustafsson
4115f9d34b revert 'protect long long with ISC_PLATFORM_HAVELONGLONG' change 2001-02-22 18:01:48 +00:00
Andreas Gustafsson
25c3ab1a5f cache-file option name was misspelled 2001-02-22 17:30:09 +00:00
Brian Wellington
325b200123 support the cache-file option 2001-02-22 05:45:28 +00:00
Andreas Gustafsson
5c7f675804 new function cfg_tuple_get() 2001-02-22 04:17:37 +00:00
Andreas Gustafsson
80a1cac849 give names to tuple fields 2001-02-22 03:13:08 +00:00
Brian Wellington
b5e6ee7f74 typo 2001-02-22 02:44:08 +00:00
Andreas Gustafsson
e24349aa27 added isccfg log modules and categories 2001-02-22 02:39:24 +00:00
Brian Wellington
f0751a815e add cfg_obj_asboolean() 2001-02-22 01:40:53 +00:00
Andreas Gustafsson
c396dc6551 added cfg_obj_log() 2001-02-22 00:36:26 +00:00
Andreas Gustafsson
1b0fca7957 added cfg_parser_setcallback(); minor cleanup 2001-02-22 00:23:31 +00:00
Brian Wellington
9a41936e3d current_root was uninitialized at the start of dns_rbt_findnode(). This
has no real effect, but it's still good to fix it.
2001-02-21 23:21:28 +00:00
Brian Wellington
26e5029fd5 Added a cast. [RT #899] 2001-02-21 19:57:38 +00:00
Brian Wellington
6be1dc9d2a Document the 'covers' parameter to dns_message_findname and
dns_message_findtype.
2001-02-21 18:32:27 +00:00
Mark Andrews
0490a61acd protect long long with ISC_PLATFORM_HAVELONGLONG 2001-02-21 06:13:33 +00:00
Mark Andrews
754cca729d add long long test 2001-02-21 06:09:56 +00:00
Brian Wellington
36608f2052 When returning from validation, make sure to handle chaiing correctly. 2001-02-21 05:16:44 +00:00
Mark Andrews
fbafe841ef fixed pushing and poping of included files. [RT#904] 2001-02-21 03:53:11 +00:00
Brian Wellington
c5945fe694 Fix a potential bitstring bug. 2001-02-21 02:27:56 +00:00
Brian Wellington
4e8eba14a0 reinstate an INSIST() referenced in [RT #421] 2001-02-21 02:01:15 +00:00
Brian Wellington
a012d6dbfb 746. [bug] The sdb didn't clone rdatasets properly, causing
a crash when the server followed delegations. [RT #905]
2001-02-20 23:20:44 +00:00
Andreas Gustafsson
b7d448de55 no need to specifically ask people to mail bind9-bugs about mempool leaks 2001-02-20 22:03:36 +00:00
Brian Wellington
f70336b8c9 Cleanups to TSIG/SIG(0) parsing. This should have no noticable effect except
rejecting a few more malformed packets (those with the TSIG/SIG(0) not the
last record) and making best-effort parsing handle multiple TSIG/SIG(0)/OPT in
a message.
2001-02-19 20:14:23 +00:00
Mark Andrews
43de493006 745. [func] Report the owner name on when adding a rdataset
to the internal database fails while loading.
2001-02-19 13:24:04 +00:00
Bob Halley
1e50dad10d When returning DNS_R_CNAME or DNS_R_DNAME as the result of an ANY or SIG
query, the resolver failed to setup the return event's rdatasets, causing an
assertion failure in the query code.  [RT #881]

The fix includes the addition of the DNS_NAMEATTR_CHAINING attribute,
and the removal of the DNS_NAMEATTR_CNAME and DNS_NAMEATTR_DNAME attributes,
because they were not used anywhere in the current source.
2001-02-19 08:54:54 +00:00
Brian Wellington
3bd43bb300 ENSURE that a message's memory pools don't have any allocated data at the
end of msgreset().  This should trigger the mpctx->allocated != 0 assertion
when the leak occurs, not at server shutdown.
2001-02-18 23:46:26 +00:00
Brian Wellington
3f07549972 comment fix 2001-02-18 21:19:43 +00:00
Brian Wellington
62adc5ed76 Call free_namelist() rather than freeing the list manually. 2001-02-17 02:22:43 +00:00
Andreas Gustafsson
19eee89387 if dns_message_gettempname() failed, we would try to call
dns_message_putemprdataset() on an uninitialized pointer
2001-02-17 02:16:14 +00:00
Andreas Gustafsson
52719005ab removed empty line 2001-02-17 01:23:43 +00:00
Brian Wellington
9154e66053 remove compiler warning 2001-02-17 00:53:59 +00:00
Andreas Gustafsson
dec0721d45 eliminate compiler warning; need <isc/print.h> 2001-02-17 00:46:58 +00:00
Andreas Gustafsson
4e72c83c94 removed unused variable 2001-02-17 00:23:49 +00:00
Andreas Gustafsson
4a4c888759 eliminate compiler warnings (hopefully) 2001-02-17 00:22:40 +00:00
Andreas Gustafsson
b8d0eef0fc new function cfg_parse_buffer() 2001-02-17 00:15:22 +00:00
Brian Wellington
683301a954 fix a potential (but highly unlikely) memory leak. 2001-02-16 21:29:45 +00:00
David Lawrence
d5e7142f9d #include <stddef.h> to ensure definition of NULL 2001-02-16 04:14:16 +00:00
Andreas Gustafsson
be7c0682f7 rrset-order wants braces around its list 2001-02-16 02:57:40 +00:00
Andreas Gustafsson
d0749d582e fix query source parsing 2001-02-16 02:43:30 +00:00
Brian Wellington
9697d96db3 max-names no longer exists 2001-02-16 02:34:33 +00:00
Brian Wellington
c7c9f4a989 Use ISC_R_NOTIMPLEMENTED to indicate an unsupported algorithm, not
DST_R_UNSUPPORTEDALG.
2001-02-16 00:54:28 +00:00
Brian Wellington
c47ca47629 Remove the old rndc config parser. 2001-02-16 00:47:45 +00:00
Brian Wellington
cdee5991b8 Don't include <dst/result.h> 2001-02-16 00:21:09 +00:00
Brian Wellington
06b678ec4a Add const in a few places. 2001-02-15 23:22:27 +00:00
Brian Wellington
94178e98f8 isc_base64_decodestring should take a const char *, not a char * 2001-02-15 23:21:47 +00:00
Brian Wellington
7bd7a2a798 cleaned up some code that Andreas thought was ugly. 2001-02-15 20:10:04 +00:00
Brian Wellington
bb136669b6 Use the isc hmac-md5 routines instead of dst. 2001-02-15 19:44:46 +00:00
Brian Wellington
d60c005a70 <dns/acl.h> is not needed, but <dns/name.h> is. 2001-02-15 19:13:48 +00:00
Andreas Gustafsson
5e1c2afd10 incorrect indentation 2001-02-15 19:09:55 +00:00
Andreas Gustafsson
bd4b8fe050 provide functions to access map names and lists 2001-02-15 18:53:03 +00:00
Brian Wellington
2d67fbd786 80 character lines 2001-02-15 07:58:48 +00:00
Andreas Gustafsson
4e7a39d617 added syntax tables for the rndc.conf file format 2001-02-15 05:14:16 +00:00
Andreas Gustafsson
2b23de3783 merge in new yacc-free configuration parser from the newconfig branch 2001-02-15 04:21:17 +00:00
Andreas Gustafsson
be7f273043 merge in new yacc-free configuration parser from the newconfig branch 2001-02-15 04:14:15 +00:00
Brian Wellington
507102c95a In dns_compress_invalidate(), cctx->table cannot be NULL, since it's part of
the cctx structure.
2001-02-15 01:14:16 +00:00
Andreas Gustafsson
449f4411c9 NO NEED TO SHOUT 2001-02-14 23:05:14 +00:00
Brian Wellington
2cb74c5bc5 741. [port] Support openssl-engine. [RT #709] 2001-02-14 20:57:15 +00:00
Brian Wellington
3d60fe9baf 740. [port] Handle openssl library mismatches slightly better. 2001-02-14 20:26:48 +00:00
Mark Andrews
0c6971b8ea Split the load context in two, one part that is visible across all files
the other part that is include file specific.
2001-02-14 13:14:50 +00:00
Andreas Gustafsson
65a66336a6 redid configuration locking using isc_task_beginexclusive()
and isc_task_endexclusive() instead of a multitude of separate
configuration rwlocks
2001-02-14 03:54:53 +00:00
Andreas Gustafsson
1dd8ee4fd5 fctx_addopt() would leak an rdataset if dns_message_setopt() ever failed;
fixed it by making dns_message_setopt() guarantee to either adopt
or free the rdataset
2001-02-14 02:51:12 +00:00
Brian Wellington
8766351a67 general cleanup 2001-02-14 00:43:10 +00:00
Andreas Gustafsson
d156c10aee removed extra empty line 2001-02-14 00:29:16 +00:00
Andreas Gustafsson
8f17525ebc in some situations, a request could be cancelled twice 2001-02-13 21:06:25 +00:00
Brian Wellington
47d78f67cb Give more information when isc_mempool_destroy() dies with an assertion
failure, in the hope that we'll be able to fix the bug one day.
2001-02-13 20:29:27 +00:00
Brian Wellington
b2c46df291 A receive could be erroneously cancelled because of missing braces around a
block.
2001-02-13 20:21:52 +00:00
Brian Wellington
f24c135e09 738. [bug] If a non-threadsafe sdb driver supported AXFR and
received an AXFR request, it would deadlock or die
                        with an assertion failure.
(also some other cleanups)
2001-02-13 20:11:15 +00:00
Mark Andrews
382c4ce5a3 737. [port] stdtime failed to compile on certain platforms. 2001-02-13 13:24:09 +00:00
Mark Andrews
ba6e506ed2 #if not #ifdef ISC_MEM_TRACKLINES 2001-02-13 13:20:37 +00:00
Mark Andrews
b499a7c511 Print out the active memory prior to INSIST/REQUIRE failures. 2001-02-13 06:21:32 +00:00
Andreas Gustafsson
02940eaf0f 736. [func] New functions isc_task_{begin,end}exclusive(). 2001-02-13 04:11:44 +00:00
Brian Wellington
100d0d2ec6 Use a refcount instead of an explicit mutex and integer. 2001-02-13 03:57:06 +00:00
Andreas Gustafsson
8126e45e8c do dns_request_t cancel processing through a control event to
ensure that dns_dispatch_removeresponse() is called from the correct task
[RT #844]
2001-02-13 02:49:07 +00:00
Brian Wellington
4ce1248f09 fixed uninitialized variable 2001-02-13 01:29:33 +00:00
Brian Wellington
9f708f9014 isc_mem_stats() should print memory statistics even when there are no
allocated blocks at the time it's called.
2001-02-13 01:07:54 +00:00
Brian Wellington
55f3daa4ea When parsing a message, add an offsets table to each name. Also allow callers
rendering a message to get temporary offsets tables to attach to names added
to the message.
2001-02-13 01:02:59 +00:00
Brian Wellington
31efcf6478 Build the offsets table in dns_name_fromwire() while parsing the name, not
by calling set_offsets.
2001-02-13 00:07:25 +00:00
Andreas Gustafsson
ea16b37d71 install refcount.h 2001-02-12 23:11:05 +00:00
Brian Wellington
1f7f8d5c07 Add isc_socket_sendto2() and isc_socket_recv2(). These versions take
a partially constructed event and flags.  The flags can include
ISC_SOCKFLAG_IMMEDIATE, which means that if the operation completes, the
event is filled in and not sent.
2001-02-12 21:43:17 +00:00
Brian Wellington
a13ca8a125 Add ISC_R_INPROGRESS (operation in progress) 2001-02-12 20:03:16 +00:00
Brian Wellington
29daf5bc77 The suffix returned by dns_compress_findglobal() is never used, so remove it. 2001-02-12 18:07:52 +00:00
Brian Wellington
0c264c9094 The prefix and suffix names used in name compression don't need offset tables,
since they're never used.  Not having offset tables makes filling in their
contents more efficient.
2001-02-12 05:22:34 +00:00
Brian Wellington
cdc50af0bf In the towire_* and additionaldata_* routines, add an offsets table to names
passed into dns_name_toregion().  This is effectively free, and reduces the
number of calls to set_offsets() and dns_name_clone() in name compression.
2001-02-12 03:05:05 +00:00
Mark Andrews
9b6398efdf re-do #734 2001-02-12 03:03:40 +00:00
Andreas Gustafsson
6cefb74b2b dns_dispatch_removeresponse() failed to document the
requirement that it is only called from the task where the
response entry being removed delivers its events (Michael
agrees that this is indeed a requirement)
2001-02-11 19:11:52 +00:00
Mark Andrews
4dc2987f47 used the wrong xfr in #734 2001-02-11 02:23:12 +00:00
Brian Wellington
7c3996209b fix a "statement is unreachable" warning 2001-02-11 00:52:31 +00:00
Brian Wellington
7222f9f321 The optimization to avoid compares after hashtable matches didn't work when
the matched node contained multiple labels.
2001-02-10 22:46:24 +00:00
Brian Wellington
82ecc44b96 another micro-optimization. 2001-02-10 02:55:05 +00:00
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
Andreas Gustafsson
1d625775ee note that max_size and target_size apply only when
ISC_MEM_USE_INTERNAL_MALLOC is set
2001-02-09 19:19:17 +00:00
Andreas Gustafsson
50179a15d1 UNUSED() 2001-02-09 19:08:11 +00:00
Andreas Gustafsson
dd0ef1a9d3 removed the unused and undocumented functions
isc_mem_preallocate(), isc_mem_valid(), isc_mem_setsplit(), and
isc_mem_restore()
2001-02-09 19:05:23 +00:00
Andreas Gustafsson
c674a8d5e7 documented the isc_mem_* interface 2001-02-09 18:51:20 +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
Andreas Gustafsson
780db05762 use the UNUSED() macro 2001-02-09 18:27:18 +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
3f53ec3bd7 added missing copyright message; ISC_REFERENCE_H -> ISC_REFCOUNT_H 2001-02-09 00:26:20 +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
b7f7a77d56 #include <isc/mutex.h> 2001-02-09 00:20:01 +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
Brian Wellington
91425b5e72 730. [bug] lwres_getaddrinfo() returns the correct result when
it fails to contact a server. [RT #768]
2001-02-08 00:31:21 +00:00
Brian Wellington
1938554ccc consolidate duplicated code 2001-02-08 00:04:11 +00:00
Mark Andrews
df0bcff664 extend change #727 to check returned address length for zero. 2001-02-07 23:40:28 +00:00
Brian Wellington
744304361c actually call isc_thread_setconcurrency() 2001-02-07 21:16:12 +00:00
Andreas Gustafsson
1964de81da UNUSED() macro added in 1.79 was in the wrong place 2001-02-07 20:05:15 +00:00
Andreas Gustafsson
91f74728a7 UNUSED() 2001-02-07 20:03:23 +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
abc0c36dc3 The ISC__BUFFER_INIT macro had a typo. 2001-02-07 01:36:12 +00:00
Andreas Gustafsson
9a3ee1570d "hard" errors in accept() were handled really badly. They were logged
twice, and the socket object for the new socket was never destroyed,
causing the server to hang on exit (if multithreaded) or dump core on exit
(if singlethreaded).  Now the only difference between "hard" and "soft" errors
is that the latter are not logged.
2001-02-06 23:43:01 +00:00
Andreas Gustafsson
8dab78b566 as a workaround for various OS bugs, do not INSIST() that
accept() returns a valid peer address; instead just log an ugly error message
and continue if the peer address is left unchanged or insane by accept()
[RT #809]
2001-02-06 23:04:02 +00:00
Brian Wellington
f96ad6baf5 Only check to make sure that the full number of bytes were sent if the
send operation succeeded.  I'm still not convinced that send_done() works
correctly, but making other changes that look correct causes assertion failures.
2001-02-06 22:54:27 +00:00
Brian Wellington
2305225a1c The interface name field was only partially initialized. 2001-02-06 01:20:46 +00:00
Brian Wellington
770d3b36da ctx->checkfree was only being initialized if USE_INTERNAL_MALLOC was on. 2001-02-05 23:48:25 +00:00
Brian Wellington
0ef3f4fb41 When memsetting the entropy pool to 0, the count should be the size in bytes,
not words.
2001-02-05 23:00:18 +00:00
Brian Wellington
7aac083523 The flags field of the request structures were not initialized (thanks, purify) 2001-02-05 20:48:42 +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
Brian Wellington
f91dc72b42 725. [bug] Installing man pages could fail. 2001-02-04 15:52:44 +00:00
Andreas Gustafsson
6b2f58f5c1 removed inappropriate 'Any bitstring labels are in canonical form' comments 2001-02-02 22:08:27 +00:00
Andreas Gustafsson
7e361074bc 724. [func] New libisc functions isc_netaddr_any(),
isc_netaddr_any6().
2001-02-02 02:48:47 +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
Brian Wellington
d378ec4758 The return value of lwres_net_pton was checked for != 0 in a few places,
not == 1.
2001-01-31 22:06:33 +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
Mark Andrews
fd50497bbe isc_dir_chroot() 2001-01-29 03:17:45 +00:00
Brian Wellington
6f9786fdcf Consolidate duplicated code in isc_socket_sendto[v] and isc_socket_recv[v]. 2001-01-27 06:41:36 +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
3a66efb0cb remove the completely unused timer->mctx field. 2001-01-27 02:44:07 +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
562f162981 remove unused labels 2001-01-27 01:16:09 +00:00
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
Brian Wellington
6e8b041d9c blackholed addresses were mishandled in the resolver. 2001-01-19 22:22:17 +00:00
Mark Andrews
89f4a7085c 694. [bug] $GENERATE did not produce the last entry. [RT#683] 2001-01-19 20:45:33 +00:00
Andreas Gustafsson
eed89be339 incremented library version number for 9.2 2001-01-19 01:55:11 +00:00
Andreas Gustafsson
d36250a1b2 include zone.c function names in debug log messages only;
export dns_zone_log() for use by related modules
2001-01-18 23:29:31 +00:00
Brian Wellington
2a006fffe4 our NAPTR implementation does conform to RFC 2915. 2001-01-18 22:05:41 +00:00
Andreas Gustafsson
7ed2d93fa4 691. [bug] Configuring per-view forwarders caused an assertion
failure. [RT #675]
2001-01-18 19:01:39 +00:00
Mark Andrews
ca9c0ba235 690. [func] $GENERATE now supports DNAME. [RT #654] 2001-01-18 08:53:34 +00:00
Brian Wellington
6ec4990544 copyright update 2001-01-18 02:00:59 +00:00
Brian Wellington
21e82177fb make message->rcode a dns_rcode_t 2001-01-18 00:26:36 +00:00
Bob Halley
5c7d67e3e6 include <stdlib.h> to get prototype for exit() 2001-01-17 19:48:45 +00:00
Andreas Gustafsson
8bb77cd31b fix RT #660 differently 2001-01-17 17:44:49 +00:00