Mark Andrews
dafcb997e3
update copyright notice
2004-03-05 05:14:21 +00:00
Mark Andrews
c569a0e4d5
1582. [bug] rrset-order failed to work on RRsets with more
...
than 32 elements. [RT #10381 ]
2004-02-19 01:23:42 +00:00
David Lawrence
92ef1a9b9d
use ISC_MAGIC for all magic numbers, for our friends in EBCDIC land
2001-06-04 19:33:39 +00:00
Brian Wellington
507102c95a
In dns_compress_invalidate(), cctx->table cannot be NULL, since it's part of
...
the cctx structure.
2001-02-15 01:14:16 +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
82ecc44b96
another micro-optimization.
2001-02-10 02:55:05 +00:00
Brian Wellington
64e7f8541d
optimization - if the compression table for a message is empty, don't
...
hash and look up each label.
2001-02-10 01:18:19 +00:00
Brian Wellington
2d6a6174f1
micro-optimizations
2001-02-09 02:13:07 +00:00
Brian Wellington
5d18f1205a
remove the call to dns_name_getlabel(), since the dns_name_toregion() macro
...
is faster.
2001-01-23 02:19:48 +00:00
Brian Wellington
499b34cea0
copyright update
2001-01-09 22:01:04 +00:00
Andreas Gustafsson
b363c64ed6
sizeof() style; added comment
2001-01-07 22:01:12 +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
60103a02c6
Update the comments and kill unused structure elements, based on comments from
...
Mark.
2001-01-04 06:21:01 +00:00
Brian Wellington
dacf0cc454
Merged the private functions compress_add and compress_find into
...
dns_compress_add and dns_compress_findglobal.
2000-12-29 19:38:50 +00:00
Brian Wellington
bb88eab95f
fix an uninitialized variable; reformat some >80 character lines
2000-12-29 18:49:36 +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
942d1a339b
Decompression contexts now take a type instead of the "strict" boolean
...
value - the type can be "any", "strict", or "none". This fixes potential
problems with compression in unknown rr types.
2000-11-14 23:29:55 +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
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
35c0626628
Don't ever send GLOBAL16 compression, not even if edns>=1. Since the
...
edns1 I-D has expired, no one knows what edns level 1 will mean, and it may end up not
implying support for GLOBAL16. We are still liberal in what we accept; GLOBAL16
is accepted in packets we receive.
2000-05-04 22:36:24 +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
David Lawrence
09f22ac5b0
Redundant header work, mostly removing <dns/result.h> from installed
...
headers and adding it to source files that need it.
2000-05-02 03:54:17 +00:00
Bob Halley
364a82f7c2
include isc/util.h
2000-04-28 01:12:23 +00:00
Bob Halley
89b117b756
performance improvements
2000-04-27 21:46:31 +00:00
David Lawrence
a231769eaa
Made compress_add and compress_find static to lib/dns/compress.c
2000-04-27 00:08:44 +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
Bob Halley
41c82f9355
conform to RBT API change
2000-04-19 18:27:24 +00:00
David Lawrence
7b4e52d119
include dns/rbt.h
2000-04-12 21:25:10 +00:00
Michael Graff
4195904998
s/DNS_R_/ISC_R_/ change for some codes.
2000-04-06 22:03:35 +00:00
David Lawrence
ecb6c5782e
exorcized local compression
2000-03-23 05:18:46 +00:00
Andreas Gustafsson
2539896175
do not indent CVS ID comment
2000-03-17 17:49:37 +00:00
Bob Halley
7d32c065c7
update copyright
2000-02-03 23:50:32 +00:00
Andreas Gustafsson
d5017b061c
typo in comment
2000-02-02 00:38:28 +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
Mark Andrews
d5850aa99c
compress_find() could return a pointer to stack memory.
1999-05-26 00:34:54 +00:00
Mark Andrews
b75ba761f4
removed debugging code
1999-05-10 00:38:52 +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
1d6572f9d4
adjust #ifdef labels
1999-04-28 03:16:50 +00:00
Mark Andrews
a41d348e14
Local compression fixes to use rbt bitstrings.
1999-04-28 03:03:56 +00:00
Bob Halley
066ae48be3
include string.h to get memset() prototype
1999-04-14 17:40:22 +00:00
Mark Andrews
a2b97d054f
Convert compress_find to use PARTIAL_MATCH result.
1999-04-14 06:03:15 +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
David Lawrence
7ab725ec13
Converted @@@ to XXX per ISC convention for unresolved issues.
1999-03-18 20:32:32 +00:00
David Lawrence
eca5913a47
Made calls to dns_rbt_find{name,node} compatible with the just-committed
...
changes to rbt.c by passing a NULL pointer for the dns_name_t that
receives the full name of the node that is found. There is probably something
better to do, but this just keeps things compiling.
1999-03-16 16:15:44 +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
4c1132f344
update copyright
1999-03-06 04:12:06 +00:00
David Lawrence
587fc7b519
Revised dns_rbt_findname and dns_rbt_findnode to find the closest match
...
when an exact match cannot be found. This changed the calling interface,
which necessitated changes to rbtdb.c and compress.c.
1999-03-04 21:03:29 +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