Mark Andrews
69acffbb19
sync with HEAD
2003-10-14 03:48:11 +00:00
Mark Andrews
dd8e7329b1
pullup:
...
1458. [cleanup] sprintf() -> snprintf().
2003-08-27 07:22:41 +00:00
Mark Andrews
388672fb80
pullup misc. changes
2003-08-25 05:49:57 +00:00
Mark Andrews
984d0d58e9
1368. [func] remove support for bitstring labels.
2003-08-20 05:33:18 +00:00
Mark Andrews
e2ac00112c
misc cleanups
2003-08-14 03:22:38 +00:00
Mark Andrews
1d04b5105d
1495. [cleanup] Replace hash functions with universal hash.
2003-07-25 03:31:45 +00:00
Mark Andrews
c1df871a18
silence compiler warnings (HPUX/11i)
2003-07-23 06:57:59 +00:00
Mark Andrews
8d4036ef7b
reviewed: marka
...
1350. [bug] dns_name_fromtext() failed to handle too many labels
gracefully.
2002-08-02 00:33:05 +00:00
Mark Andrews
3e99d38a74
reviewed: bwelling
...
1308. [bug] Adjusted REQUIRE's in lib/dns/name.c to better
reflect written requirements.
2002-07-11 01:29:00 +00:00
Mark Andrews
35f725a8b6
reviewed: bwelling
...
1306. [bug] dns_name_downcase() enforce requirement that
target != NULL or name->buffer != NULL.
2002-07-10 06:48:29 +00:00
Mark Andrews
b2f3e5c308
update_copyrights
2002-03-26 00:55:15 +00:00
Mark Andrews
9e7dfa38b4
pullup:
...
1211. [bug] dns_name_fromtext() incorrectly handled certain
valid octal bitlabels. [RT #2483 ]
2002-03-20 19:38:49 +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
David Lawrence
28d9fd5381
update_copyrights
2000-06-21 22:45:24 +00:00
Andreas Gustafsson
3fe45d9897
do the length checks of 1.90 in a more efficient way; take
...
advantage of the new buffer API macros
2000-06-09 22:01:55 +00:00
Brian Wellington
f3b52d9fe5
If an uncompressed name will take more than 255 characters and the buffer is
...
sufficiently long, dns_name_fromwire should return DNS_R_FORMERR, not
ISC_R_NOSPACE.
2000-06-09 01:30:11 +00:00