David Lawrence
2a8fc4e9f7
Quiet HP/UX warnings:
...
cc: "lhash.c", line 294: warning 714: Function "func" called with no prototype or definition in scope.
cc: "lhash.c", line 401: warning 714: Function called with no prototype or definition in scope.
cc: "lhash.c", line 422: warning 714: Function called with no prototype or definition in scope.
2000-05-08 23:50:37 +00:00
David Lawrence
acbec87f20
Quiet HP/UX warning:
...
cc: "algchoic.h", line 74: warning 617: Redeclaration of tag "B_AlgorithmInfoType" ignored.
cc: "algchoic.h", line 74: warning 617: Redeclaration of tag "B_AlgorithmInfoType" ignored.
by removing:
struct B_AlgorithmInfoType;
because balgmeth.h already defines that struct tag.
(So does balg.h, but that isn't causing warnings.)
2000-05-08 23:41:59 +00:00
James Brister
7730b2c1db
Redefining config file items is now an error.
...
Error messages changed to 'cannot redefine xxx'
2000-05-08 20:31:13 +00:00
David Lawrence
5d49890aca
isc/net.h required for ntohl on some platforms
2000-05-08 20:18:35 +00:00
James Brister
131c2e2e9d
No longer validate category names upon config file parsing.
2000-05-08 19:52:03 +00:00
David Lawrence
7bb0f11636
stdlib.h needed on HP/UX for abs()
2000-05-08 19:30:10 +00:00
David Lawrence
6028d1ce03
Needs string.h for function prototypes. For some reason gcc and other
...
compilers do not warn about the missing str*/mem* prototypes.
2000-05-08 19:23:32 +00:00
David Lawrence
64574939c4
Removed useless third parameter to MPINIT macro which was always true,
...
because it was causing HP/UX to barf up eight lines of:
cc: "adb.c", line 2219: warning 509: Condition always evaluates to true: If clause will always be executed.
2000-05-08 18:47:02 +00:00
James Brister
a466582ff0
Copy functions were not assigning result to output parameter. Now they are.
2000-05-08 18:42:38 +00:00
James Brister
3cb5571edf
Include unistd.h so FreeBSD doesn't complain about getopt() prototype
...
missing.
2000-05-08 18:37:58 +00:00
David Lawrence
8abddcd3f2
rdata.c needs to include string.h before memcpy is used.
...
since rdata.c is including string.h, the individual rdata files do not need to.
2000-05-08 16:12:30 +00:00
David Lawrence
1a69a1a78c
Megacommit of dozens of files.
...
Cleanup of redundant/useless header file inclusion.
ISC style lint, primarily for function declarations and standalone
comments -- ie, those that appear on a line without any code, which
should be written as follows:
/*
* This is a comment.
*/
2000-05-08 14:38:29 +00:00
James Brister
65c9645ca7
Support new 'database' statement in zone.
...
database "quoted-string";
2000-05-06 10:18:48 +00:00
Mark Andrews
5159c42783
153. [func] dns_rdata_tostruct() 'mxtc' is now optional. If 'mctx'
...
is NULL then you need to preserve the 'rdata' until
you have finished using the structure as there may be
references to the associated memory. If 'mctx' is non
NULL it is guarenteed that there are no references to
to memory addsociated with 'rdata'.
dns_rdata_freestruct() must be called if 'mctx' was
non NULL and may safely be called if 'mctx' was NULL.
Finish implementing 153 for IN specific types.
naptr_35.h some of the lengths should be 8 bits.
2000-05-05 23:20:10 +00:00
Andreas Gustafsson
5466ce3f27
fromstruct_* functions needlessly used dns_name_towire() to do
...
a simple name data copy, thereby requiring a non-NULL mctx
2000-05-05 18:15:02 +00:00
Andreas Gustafsson
bffbdf7545
cache all response RRs before validating
2000-05-05 17:26:47 +00:00
Andreas Gustafsson
8d501088b7
tostruct_ns() used the wrong mctx
2000-05-05 17:24:21 +00:00
Mark Andrews
9281e7aa77
Implement / convert to new API for tostuct() and freestruct().
...
Define dns_rdata_loc_t structure.
x25 length is only 8 bits.
2000-05-05 05:50:14 +00:00
Andreas Gustafsson
62fb5eccb5
pass query type to negative response validator
2000-05-05 00:19:00 +00:00
Andreas Gustafsson
59e9979330
REQUIRE(type != 0)
2000-05-05 00:18:36 +00:00
Andreas Gustafsson
a726ac16b3
updated comments
2000-05-05 00:18:16 +00:00
Michael Graff
8e3e48ff56
use isc_uint8_t rather than isc_int8_t for string lengths, and don't call a structure member sa_len
2000-05-04 23:50:56 +00:00
Michael Graff
987effb437
Be far, far noisier about 'generated file; do not edit' to keep the important message from disappearing between copyright notices (say, in rdatastruct.h)
2000-05-04 22:49:47 +00:00
Andreas Gustafsson
35c0626628
Don't ever send GLOBAL16 compression, not even if edns>=1. Since the
...
edns1 I-D has expired, no one knows what edns level 1 will mean, and it may end up not
implying support for GLOBAL16. We are still liberal in what we accept; GLOBAL16
is accepted in packets we receive.
2000-05-04 22:36:24 +00:00
Andreas Gustafsson
94a08e09db
Check for edns1 and strict decompression once and for all in
...
dns_[de]compress_setmethods instead of separately in every caller
2000-05-04 22:19:34 +00:00
Andreas Gustafsson
fd63a046d6
added an INSIST(), making use of the new isc_buffer_availablelength()
...
macro
2000-05-04 22:16:00 +00:00
Andreas Gustafsson
88b0c72919
validator support code checkpoint: cache negative validation results;
...
don't access freed ftcx when validation canceled
2000-05-04 16:38:09 +00:00
Andreas Gustafsson
c37a906752
more logging
2000-05-03 23:58:35 +00:00
Andreas Gustafsson
59a6d9effd
omit DNS_RDATATYPEATTR_SINGLETON from RRTYPE_NXT_ATTRIBUTES
...
so that we can cope with parent/child NXT pairs. DNSSEC sucks.
2000-05-03 23:52:35 +00:00
Michael Graff
c90f5e8d1e
Split dns_log_init() into dns_log_init() which sets up module and category names, and dns_log_setcontext() which sets the logging context. Call isc_log_setcontext(), dns_log_init(), and dns_log_setcontext().
2000-05-03 21:11:40 +00:00
Andreas Gustafsson
deb7afc49f
documented the 'covers' argument of dns_ncache_add()
2000-05-03 21:08:14 +00:00
Andreas Gustafsson
7a9b47e4d0
do not indent comments by one space
2000-05-03 20:24:03 +00:00
James Brister
e2cf9c2db3
support 'disabled' statement in zone config (causes
...
zone to be parsed and then ignored). Currently must
come after the 'type' clause.
support optional ports in masters and also-notify
statements:
masters [ port xxx ] { y.y.y.y [ port zzz ] ; }
removed some unused arguments.
stop issuing some warnings about some features that
were not implemented, but now are.
2000-05-03 19:29:43 +00:00
Andreas Gustafsson
c9373cc535
checkpoint: call validator for negative responses
2000-05-02 18:10:19 +00:00
James Brister
36357e4304
Changed yacc union size to be smaller for yaccs that put yacc-stack
...
on the real stack.
2000-05-02 17:56:39 +00:00
Michael Graff
f6407f9a0b
add print.h and string.h to files that need them
2000-05-02 16:36:22 +00:00
Mark Andrews
2002be4f65
Add name_duporclone() and mem_maybedup().
2000-05-02 05:19:47 +00:00
David Lawrence
09f22ac5b0
Redundant header work, mostly removing <dns/result.h> from installed
...
headers and adding it to source files that need it.
2000-05-02 03:54:17 +00:00
David Lawrence
a1f16c81a1
removed unused stack variable "result" from totext_nxt
2000-05-01 18:27:43 +00:00
David Lawrence
7f1c97f582
include <isc/boolean.h> for ISC_TF()
2000-05-01 18:07:08 +00:00
David Lawrence
b09983678f
145. [cleanup] Added <isc/lang.h> and ISC_LANG_BEGINDECLS/
...
ISC_LANG_ENDDECLS to header files that had function
prototypes, and removed it from those that did not.
2000-05-01 17:59:10 +00:00
Michael Graff
d086365f39
undo the dnssec renaming.
2000-04-29 18:57:17 +00:00
David Lawrence
4be63b1fd8
144. [cleanup] libdns header files too numerous to name were made
...
to conform to the same style for multiple inclusion
protection.
2000-04-29 02:02:38 +00:00
Andreas Gustafsson
5436ac5553
cope with dns_rdatatype_totext() succeeding for
...
unknown RR types
2000-04-29 01:51:39 +00:00
Andreas Gustafsson
014892d86d
added dns_rdatatype_isknown()
2000-04-29 01:49:37 +00:00
Michael Graff
20c266cbc9
add dispatcher logging functions
2000-04-29 00:45:26 +00:00
Andreas Gustafsson
97f75286ad
corrupted requests with multiple questions could
...
cause assertion failure (fix from Bob)
2000-04-28 23:48:49 +00:00
David Lawrence
b77f76be2d
Where the methods field of an rdataset was compared to NULL, now use
...
dns_rdataset_isassociated() instead.
2000-04-28 23:46:43 +00:00
Mark Andrews
efd55ce62e
Add mctx comment for tostruct.
2000-04-28 23:18:01 +00:00
Andreas Gustafsson
4331ce6a17
warn about ignored out-of-zone data
2000-04-28 23:15:24 +00:00