2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

242 Commits

Author SHA1 Message Date
Tatuya JINMEI 神明達哉
e407562a75 1528. [cleanup] Simplify some dns_name_ functions based on the
deprecation of bitstring labels.
2003-10-25 00:31:12 +00:00
Mark Andrews
fcb54ce0a4 whitespace / layout 2003-10-17 03:46:46 +00:00
Mark Andrews
1e107b3d7b 1495. [cleanup] Replace hash functions with universal hash. 2003-07-25 02:22:26 +00:00
Mark Andrews
806c235ecf 1458. [cleanup] sprintf() -> snprintf(). 2003-04-11 07:25:31 +00:00
Mark Andrews
3369e61105 remove unused code 2003-01-08 04:42:22 +00:00
Mark Andrews
b6309ed962 developer: jinmei
reviewer: marka
1368.   [func]          remove support for bitstring labels.
2002-08-27 04:53:43 +00:00
Mark Andrews
0ad5cb4782 1350. [bug] dns_name_fromtext() failed to handle too many labels
gracefully.
2002-08-02 00:25:15 +00:00
Mark Andrews
8f96645217 1208. [bug] Adjusted REQUIRE's in lib/dns/name.c to better
reflect written requirements.
2002-05-29 00:27:53 +00:00
Mark Andrews
d8d489cd8e 1206. [bug] dns_name_downcase() enforce requirement that
target != NULL or name->buffer != NULL.
2002-05-28 03:39:46 +00:00
Brian Wellington
6585d8782b the region passed to dns_name_fromregion() can be const. 2002-03-14 00:36:07 +00:00
Mark Andrews
f38c274c21 1211. [bug] dns_name_fromtext() incorrectly handled certian
valid octal bitlabels. [RT #2483]
2002-02-26 12:43:38 +00:00
Brian Wellington
b7dca533e0 avoid calling set_offsets() in dns_name_copy() if possible. 2001-12-28 20:59:27 +00:00
Brian Wellington
41e50ece38 add dns_name_hashbylabel() and make the rbt use it. 2001-12-04 01:32:44 +00:00
Danny Mayer
e61793f086 Added LIB*_EXTERNAL_DATA Macros necessary to make lib extern variables globally visible in Win32 2001-11-19 03:08:44 +00:00
Andreas Gustafsson
f3ca27e9fe sizeof style 2001-11-12 19:05:39 +00:00
Andreas Gustafsson
60dcbecf04 Instead of choosing between memcpy and memmove at run time, call
memmove unconditionally since any reasonable implementation of
memmove will perform such a choice internally, and also doing it
in the caller duplicates the effort.
2001-06-28 21:34:11 +00:00
Andreas Gustafsson
77efdc854b spacing; typo 2001-06-21 01:30:22 +00:00
Andreas Gustafsson
6f118c4893 removed redundant 'i++;' 2001-04-24 00:56:17 +00:00
Andreas Gustafsson
cedd0ab1e8 811. [bug] Parantheses were not quoted in zone dumps. [RT #1194] 2001-04-19 18:39:42 +00:00
Brian Wellington
45e22378fc dns_name_tofilenametext() now downcases the name, which means the callers
don't need to.
2001-03-27 23:43:15 +00:00
Brian Wellington
7d7215baf8 Add dns_name_tofilenametext(), and use it in the dnssec tools. 2001-03-27 22:57:48 +00:00
Brian Wellington
31efcf6478 Build the offsets table in dns_name_fromwire() while parsing the name, not
by calling set_offsets.
2001-02-13 00:07:25 +00:00
Brian Wellington
29daf5bc77 The suffix returned by dns_compress_findglobal() is never used, so remove it. 2001-02-12 18:07:52 +00:00
Brian Wellington
0c264c9094 The prefix and suffix names used in name compression don't need offset tables,
since they're never used.  Not having offset tables makes filling in their
contents more efficient.
2001-02-12 05:22:34 +00:00
Brian Wellington
9427d22299 make dns_name_fromtext fail when passed an empty string, not assert. 2001-01-22 03:30:27 +00:00
Andreas Gustafsson
4755b174df simplified constant names, eliminating the dns_constname structs 2001-01-11 21:07:21 +00:00
Brian Wellington
499b34cea0 copyright update 2001-01-09 22:01:04 +00:00
Andreas Gustafsson
ec0613a097 commented 2001-01-07 22:01:59 +00:00
Brian Wellington
3e6753a753 Make a macro version of dns_name_toregion. 2001-01-04 20:00:57 +00:00
Brian Wellington
1c33761bcf Minor optimization - use the number of labels in the prefix as the loop
counter, not the number of labels in the name.
2001-01-04 19:25:59 +00:00
Brian Wellington
6d5032f9a2 Micro-optimizations:
- use the DNS_NAME_INIT macro in name.c
	- create dns_name_copy() and use it instead of dns_name_concatenate()
	  when doing a copy.
2001-01-03 00:05:15 +00:00
Brian Wellington
575737b964 Rewrite the name compression code to use a hashtable instead of an RBT and
avoid allocating memory in most cases.  This increases performance by
about 225% on the rc query test (~305 q/s to 990 q/s).
2000-12-29 00:59:41 +00:00
Brian Wellington
d780c35e54 remove all vestiges of 16 bit global compression 2000-12-28 00:43:12 +00:00
Brian Wellington
78838d3e0c 8 space -> tab conversion 2000-12-11 19:24:30 +00:00
Andreas Gustafsson
41c53e1d11 added comment 2000-11-27 19:45:45 +00:00
David Lawrence
e28b5084ec Bitstring labels *still* suck. They didn't somehow magically get less
sucky in the past couple of months.  The nerve.

Anyway, dns_name_split now correctly compacts the preceding bitstring label
(if any) when a maximal bitstring is split.

It also correctly creates the suffix when a maximal bitstring is split.
It was doing this incorrectly before, independent of the compaction issue.
2000-11-14 23:48:02 +00:00
David Lawrence
72ce8db918 sigh. the last checkin only included RT #369 fix, not the other things I meant
to include.
2000-10-14 04:38:22 +00:00
David Lawrence
190fbe9738 519. [bug] dns_name_split() would improperly split some bitstring
labels, zeroing a few of the least signficant bits in
			the prefix part.  When such an improperly created
			prefix was returned to the RBT database, the bogus
			label was dutifully stored, corrupting the tree.
			[RT #369]

Also made dns_name_split() REQUIRE that suffixlabels always be greater than 0,
even when splitting a bitstring label (it already required this when not
splitting a bitstring label).  This is consistent with the way dns_name_split()
was called to split a name that consisted of a single label, a bitstring;
the appropriate suffixlabels value is 1 in such cases.

Also a fixed minor style error, and a confusing comment.
2000-10-14 04:31:31 +00:00
Michael Sawyer
dc570b92f6 Add support for proposed ZONE and VIEW opt attributes. These are currently
hidden behind #ifdef's, since no OPT code number has yet to be assigned
by the IANA.  They are also not quite complete in all regards; VIEW
options are understood and ignored.  ZONE options are understood and
acted upon, though some of the error cases aren't quite right.

Remove doubled isc_mem_stats in dighost.c

Update todo list.

Change literal 255's to DNS_NAME_MAXWIRE in name.c
2000-10-11 17:44:18 +00:00
Andreas Gustafsson
0736cce338 made dns_name_getlabelsequence() cope with degenerate
relative names containing no labels
2000-08-22 00:46:54 +00:00
Andreas Gustafsson
39f029558d in dns_name_totext(), check that the target buffer is
valid, and make use of the new isc_buffer_* macros
2000-08-16 22:18:20 +00:00
Andreas Gustafsson
f4bc158a46 in dns_name_isabsolute(), dns_name_fullcompare(),
and dns_name_compare(), do not require that the name has >0 labels
so that these functions can be used on the degenerate relative name @
2000-08-08 23:18:12 +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
051d1879fe dns_name_totext() now allows names with 0 labels, which format as "@" 2000-07-31 23:09:49 +00:00
David Lawrence
15a4474541 word wrap copyright notice at column 70 2000-07-27 09:55:03 +00:00
Andreas Gustafsson
b7ebc6a127 minor tweak to hash function of previous change 2000-07-20 01:15:25 +00:00
Andreas Gustafsson
f969863d54 replaced the hash function in dns_name_hash() by one
that is simpler, faster, and produces a much more even distribution,
particularly when the data to hash ends with a null byte like domain
names often do
2000-07-20 01:14:48 +00:00
David Lawrence
da527e4ff6 332. [func] New function dns_name_reset(). 2000-07-14 19:12:54 +00:00
Brian Wellington
4250285838 Return DNS_R_NAMETOOLONG in a few places where less useful errors were
returned before.
2000-07-13 18:10:18 +00:00
David Lawrence
9c3531d72a add RCS id string 2000-06-22 22:00:42 +00:00