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

158 Commits

Author SHA1 Message Date
Bob Halley
fff9a37a03 Cloning a name shouldn't copy the dynamic or
readonly attributes.
1999-10-12 20:38:30 +00:00
David Lawrence
571469b0a5 Make 'offset' in dns_name_towire() be isc_uint16_t instead of unsigned int,
since that is what expected by dns_compress_add() called within.  There
is a latent issue with offset being assigned from target->used without range
checking, but since this is already marked by /*XXX*/ I assume that this was
a known problem already.
1999-10-08 23:36:11 +00:00
Bob Halley
8326257468 add dns_name_digest() 1999-08-31 22:09:52 +00:00
Bob Halley
6e952e42e5 allow name downcasing inplace or to another name 1999-08-26 21:07:38 +00:00
Brian Wellington
e22d03eb45 Added dns_name_downcase 1999-08-20 17:01:06 +00:00
Bob Halley
08c8a934ce A name is "bindable" if it can be set to point to a new value, i.e.
name->ndata and name->length may be changed.
1999-08-19 23:26:16 +00:00
Bob Halley
c3e95f11e0 The bits in the last byte of a bitstring being constructed in _fromtext()
were not always shifted into the correct positions.  This would cause
an error when certain valid bitstrings, e.g. "\[xA/4].", were parsed.
1999-08-19 17:56:35 +00:00
Bob Halley
70fdfcd1fa make names empty when construction fails instead of invalidating them 1999-08-12 20:26:45 +00:00
Bob Halley
5f120ce962 add dns_wildcardname constant 1999-08-12 07:48:16 +00:00
Bob Halley
00d8179488 add dns_name_iswildcard() 1999-08-12 01:29:03 +00:00
Bob Halley
5fc1b54cc6 allow undedication of the dedicated buffer 1999-07-28 02:20:22 +00:00
Bob Halley
402b05ddea require an initialized name for dns_name_dup(); lint 1999-07-03 20:51:31 +00:00
Bob Halley
6f5c11ea91 add dns_name_dup() and dns_name_free() 1999-06-12 01:08:16 +00:00
David Lawrence
213a9ec2ad Handle octal bitstrings, fixing the bug where a bitlength that encompassed
fewer bytes than the number of octal digits implied caused invalid names
to be generated.
1999-06-04 00:18:34 +00:00
Bob Halley
6957b87f93 add dns_name_equal() 1999-05-18 22:05:40 +00:00
David Lawrence
d92d2f722a Shifting bitstring bytes for the prefix of dns_name_split didn't work
properly because the destination was being ANDed with the bits coming
from the next byte, rather than ORed.
1999-05-07 17:13:06 +00:00
Bob Halley
b9a2c5ddf9 add CONVERTFROMASCII 1999-05-05 16:51:05 +00:00
Bob Halley
754ae02cc7 disable octal bitstrings since they are broken 1999-05-01 00:48:54 +00:00
Mark Andrews
a41d348e14 Local compression fixes to use rbt bitstrings. 1999-04-28 03:03:56 +00:00
Bob Halley
bd53af8229 add dns_name_clone() 1999-04-24 02:03:07 +00:00
David Lawrence
605ae28c5a dns_name_split() 1999-04-23 04:58:43 +00:00
Mark Andrews
95f78a208a Bring local compression into line with draft 04.
'dns_rootname' should be marked read_only.
	Supply 'dns_rootname' with offsets.
1999-04-13 05:50:12 +00:00
Bob Halley
0370190a68 REQUIRE that target is a valid name in dns_name_getlabelsequence() 1999-04-09 01:27:54 +00:00
Bob Halley
84c3294183 improved concatenation 1999-03-11 00:44:17 +00:00
Mark Andrews
de10b83a23 * local label offset 255 is reserved.
* don't add domainnames with local compression pointers as
	  valid global compression targets unless edns is high enough.
1999-03-11 00:26:21 +00:00
Bob Halley
ce3761f64d add dedicated buffer support; cleanups to dns_name_concatenate() 1999-03-08 18:55:28 +00:00
Bob Halley
86921103ec lint 1999-03-04 02:44:30 +00:00
Bob Halley
ed7f35a9f7 compact() didn't recompute the offsets table even though offsets might have
changed.
As soon as a bitstring that didn't need compaction was encountered, compact()
would stop instead of processing the entire string.
1999-03-02 19:55:17 +00:00
Mark Andrews
518be7faab dns_name_cat() -> dns_name_concatenate()
Changed behaviour so that it is intuitive w.r.t. absolute names.
	If 'prefix' is absolute then 'suffix' must be NULL.
	If 'prefix' or 'suffix' is absolute then the result is absolute.
1999-02-26 00:25:12 +00:00
Mark Andrews
1ef8965366 Add decompression. 1999-02-24 06:31:35 +00:00
Mark Andrews
f257e9369c dns_name_cat only returns a absolute name if one of it's inputs
is absolute
1999-02-23 02:25:41 +00:00
Mark Andrews
52637f592f Add wire compression. 1999-02-22 07:24:05 +00:00
Bob Halley
5c821b7bda fix cut and paste error 1999-02-18 01:24:59 +00:00
Bob Halley
29b487b0a4 add dns_name_fullcompare(); fix issubdomain and compare bugs 1999-02-16 08:18:44 +00:00
Mark Andrews
b5819ca3eb dns_name_fromwire() should have been using up to the end of the
active region, not the end of the remaining region.

	bin/named/wire_debug.c bin/tests/wire_test.c adjusted for above
	change.

	dns_name_fromwire() was not computing nrem and nused correctly
	for bitstream labels.
1999-02-15 23:59:36 +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
David Lawrence
c1bb41fa73 the root name is an absolute name 1999-02-10 19:32:48 +00:00
Bob Halley
c5839c39bd add attributes; fix origin copy problem and build offset table in _fromtext() 1999-02-06 01:26:00 +00:00
Bob Halley
1366b7833c allow case insensitive hashing 1999-02-06 00:03:19 +00:00
Bob Halley
f0bbac2c0f signed vs. unsigned fix 1999-02-02 01:28:48 +00:00
Bob Halley
bcfcece57e add dns_name_hash 1999-01-28 23:52:00 +00:00
Mark Andrews
cee7525336 Add support for '@' => origin. 1999-01-27 23:39:40 +00:00
Bob Halley
8db3b065b4 Add 'list' field.
Fixed name length bug in _fromtext(), _fromwire().  The previous way of
computing the length failed if the length of the target buffer was > 255.
1999-01-13 19:17:22 +00:00
Bob Halley
08dbab20ef lint 1999-01-09 02:39:39 +00:00
Bob Halley
b5b97de45a cleanup set_offsets; make dns_name_issubdomain more efficient 1999-01-09 01:17:09 +00:00
Bob Halley
86131d8d7a names are now linkable; offsets is optional 1999-01-09 00:33:15 +00:00
Bob Halley
9192e92f7d check if compression type is allowed 1999-01-06 20:04:41 +00:00
Bob Halley
95c86af1e9 API changes (buffers); basic wire support 1999-01-06 05:41:20 +00:00
Bob Halley
94d102893a update copyrights 1999-01-04 19:47:40 +00:00
Bob Halley
38d2d0e932 eliminate dns_ types that duplicate isc_ types 1999-01-04 19:14:00 +00:00