Andreas Gustafsson
76c8294c81
format string bugs and improved format string checking [RT #1578 ]
2001-08-08 22:54:55 +00:00
Brian Wellington
cabaeca9ae
missing assertion checks
2001-07-16 09:48:05 +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
Andreas Gustafsson
ad493ef9dd
spacing
2001-07-06 20:15:08 +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
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
Brian Wellington
499b34cea0
copyright update
2001-01-09 22:01:04 +00:00
Mark Andrews
228c679d7a
662. [bug] dns_rdata_fromtext() failed to log certain errors.
2001-01-08 06:54:35 +00:00
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