2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 13:08:06 +00:00

98 Commits

Author SHA1 Message Date
Andreas Gustafsson
63cef8bde8 added UNUSED() macros for arguments that end up unused when assertion checking
is turned off
2000-12-01 01:40:59 +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
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
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
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
Andreas Gustafsson
1ac4b2a1da when printing a SIG record with covers==0, print it as 0,
not RESERVED0
2000-05-22 21:42:47 +00:00
Mark Andrews
373ce67419 Implement dns_rdata_fromstruct() where not already done.
Add missing REQUIRE tests to existing implementations.
2000-05-22 12:38:12 +00:00
Mark Andrews
1bb227b988 dns_name_dup() -> name_duporclone() in tostruct(). 2000-05-19 02:03:56 +00:00
David Lawrence
34b394b43e DNS_R_RANGE -> ISC_R_RANGE 2000-05-15 21:14:38 +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
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
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
Mark Andrews
b8dd48ecf8 119. [cleanup] structure definitions for generic rdata stuctures do
not have _generic_ in their names.
2000-04-28 02:08:37 +00:00
Andreas Gustafsson
82ca33427b declare arguments as UNUSED() when used in assertions only 2000-04-28 01:24:18 +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
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
e6c22f37d8 backed out inappropriate use of RETERR() in
*_compare(); renamed 'result' to 'order' to avoid future confusion
2000-03-17 21:43:46 +00:00
Andreas Gustafsson
66e45550c6 unused variable 2000-03-17 19:20:25 +00:00
Andreas Gustafsson
542deb20c4 in tostruct_sig(), store zero-length signatures as
zero-length isc_mem_get() block, not NULL pointer;
misc. stylistic changes from code review
2000-03-17 17:08:36 +00:00
Bob Halley
7d32c065c7 update copyright 2000-02-03 23:50:32 +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
David Lawrence
ea86510592 cast token as_ulong to unsigned char rather than use token as_char
because the latter will give the wrong value on big-endian systems.
1999-10-08 23:54:40 +00:00
David Lawrence
0bd044c2af Check the rdata type for range before uint16_tobuffer, because by the time
uint16_tobuffer is called the loss of data from strtol() already occurred
and uint16_tobuffer would not be able to detect a range error.

also, use token.value.as_char when assigning to char c, which is already
checked to be < 256.
1999-10-08 21:42:23 +00:00
Brian Wellington
cf3f14106d Changed 'dns_name_t *' in structs to 'dns_name_t' 1999-10-07 21:49:39 +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
Brian Wellington
32b57aa1b9 missing isc_mem_put 1999-08-31 22:09:24 +00:00
Bob Halley
e27a69f8bd add digest support 1999-08-31 22:05:55 +00:00
Brian Wellington
b5da378f29 fixes to totext and tostruct 1999-08-31 14:55:47 +00:00
Brian Wellington
d8813e2cee implemented to/from/free_struct 1999-08-25 14:18:35 +00:00
Bob Halley
4529cdaeda make rdata functions static inline 1999-08-12 01:32:42 +00:00
Bob Halley
d981ca6455 class to rdclass; additional data support 1999-08-02 22:18:31 +00:00
Andreas Gustafsson
fad44a20ee omit parenthesis when DNS_STYLEFLAG_MULTILINE is not set 1999-06-08 20:41:31 +00:00
Andreas Gustafsson
5fc7ba3e1a added dns_db_dump(), $DATE, and supporting changes 1999-06-08 10:35:23 +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
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
854d0238db Adjust #ifdef *_H -> #ifdef *_C to reflect new file names. 1999-05-05 00:19:04 +00:00
Mark Andrews
1ef8965366 Add decompression. 1999-02-24 06:31:35 +00:00
Mark Andrews
52637f592f Add wire compression. 1999-02-22 07:24:05 +00:00
Mark Andrews
0e8cf9a887 Style updates.
cvs: ----------------------------------------------------------------------
1999-02-16 22:42:33 +00:00
Mark Andrews
7c0539bea5 Created dns_name_rdatacompare() to do DNSSEC rdata comparisions
as opposed to DNSSEC owner name comparisions of names.  Changed
	all rdata types that were using dns_name_compare() to use
	dns_name_rdatacompare().
1999-02-15 05:44:22 +00:00
Mark Andrews
904294c0c9 region_compare() return wrong result when regions were the same.
base64_tobuffer() need a way to read a specific length of base64
	data, not just read to eol.
1999-02-04 00:03:29 +00:00
Mark Andrews
5d15501996 Fix incorrect fix for valid strtol conversion sig_24.h
Make tests for full string consumption by strtol consistant
	(*e == 0) || (*e != 0)
1999-02-02 13:31:46 +00:00
Bob Halley
8272eed68f fix typo 1999-02-02 01:43:47 +00:00
Mark Andrews
2bc0da0cd8 Added NXT
Debugged SIG
1999-01-29 08:04:13 +00:00
Mark Andrews
ffe74cc719 Add KEY, SIG and NSAP rdata type. SIG is not complete.
Add master file reader, master.c master.h, incomplete.

	gen.c was not generate correct include file, SWITCHXXX macros were
	being terminated early if last RR type was class specific.

	Added base64 support to rdata.c.
1999-01-27 13:38:21 +00:00