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
Bob Halley
364a82f7c2
include isc/util.h
2000-04-28 01:12:23 +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
ace0c1b3f4
performance tweaks
2000-04-26 23:22:53 +00:00
Bob Halley
fca5f81ad6
using snprintf or vsnprintf requires isc/print.h
2000-04-12 19:07:12 +00:00
Andreas Gustafsson
b4b4adc097
added convenience function dns_name_format() for use in formatting
...
log messages
2000-04-11 19:11:46 +00:00
Michael Graff
4195904998
s/DNS_R_/ISC_R_/ change for some codes.
2000-04-06 22:03:35 +00:00
Andreas Gustafsson
ddfe394c06
need <isc/buffer.h>
2000-04-04 20:10:29 +00:00
Bob Halley
63c8c8f2a1
Add dns_name_dupwithoffsets().
...
Minor performance enhancement to dns_name_dup() (use the source's offsets table
if it has one).
2000-03-30 00:57:06 +00:00
Bob Halley
a8e4c27d2c
get rid of calls to dns_name_countlabels()
2000-03-29 18:49:36 +00:00
Bob Halley
a0abd77baa
dns_name_downcase() was not calling isc_buffer_add(), so buffer would always
...
be empty. This would cause name digesting to fail as well.
Remove some unused variables left over from the removal of local compression.
2000-03-23 17:56:24 +00:00
David Lawrence
ecb6c5782e
exorcized local compression
2000-03-23 05:18:46 +00:00
Andreas Gustafsson
aa8e34546c
commented nonobvious INSIST()
2000-03-20 19:33:20 +00:00
Bob Halley
3dbea10f98
fix loop termination bug
2000-02-26 00:28:46 +00:00
Bob Halley
453603c018
add dns_name_depth() and dns_name_splitatdepth()
2000-02-25 01:06:54 +00:00
Bob Halley
f18f3c93e7
add dns_name_requiresedns()
2000-02-19 00:11:21 +00:00
Bob Halley
7d32c065c7
update copyright
2000-02-03 23:50:32 +00:00
Bob Halley
5d661f0bde
dns_name_matcheswildcard("foo.com.", "*.foo.com.") incorrectly returned true
...
(see RFC 1034 section 4.3.3).
2000-02-02 20:44:22 +00:00
Brian Wellington
d2b77d720f
Added dns_name_matcheswildcard
2000-02-02 20:11:55 +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
Bob Halley
c7dd70fe1b
fix typo
1999-10-29 07:09:44 +00:00
Mark Andrews
af34594432
ft_octal was allowing '8' as a valid octal character.
...
ensure isdigit() is called with a positive int.
1999-10-29 02:38:37 +00:00
Bob Halley
345a84c9f1
add dns_name_print
1999-10-17 19:22:50 +00:00
Mark Andrews
000027219d
add dns_name_dynamic().
1999-10-13 22:45:17 +00:00
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