Commit graph

4940 commits

Author SHA1 Message Date
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