Mark Andrews
8dd5237a27
655. [bug] Improve error reporting on unexpected eof when loading
...
zones. [RT #611 ]
2001-01-04 23:43:53 +00:00
Andreas Gustafsson
ca2912424b
DEL (ASCII 127) is not a printable character and should be
...
backslash-decimal quoted when printing TXT record
2001-01-02 04:24:52 +00:00
Mark Andrews
5f7a9845e9
make ISC_LIST_CHECKINIT work
2000-12-19 04:46:36 +00:00
Andreas Gustafsson
6c29053a20
614. [bug] Checks for uninitialized link fields were prone
...
to false positives, causing assertion failures.
The checks are now disabled by default and may
be re-enabled by defining ISC_LIST_CHECKINIT.
2000-12-15 00:20:55 +00:00
Mark Andrews
5d2026ea7b
relax initalied checks
2000-12-14 22:09:51 +00:00
Brian Wellington
78838d3e0c
8 space -> tab conversion
2000-12-11 19:24:30 +00:00
David Lawrence
e086935752
isc_hex_tobuffer() third argument is unsigned int, not unsigned long
2000-12-06 22:33:39 +00:00
Andreas Gustafsson
7e4cda9965
renamed rdata_valid() to rdata_validate() and commented it
2000-11-20 21:58:01 +00:00
Brian Wellington
f164957327
Allocate a buffer large enough to hold the unknown rr data, not a buffer
...
with the same amount of free space as the target buffer.
2000-11-20 21:41:53 +00:00
Brian Wellington
93ed317bb4
unknown rr type parsing code deuglification.
2000-11-20 21:29:41 +00:00
Mark Andrews
25a66b4e41
#include <isc/print.h>
2000-11-20 13:02:18 +00:00
Mark Andrews
7d8cdd869e
pointer arithmetic on (void*) is a no-no.
...
use extened buffer api to calculate lengths.
2000-11-20 06:54:40 +00:00
Brian Wellington
2ea44ff332
Unknown rrs would not be parsed correctly when in an rdataset with known rrs.
2000-11-19 23:19:23 +00:00
Brian Wellington
1275a72e8d
Don't allow metatypes to be loaded using the \# format.
2000-11-19 22:12:42 +00:00
Andreas Gustafsson
8c962eba3d
I really shouldn't commit stuff until it at least compiles
2000-11-15 19:11:36 +00:00
Andreas Gustafsson
d3a86da2e8
563. [func] New public functions dns_rdatatype_format() and
...
dns_rdataclass_format(), for convenient formatting
of rdata type/class mnemonics in log messages.
2000-11-15 19:05:32 +00:00
Brian Wellington
942d1a339b
Decompression contexts now take a type instead of the "strict" boolean
...
value - the type can be "any", "strict", or "none". This fixes potential
problems with compression in unknown rr types.
2000-11-14 23:29:55 +00:00
Brian Wellington
ac5921d110
validating that rdata of a known type expressed using the unknown type
...
syntax is correct didn't work.
2000-11-10 01:37:40 +00:00
Brian Wellington
3a16668468
fix a few minor problems in the unknown rrtype support.
2000-11-10 00:25:46 +00:00
Brian Wellington
ebfcb6cf66
550. [func] Support unknown rdata types and classes.
2000-11-09 23:55:05 +00:00
Brian Wellington
a90dcd1f19
the wrong result code was being printed
2000-11-09 00:20:47 +00:00
Brian Wellington
add4043305
The identical gettoken() routines in rdata.c, hex.c, and base64.c have
...
been replaced with isc_lex_getmastertoken().
2000-11-08 01:56:15 +00:00
Brian Wellington
5cca7753fd
RRTYPE -> TYPE for unknown types
2000-11-07 23:44:33 +00:00
Mark Andrews
368b37b616
dns_rdata_invalidate -> dns_rdata_reset
2000-10-31 03:22:05 +00:00
Brian Wellington
f1cae4bcb7
DNS_RDATA_INITIALIZED was spelled wrong (missing an 'i'), and also not
...
spelled the same way as other uses of the word "initialize" (it had an 's',
not a 'z').
2000-10-27 21:29:23 +00:00
Mark Andrews
b589e90689
Remove the rdata->length == 0 checks, UPDATE pseudo rdata are now tagged.
...
Add sanity checks to rdata types where the length cannot legally be zero.
2000-10-25 05:44:10 +00:00
Mark Andrews
c03bb27f06
532. [func] Implement DNS UPDATE pseudo records using
...
DNS_RDATA_UPDATE flag.
531. [func] Rdata really should be initalized before being
assigned to (dns_rdata_fromwire(), dns_rdata_fromtext(),
dns_rdata_clone(), dns_rdata_fromregion()),
check that it is.
2000-10-25 04:26:57 +00:00
Mark Andrews
389c749a5e
530. [func] New function dns_rdata_invalidate().
2000-10-24 02:03:33 +00:00
Mark Andrews
29c818c7d4
527. [func] New function dns_rdata_clone().
2000-10-20 13:22:36 +00:00
Mark Andrews
e6bd97dded
Add 'flag' to rdata
2000-10-19 05:50:54 +00:00
Andreas Gustafsson
693ddf84da
491. [bug] nsupdate would segfault when sending certain
...
prerequisites with empty RDATA. [RT #357 ]
2000-09-26 19:37:06 +00:00
Andreas Gustafsson
6b0ce7d29f
474. [bug] The mnemonic of the CHAOS class is CH according to
...
RFC1035, but it was printed and read only as CHAOS.
We now accept both forms as input, and print it
as CH.
2000-09-19 01:27:22 +00:00
Mark Andrews
9916239908
Initial opaque rdata support.
2000-09-06 03:25:23 +00:00
Andreas Gustafsson
87ecd67dae
419. [bug] The certificate type PKIX was misspelled as SKIX.
2000-09-05 17:09:30 +00:00
David Lawrence
40f53fa8d9
Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
...
own CVS tree will help minimize CVS conflicts. Maybe not.
Blame Graff for getting me to trim all trailing whitespace.
2000-08-01 01:33:37 +00:00
David Lawrence
15a4474541
word wrap copyright notice at column 70
2000-07-27 09:55:03 +00:00
Andreas Gustafsson
28059de4ef
when a master file ends in a place where a newline is expected,
...
make the warning message say 'file does not end with newline' instead of
'unexpected end of file' to lead the user on the right tracks to fixing
the most likely cause. Also, don't include the function name in the message.
2000-07-10 19:07:19 +00:00
Mark Andrews
fd4810861c
Warn on unexpected <eof> if input source is a file, treat as <eol><eof>
...
regardless of input source.
2000-07-10 05:15:04 +00:00
David Lawrence
28d9fd5381
update_copyrights
2000-06-21 22:45:24 +00:00
Andreas Gustafsson
ad7209ea70
style, no functional change
2000-06-06 17:43:21 +00:00
David Lawrence
0b056755b2
225. [cleanup] The enumerated dns_rdatatype_* identifiers are now
...
cast to dns_rdatatype_t via macros of their same name
so that they are of the proper integral type wherever
a dns_rdatatype_t is needed.
(And a few prototypes that I recently bogusly changed to take "int" parameters
in place of "dns_rdatatype_t" to accomodate the type of an enum identifier
have been reverted to again properly take a dns_rdatatype_t.)
2000-06-01 21:42:42 +00:00
David Lawrence
6d12fdf966
Megacommit of many files.
...
Mostly, several functions that take pointers as arguments, almost
always char * pointers, had those pointers qualified with "const".
Those that returned pointers to previously const-qualified arguments
had their return values qualified as const. Some structure members
were qualified as const to retain that attribute from the variables
from which they were assigned.
The macro DE_CONST is used to deal with a handful of very special
places where something is qualified as const but really needs to have
its const qualifier removed.
rdata.c now defines macros for the prototypes of the basic rdata functions,
and all of the lib/dns/rdata/**/*.c files now use them.
Some minor integer-compatibility issues. (IE, ~0x03 is a signed int,
so assigning it to an unsigned int should use a cast. The type of an
enum member is int, so there are some conversion issues there, too.)
A pointers-to-function should not be cast to a pointer-to-object.
Variables should not be named for C reserved identifiers.
One or two set-but-not-used variables removed.
Minor other ISC style cleanups.
2000-06-01 18:26:56 +00:00
Brian Wellington
5d83b561ad
Added dns_tsigrcode_totext/fromtext
2000-05-25 00:46:32 +00:00
David Lawrence
20b20b2394
202. [func] isc_lex_getsourceline() changed from returning int
...
to returning unsigned long, the type of its underlying
counter.
2000-05-24 15:07:59 +00:00
David Lawrence
ed019cabc1
fixed lines > 79 columns wide
2000-05-24 05:10:00 +00:00
David Lawrence
16996a0488
quiet the irix compiler about uses of the COMPARE()
...
macro in dns_rdataclass_fromtext by using an intermediate variable
to hold the constant 2nd argument in each use.
added the RESERVED attribute to the reserved0 class in the same function.
2000-05-24 02:45:08 +00:00
Michael Graff
1a3563145b
remove unreachable code
2000-05-20 01:05:50 +00:00
Mark Andrews
de153390f5
Add #include <ctype.h> here and not depend on it being included w/ x25
...
support.
2000-05-19 02:00:40 +00:00
David Lawrence
600cfa2ba4
184. [cleanup] Variables/functions which began with two leading
...
underscores were made to conform to the ANSI/ISO
standard, which says that such names are reserved.
2000-05-16 05:19:47 +00:00
David Lawrence
34b394b43e
DNS_R_RANGE -> ISC_R_RANGE
2000-05-15 21:14:38 +00:00