David Lawrence
fc024be774
argument to tolower() cast to unsigned char
2000-05-09 12:07:32 +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
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
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
Andreas Gustafsson
014892d86d
added dns_rdatatype_isknown()
2000-04-29 01:49:37 +00:00
David Lawrence
6e49e91bd0
103. [func] libisc buffer API changes for <isc/buffer.h>:
...
Added:
isc_buffer_base(b) (pointer)
isc_buffer_current(b) (pointer)
isc_buffer_active(b) (pointer)
isc_buffer_used(b) (pointer)
isc_buffer_length(b) (int)
isc_buffer_usedlength(b) (int)
isc_buffer_consumedlength(b) (int)
isc_buffer_remaininglength(b) (int)
isc_buffer_activelength(b) (int)
isc_buffer_availablelength(b) (int)
Removed:
ISC_BUFFER_USEDCOUNT(b)
ISC_BUFFER_AVAILABLECOUNT(b)
isc_buffer_type(b)
Changed names:
isc_buffer_used(b, r) ->
isc_buffer_usedregion(b, r)
isc_buffer_available(b, r) ->
isc_buffer_available_region(b, r)
isc_buffer_consumed(b, r) ->
isc_buffer_consumedregion(b, r)
isc_buffer_active(b, r) ->
isc_buffer_activeregion(b, r)
isc_buffer_remaining(b, r) ->
isc_buffer_remainingregion(b, r)
Buffer types were removed, so the ISC_BUFFERTYPE_*
macros are no more, and the type argument to
isc_buffer_init and isc_buffer_allocate were removed.
isc_buffer_putstr is now void (instead of isc_result_t)
and requires that the caller ensure that there
is enough available buffer space for the string.
2000-04-27 00:03:12 +00:00
Michael Graff
fa460c223a
hard code some class bits -- they were more or less hard coded before anyway, and this method makes them clearer and faster (dns_rdataclass_{to,from}text())
2000-04-25 21:11:50 +00:00
Michael Graff
94a537e6ab
optimize dns_rdatatype_fromtext()
2000-04-25 19:09:07 +00:00
Michael Graff
7ec579cd5d
Add functions to check that a type is only or is not allowed in a question section
2000-04-14 20:13:49 +00:00
Michael Graff
3bb3b7ac46
implement singleton type checking
2000-04-14 18:36:45 +00:00
Brian Wellington
69feefe246
META type hack no longer needed
2000-04-14 17:28:21 +00:00
Michael Graff
6324997211
add attributes (line singleton, exlcusive, meta, etc) to rdata C files, and
...
build a table of them using gen.c. This means the names are stored twice,
but that will change in the near future. This will speed up number to text
conversions for rdatatypes, and I plan on speeding up text->number as
well, soon.
2000-04-07 03:54:52 +00:00
Michael Graff
4195904998
s/DNS_R_/ISC_R_/ change for some codes.
2000-04-06 22:03:35 +00:00
Andreas Gustafsson
636a89a303
removed extraneous newlines from error messages;
...
replaced double quotes with single quotes for consistency
2000-03-22 17:28:57 +00:00
Andreas Gustafsson
2539896175
do not indent CVS ID comment
2000-03-17 17:49:37 +00:00
Andreas Gustafsson
c0d0a59d1b
removed newlines from UNEXPECTED_ERROR() messages
2000-02-17 19:58:59 +00:00
Bob Halley
7d32c065c7
update copyright
2000-02-03 23:50:32 +00:00
Andreas Gustafsson
7b24a94d11
typo in comment
2000-02-02 00:41:26 +00:00
Mark Andrews
973a193425
Add include isc/util.h.
2000-01-17 03:19:40 +00:00
Michael Graff
3ddd814a97
dns_result_t is no more. s/dns_result_t/isc_result_t/ -- more later, when I need a break.
1999-12-23 00:09:04 +00:00
Brian Wellington
d87cdc4d96
added unpleasant ismeta() hack for TKEY
1999-10-25 21:41:49 +00:00
Mark Andrews
88ba491496
char is signed on some platforms. ensure that isupper() & isdigit() are
...
called with positive ints.
1999-10-25 16:58:21 +00:00
David Lawrence
7c03787452
INSIST uint16 range for a call to dns_compress_rollback with int argument.
...
Cast int c to char c; it was already range limited.
Cast isc_buffer_uint16 int argument to uint16; it was already range checked.
Cast isc_buffer_uint8 int argument to uint8; it was already range checked.
1999-10-17 22:34:16 +00:00
Andreas Gustafsson
3ddd92da66
improved support for mnemonics in DNSSEC RR types
1999-09-17 09:25:21 +00:00
Michael Graff
2f072c2982
Update copyrights
1999-09-15 23:03:43 +00:00
Andreas Gustafsson
b469f0321d
added dns_rdatatype_isdnssec() and dns_rdatatype_iszonecutauth()
1999-09-08 07:35:27 +00:00
Bob Halley
0513f89e68
add dns_rdata_digest() and dns_rdata_covers()
1999-08-31 22:08:08 +00:00
Andreas Gustafsson
ebd68da027
new function dns_rdataclass_ismeta; consistent treatment of class/type NONE
1999-08-16 06:45:13 +00:00
Bob Halley
79eec69349
define CHAOS class; put METACLASSES first so META bit is set for ANY
1999-08-05 22:11:52 +00:00
Bob Halley
d981ca6455
class to rdclass; additional data support
1999-08-02 22:18:31 +00:00
Bob Halley
613991eef6
TSIG errors are not rcodes; add BADVERS rcode
1999-07-24 01:01:08 +00:00
Andreas Gustafsson
f8aae50268
added dns_rdatatype_ismeta(); support zero-length rdata in dns_rdata_totext()
1999-07-09 12:48:51 +00:00
Bob Halley
1e00606f58
declare uint8_ routines
1999-07-06 19:05:24 +00:00
Andreas Gustafsson
5a219d878f
added uint8_tobuffer and uint8_toregion (for WKS bug fix)
1999-07-05 05:50:15 +00:00
Bob Halley
ae70d32b67
fix some static declarations
1999-07-03 20:57:45 +00:00
Andreas Gustafsson
0c8649cea9
further hiding of dns_rdata_textctx_t
1999-06-09 07:13:33 +00:00
Andreas Gustafsson
7ab0e69f61
dns_rdata_textctx_t is internal and should not appear in dns_rdata_totext() argument list
1999-06-08 20:47:31 +00:00
Andreas Gustafsson
5fc7ba3e1a
added dns_db_dump(), $DATE, and supporting changes
1999-06-08 10:35:23 +00:00
Andreas Gustafsson
d0bfc8cafe
leap years were off by one
1999-05-27 18:03:40 +00:00
Brian Wellington
822f6cdabb
Created isc_base64_to{text,buffer} and removed the static versions
...
from lib/dns/rdata.c.
1999-05-18 17:46:59 +00:00
Mark Andrews
f0ff273b53
base and length should have been taken from tregion not target.
1999-05-17 15:40:39 +00:00
Mark Andrews
7d62ddffbb
Add escape processing to txt_fromtext
1999-05-17 15:30:03 +00:00
Andreas Gustafsson
1d978b3ba2
base64_totext() encoded 16-bit final quantum incorrectly
1999-05-17 04:49:38 +00:00
Mark Andrews
94a3bcd132
dns_rdata_tostruct() may require memory to be allocted and hence
...
it will need to be freed, dns_rdata_freestruct().
Changes to implement this.
Added C++ support to rdatastruct.h
1999-05-07 03:24:15 +00:00
Mark Andrews
4fd3e3482c
dns_rdata_tostruct() conversion
1999-05-05 01:55:13 +00:00
Bob Halley
e1739e9938
do not include dns/rdatastruct.h (yet)
1999-05-03 19:56:53 +00:00
Mark Andrews
c1e7aff941
Implement compression pointer rollback.
...
dns_compress_backout() -> dns_compress_rollback()
1999-05-03 03:07:16 +00:00
Mark Andrews
285b63e90f
Added {} to prevent 'ambigious else' warnings.
1999-03-11 00:29:10 +00:00