Commit graph

10345 commits

Author SHA1 Message Date
Bob Halley
b4055b9666 preliminary dns_db_find() comments 1999-04-05 20:39:50 +00:00
Bob Halley
6e077ae73c add DNS_R_ZONECUT 1999-04-05 20:11:30 +00:00
Bob Halley
10e905959e When searching a cache db, we did not look for an NS record at the node, so we
sometimes did not find the deepest zone cut.  E.g. If you look for A records at
"com." then you should get a delegation for "com." and not one for ".".
In the various rdataset find routines, we sometimes attempted to bind the
rdataset even if the rdataset pointer was NULL.
Remove inline from a few functions.  Add inline to a few others.
1999-04-02 03:37:24 +00:00
David Lawrence
da1eb108c6 rbtnode's callback member renamed find_callback. 1999-04-01 15:57:48 +00:00
Bob Halley
1b90a27c4d Implement zone and cache versions of dns_db_find().
Add incomplete and not-yet-working dbiterator implementation.
Improve node reference count handling.
Opening and closing the current version more than once was breaking
due to incorrect garbage collection.
Some rbtdb values had not been getting initialized.
Improvements to add procedure.
1999-04-01 04:11:33 +00:00
Bob Halley
9e2fa382e8 remove unneeded include 1999-04-01 04:03:56 +00:00
Bob Halley
ced5499494 add dns_db_find 1999-04-01 04:03:22 +00:00
Bob Halley
d176cbca5b checkpoint 1999-04-01 04:02:33 +00:00
Bob Halley
0180ccf72c require non-NULL methods on accessors 1999-04-01 04:01:30 +00:00
Bob Halley
5bfea18ff8 add dns_rdataslab_merge 1999-04-01 04:00:39 +00:00
Bob Halley
e7b724c23e result types for database searches 1999-04-01 03:59:49 +00:00
Bob Halley
6d356e35c6 add author info 1999-04-01 03:59:27 +00:00
David Lawrence
5f50687f61 Changes from Bob, best described in his own barely-edited words:
I added support for the full search algorithm to the RBT database
  code.  The database has some special needs in searching, in particular
  certain nodes need to be examined before the DOWN pointer is followed.

  I solved this problem by adding a 'callback' bit to the node structure.
  When findnode is called, the caller can supply a callback.  Before we go
  DOWN at a node, we call the callback if the callback bit is set at the
  node.  If the callback returns DNS_R_CONTINUE, we proceed.  Otherwise, we
  will stop right there and return what the caller said to return.  I
  added an 'empty_data_ok' flag to findnode as well, so that nodes with
  empty data can be made candidates for partial match status.

  I also wanted to make dns_rbtnodechain_t public, so that a chain could
  be allocated on the stack by the caller.  I added two routines,
  dns_rbtnodechain_init() and dns_rbtnodechain_reset() to work with them.
  The latter routine frees any dynamically allocated memory associated with
  the chain.  The chain structure now contains the memory context.  I also
  moved get_ancestor_mem() and put_ancestor_mem() up in the file, so that
  inlining could be more effective.

  In the nits department, you wrote

                  *node = result == DNS_R_SUCCESS ? current : NULL;

  In the future, please write this instead (the patch has this change in it):

                  if (result == DNS_R_SUCCESS)
                          *node = current;
                  else
                          *node = NULL;
1999-04-01 03:15:54 +00:00
Bob Halley
8bdb4ab2d1 only UNLOCK and then LOCK if actually sending an event 1999-04-01 01:09:28 +00:00
Michael Graff
e0834816d7 clean up comments 1999-03-30 06:22:28 +00:00
Michael Graff
d4aa1c590e more fixes. 1999-03-30 06:18:45 +00:00
Michael Graff
f9df3b7b03 typo 1999-03-30 03:45:46 +00:00
Michael Graff
952c9d12d0 add DNS_R_MOREDATA for msg library 1999-03-30 03:45:11 +00:00
Michael Graff
b1ddf33030 add msg.h, will change as needed, but Brian needed this now 1999-03-30 03:43:00 +00:00
David Lawrence
194dda8c56 new possible return code for dns_rbt_addnode, DNS_R_NOSPACE. It means
that adding the name would create too many logical levels in the
tree of trees.
1999-03-30 01:57:12 +00:00
David Lawrence
84f8cc7e22 Initialize the node's attributes with the name's attributes. This
is currently fine, because there are only two attribute flags a name
can have, one of which the node definitely needs to have set, and the
other of which is functionally irrelevant (because it happens to be set
by the NODENAME macro, namely the read-only flag).  This might not
be the right thing to do in the future when more name attributes get
added, but we'll cross that bridge if we get to it.  (_Some_ change was
necessary because the node's attributes was not properly initialized when
created, and under certain circumstances this ended up triggering an
exception in the dns_name_* functions.

Watch for level overflow during dns_rbt_addnode().  Returns DNS_R_NOSPACE,
which is probably not the right thing.

Comment cleanups.
1999-03-30 01:56:01 +00:00
Michael Graff
cc60c973f4 comment for bob :) 1999-03-29 23:56:48 +00:00
Michael Graff
b73eb944cd Changes talked about at IETF -- code cleanup, result code cleanup, etc 1999-03-29 23:56:06 +00:00
Michael Graff
1b1bc2a9d5 mention that UDPs are always "partial read" 1999-03-29 20:02:41 +00:00
Bob Halley
f4f2ef7d80 fix minor textual nits 1999-03-24 00:29:54 +00:00
Mark Andrews
0d46301a6e NBUF was one to small.
GETTOKEN is now a simple macro that calls gettoken (static inline).
1999-03-23 00:04:01 +00:00
Mark Andrews
dd082cc554 Added BIND 8.x ttl processing.
Allow ttl / class to be specified in any order.
	Suppress duplicate rdata.
	Additional commentry.
1999-03-22 06:21:29 +00:00
Mark Andrews
5f78628b28 Add DNS_R_BADTTL. 1999-03-22 06:18:34 +00:00
David Lawrence
d737609b91 Allow space for 255 levels in rbtnodechain because of bitlabels. 1999-03-18 21:32:51 +00:00
David Lawrence
d09197467b Principle Authors: DCL 1999-03-18 21:21:31 +00:00
David Lawrence
7ab725ec13 Converted @@@ to XXX per ISC convention for unresolved issues. 1999-03-18 20:32:32 +00:00
David Lawrence
9f1a1007e0 Converted @@@ to XXX in comments about unresolved issues. 1999-03-18 20:30:28 +00:00
David Lawrence
c77dc869b3 Added comments about locking in dns_dbtable struct. 1999-03-18 20:06:26 +00:00
David Lawrence
a685d9c3b6 Preliminary implementation of db mounting. 1999-03-18 19:37:30 +00:00
David Lawrence
f39a760ab0 formatting fixups (a few lines were over 79 char). 1999-03-16 22:57: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
David Lawrence
194f54f4da New parameter to dns_rbt_find{name,node} will return the full dns_name_t
of the node that is found.

Avoids doing any memory allocation when building ancestor chain in 99%
of the cases.
1999-03-16 16:10:36 +00:00
David Lawrence
cdd824cc88 documentation updates.
removed some print support function declarations; made static to rbt.c.
1999-03-12 05:01:42 +00:00
David Lawrence
bd1190c84b no more need for mem_failure in rbt_nodechain_t, since findnode now
returns a dns_result_t.

dns_rbt_created requires deleter_arg NULL if deleter is NULL.

dns_rbt_addnode always returns DNS_R_EXISTS if the node is found, regardless
of if it has data.

dns_rbt_addname will add the data and return SUCCESS if addnode says
EXISTS but there is no data at the node.

make sure memory is freed even when get_ancestor_mem to reallocate fails.

partialmatch returned by findnode must have data associated with it.

fixed up deletename; prematurely exited without freeing chain memory if
the node was not found.  made deletename responsible for identifying whether
a node could be removed rather than zapnode.

turned a few of the print support functions static.
1999-03-12 05:00:32 +00:00
David Lawrence
62f178f499 Preserve the storage location of the down node of a pair of joined nodes
when deleting, where possible.
1999-03-11 22:04:24 +00:00
David Lawrence
7f9a18ab45 Move the data pointer further down in the struct, near the second set of
bitfields that are used by RBT DB.
1999-03-11 21:15:12 +00:00
David Lawrence
6a0cb547d4 When splitting a node, increment PADBYTES by the amount that is truncated,
instead of just setting PADBYTES to that amount (this affects when a node
is split twice.)
1999-03-11 20:07:49 +00:00
Bob Halley
0cc67b5a2a add DNS_R_UNCHANGED 1999-03-11 20:06:56 +00:00
David Lawrence
f036af2c71 rbtnode struct adapted with more bitfields to represent color,
name attributes, name length, offset length, and number of bytes
of "padding" that are left over when a node is split.

adjusted node splitting algorithm to preserve the original location
of the lower portion of the split node (eg, when a node has "a.b" as
its name and is split into "a" and "b", "a" retains the same address
space as "a.b".)
1999-03-11 18:54:31 +00:00
Bob Halley
b7ff8128f0 implement rdataset iteration 1999-03-11 06:02:28 +00:00
Bob Halley
bc5c129744 fix typo 1999-03-11 06:02:00 +00:00
Bob Halley
5245f4c5f9 have next method return DNS_R_NOMORE if cursor is already invalid 1999-03-11 06:01:31 +00:00
Bob Halley
efe6d8f066 add dns_db_allrdatasets 1999-03-11 06:00:22 +00:00
Bob Halley
b70e90d44f make current return void 1999-03-11 05:59:40 +00:00
Bob Halley
184aadebb8 rdataset.h is not required 1999-03-11 05:58:56 +00:00
Bob Halley
4054230359 remove old rdataiterator; add rdatasetiter 1999-03-11 05:58:32 +00:00
Bob Halley
84c3294183 improved concatenation 1999-03-11 00:44:17 +00:00
Bob Halley
d7eef25fbe rdataset iterator support 1999-03-11 00:43:43 +00:00
Bob Halley
7a9ded7b5f minor cleanups 1999-03-11 00:43:04 +00:00
Mark Andrews
285b63e90f Added {} to prevent 'ambigious else' warnings. 1999-03-11 00:29:10 +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
9b8123723a add comment 1999-03-09 22:50:13 +00:00
Bob Halley
4a8b521fd7 remove typedef; add dns_fixedname_name() 1999-03-08 19:31:48 +00:00
Bob Halley
84d3cd8fed add dns_fixedname_t 1999-03-08 19:31:30 +00:00
Bob Halley
a301df6a92 add dbiterator 1999-03-08 19:01:49 +00:00
Bob Halley
bb8263521b unimplemented db iterator support 1999-03-08 19:01:18 +00:00
Bob Halley
8c65ae482a db iterator support 1999-03-08 19:00:55 +00:00
Bob Halley
dbef4f7fb7 add 1999-03-08 19:00:11 +00:00
Bob Halley
544021d7e1 add dbiterator.h and fixedname.h 1999-03-08 18:59:27 +00:00
Bob Halley
ce3761f64d add dedicated buffer support; cleanups to dns_name_concatenate() 1999-03-08 18:55:28 +00:00
Bob Halley
4c154a9f38 add 1999-03-08 18:53:44 +00:00
Bob Halley
ddbbc5a1c9 add dns_dbiterator_t 1999-03-08 18:51:51 +00:00
Bob Halley
0b7c2a096d add DNS_R_NEWORIGIN 1999-03-08 18:51:14 +00:00
Bob Halley
a823c4f11a requirement update 1999-03-07 19:21:49 +00:00
Bob Halley
b929562c6c start adding interface comments 1999-03-07 19:21:37 +00:00
Bob Halley
8eea0575a0 update 1999-03-06 18:38:24 +00:00
Bob Halley
4c1132f344 update copyright 1999-03-06 04:12:06 +00:00
Bob Halley
7270737ca9 update copyrights 1999-03-06 04:03:53 +00:00
Bob Halley
c46bcd7c69 update copyright 1999-03-06 03:55:54 +00:00
Bob Halley
ff9104607c add deletion 1999-03-06 00:51:12 +00:00
Bob Halley
12c0aff12a printnode support; versioning fixes 1999-03-05 23:26:24 +00:00
Bob Halley
097c31fdea add dns_db_printnode 1999-03-05 23:25:44 +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
David Lawrence
f85b8869df new result type, DNS_R_PARTIALMATCH, for dns_rbt_find* 1999-03-04 20:55:57 +00:00
Bob Halley
904a573437 C++ compatibility 1999-03-04 02:48:47 +00:00
Bob Halley
e371b7a70f basic versioning; 64-bit version support; C++ compatibility 1999-03-04 02:45:56 +00:00
Bob Halley
86921103ec lint 1999-03-04 02:44:30 +00:00
Bob Halley
ca04d3fbf9 additional assertions, C++ compatibility 1999-03-04 02:43:05 +00:00
Bob Halley
0e3ad06058 additional assertions, C++ compatibility, rbtdb64 support 1999-03-04 02:42:40 +00:00
Bob Halley
bb556a9bf3 add rbtdb64 1999-03-04 02:39:41 +00:00
Bob Halley
7aacbd685b C++ compatibility 1999-03-04 02:38:48 +00:00
Bob Halley
cc884bc809 add INSERTBEFORE, INSERTAFTER, APPENDLIST 1999-03-04 02:38:10 +00:00
Bob Halley
a358b1e42b update copyright 1999-03-04 02:37:49 +00:00
Bob Halley
fa795c6d23 add ISC_LIST_APPENDLIST 1999-03-04 02:37:11 +00:00
Bob Halley
b4113e7bd9 add 1999-03-04 02:35:52 +00:00
Bob Halley
478d45fc48 do not install inet.h; add lang.h 1999-03-04 02:35:46 +00:00
David Lawrence
6735f1e886 arguments for common_labels and common_bits to dns_name_fullcompare
are unsigned ints
1999-03-04 02:35:04 +00:00
David Lawrence
005c7ad70f Use dns_name_fullcompare() and remove internal comparison functions.
Allow root label to be in its own level (and thus have data associated with it.)

Avoid retraversal of level in dns_rbt_addonlevel().
1999-03-03 20:01:49 +00:00
Bob Halley
b2f1f3b836 add reminder 1999-03-02 19:57:10 +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
d0221bfa6a Added Contract Comments 1999-02-25 01:37:03 +00:00
Mark Andrews
bcd7fdf06c Fix mnenonic names. 1999-02-25 00:27:02 +00:00
Mark Andrews
1ef8965366 Add decompression. 1999-02-24 06:31:35 +00:00
James Brister
8bb9bf6bfe Added compress.o to get build going again. 1999-02-23 17:30:49 +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
Mark Andrews
2429685db2 Removed trailing comma. 1999-02-22 01:06:26 +00:00
Mark Andrews
ad883ba085 Protect from multiple calls by #ifndef/#define/#endif. 1999-02-22 00:53:19 +00:00
Bob Halley
86cbdf5783 update .h file installation lists 1999-02-18 01:26:24 +00:00
Bob Halley
5c821b7bda fix cut and paste error 1999-02-18 01:24:59 +00:00
Bob Halley
6d5dcd0dc9 Make multiple build directories work again 1999-02-18 01:24:32 +00:00
Mark Andrews
54db0529dc Copyright dates now comma seperated list of years. 1999-02-16 22:51:19 +00:00
Mark Andrews
0e8cf9a887 Style updates.
cvs: ----------------------------------------------------------------------
1999-02-16 22:42:33 +00:00
Bob Halley
b420577e13 add consume macros 1999-02-16 20:08:59 +00:00
Bob Halley
e8b2131478 contents moved to isc/region.h 1999-02-16 20:08:24 +00:00
Bob Halley
02083e881d Improve dns_name_fullcompare() comment. 1999-02-16 08:28:58 +00:00
Bob Halley
2aa970ccec add dns_name_fullcompare(); update comments 1999-02-16 08:18:56 +00:00
Bob Halley
29b487b0a4 add dns_name_fullcompare(); fix issubdomain and compare bugs 1999-02-16 08:18:44 +00:00
Bob Halley
a866eaa4ac add dns_namereln_t 1999-02-16 08:17:45 +00:00
Mark Andrews
19d365e444 Added missing REQUIRE()'s to dns_rdata_*().
Restored origin to dns_rdata_totext().

	Made include file comments more relevent.
1999-02-16 02:54:18 +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
Mark Andrews
035504dbd8 Added new error code DNS_R_UNEXPECTEDTOKEN, DNS_R_BADBASE64.
Adjusted function to use the new error codes.

	Changed some INSIST -> REQUIRE.

	Mapped ISC_R_NOMEMORY -> DNS_R_NOMEMORY for isc_lex_gettoken() result.
1999-02-12 03:08:44 +00:00
Bob Halley
19511ab025 commenting improvement 1999-02-12 02:04:41 +00:00
Mark Andrews
ccedaf210f Don't assign north / east as a side effect of if.
Add 'm' to the altitude output.

	Negative altitudes were not being read in correctly. Fractional part
	was being added rather that subtracted.
1999-02-11 14:00:29 +00:00
Michael Graff
882350d11c Clean up many compiler warnings. 1999-02-11 06:38:12 +00:00
Bob Halley
6107e9b485 API cleanups 1999-02-11 04:56:07 +00:00
Bob Halley
62837b832f version registry; API cleanups; comments; assertions 1999-02-11 04:55:38 +00:00
Bob Halley
48e6ddcb8a standard comments; API cleanups 1999-02-11 04:55:03 +00:00
Bob Halley
eec229f176 remove dns_addmode_t 1999-02-11 04:54:31 +00:00
David Lawrence
c1bb41fa73 the root name is an absolute name 1999-02-10 19:32:48 +00:00
Bob Halley
cd9999a958 add comments, move color to avoid locking problem 1999-02-10 19:05:40 +00:00
Bob Halley
fd350b6d2a remove typo 1999-02-10 19:04:48 +00:00
Bob Halley
8ade1c8762 add callbacks.o 1999-02-10 19:01:06 +00:00
Mark Andrews
bfc4767894 Additional description of function 1999-02-10 05:45:00 +00:00
Mark Andrews
fdd04623a6 Convert to user error / warn callbacks. 1999-02-10 05:25:37 +00:00
Mark Andrews
07c7ca6f31 isc_mem_strdup() result was not being checked. 1999-02-10 05:22:57 +00:00
Mark Andrews
8eaa2ef566 Add dns_rdatacallbacks_init(). 1999-02-10 05:22:02 +00:00
Mark Andrews
df1ba071bc New error codes.
DNS_R_NOOWNER
	DNS_R_NOTTL
	DNS_R_BADCLASS
1999-02-10 05:19:56 +00:00
Bob Halley
25870d4a37 eliminate infinite loop 1999-02-10 03:39:29 +00:00
Mark Andrews
82d0558893 Pass multiple callbacks in dns_rdatacallbacks_t.
Call UNEXPECTED_ERROR() when returning DNS_R_UNEXPECTED.
1999-02-09 08:02:21 +00:00
Mark Andrews
0751254ce6 return DNS_R_BADDOTTEDQUAD on isc_inet_aton failure 1999-02-09 07:58:57 +00:00
Mark Andrews
b8ea456f92 Failure to pass a valid IPv6 address now returns DNS_R_BADAAAA. 1999-02-09 07:52:32 +00:00
Michael Graff
491b48ec3f First pass at addrlength grossness cleanup. Man, this is ugly. 1999-02-06 08:48:08 +00:00
Bob Halley
14cb69a4f7 add missing isc_ 1999-02-06 01:51:36 +00:00
Bob Halley
83ac7ce833 lint 1999-02-06 01:45:11 +00:00
Bob Halley
1630fce031 performance enhancements, deleter arg 1999-02-06 01:27:35 +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
05b95dc41b master loader rename; performance improvements; deletion callback 1999-02-06 01:20:48 +00:00
Bob Halley
f150692ba3 name change 1999-02-06 01:18:18 +00:00
Bob Halley
6fce0bb174 add str.o 1999-02-06 01:16:58 +00:00
Bob Halley
e800570a5a add dns_rdataslab_size(); remove dns_rdataslab_tordataset() 1999-02-06 00:07:09 +00:00
Bob Halley
1366b7833c allow case insensitive hashing 1999-02-06 00:03:19 +00:00
Bob Halley
1bf0b455b6 add XXXRTH comments 1999-02-06 00:00:41 +00:00
Mark Andrews
e4653123ec isc_lex_getsourcename()
isc_lex_getsourceline()
	convert uint#_tobuffer() to use isc_buffer_putuint#()
1999-02-05 06:41:21 +00:00
Mark Andrews
2cd8a160b9 Missing space totext_tkey() 1999-02-05 05:15:16 +00:00
Mark Andrews
15330e4fa2 isc_strtouq() 1999-02-05 04:57:20 +00:00
Mark Andrews
54c26ab21c dns_cert_{to,from}text()
dns_secalg_{to,from}text()
1999-02-05 00:05:46 +00:00
Michael Graff
2e511564c5 work around broken lameness 1999-02-04 22:52:09 +00:00
Mark Andrews
5901928ef8 fix up TKEY 1999-02-04 07:00:32 +00:00
Mark Andrews
8d3e74b168 gen to generate dns_rdata{type,class}_{type,class}
dns_rcode_{to,from}text()
	TKEY was missing the Algorithm
1999-02-04 06:38:43 +00:00
Mark Andrews
f427e78509 Initial Implementation 1999-02-04 02:09:04 +00:00
Mark Andrews
f9d7040e8d TSIG initial implementation. 1999-02-04 01:06:40 +00:00
Mark Andrews
904294c0c9 region_compare() return wrong result when regions were the same.
base64_tobuffer() need a way to read a specific length of base64
	data, not just read to eol.
1999-02-04 00:03:29 +00:00
Mark Andrews
3a4ec3da9f atob_tobuffer and btoa_totext 1999-02-03 06:01:32 +00:00
Mark Andrews
e59c5fc23f UNSPEC Initial Implementation 1999-02-03 06:00:51 +00:00
Mark Andrews
217f572018 NSAP-PTR Initial implementation.
Modified gen.c to support "-" in class and type names.
1999-02-02 22:34:20 +00:00
Mark Andrews
5d15501996 Fix incorrect fix for valid strtol conversion sig_24.h
Make tests for full string consumption by strtol consistant
	(*e == 0) || (*e != 0)
1999-02-02 13:31:46 +00:00
Mark Andrews
06a4967441 ATMA not supported. 1999-02-02 05:44:51 +00:00
Mark Andrews
bdfffc68db Initial Implementation 1999-02-02 05:03:10 +00:00
Mark Andrews
901b5fb3b3 Initial Implementation. 1999-02-02 04:52:31 +00:00
Bob Halley
8272eed68f fix typo 1999-02-02 01:43:47 +00:00
Bob Halley
f0bbac2c0f signed vs. unsigned fix 1999-02-02 01:28:48 +00:00
Mark Andrews
12a12d8ab4 Initial Implementation 1999-02-02 01:19:22 +00:00
Bob Halley
fe47f41b13 eliminate compiler warnings (signed vs. unsigned) 1999-02-02 01:18:51 +00:00
Bob Halley
af6dfd762e eliminate compiler warnings (char vs. uchar) 1999-02-02 01:17:49 +00:00
Bob Halley
5a7a0823f4 fix cut-and-paste error 1999-02-02 00:39:44 +00:00
Bob Halley
6acb28c304 use isc_inet_pton 1999-02-02 00:38:50 +00:00
Bob Halley
a6d40879d4 add inet_pton 1999-02-02 00:37:09 +00:00
Mark Andrews
a3c5ba000a Initial implementation 1999-02-01 23:49:47 +00:00
Mark Andrews
12c6f4b3b2 SRV RR 1999-02-01 22:05:56 +00:00
Mark Andrews
fcf8db89e6 EID, NIMLOC 1999-02-01 21:34:51 +00:00
Bob Halley
a99979c686 add dns_db_origin 1999-02-01 21:21:35 +00:00
Mark Andrews
8a17d1e7cd added decvalue 1999-02-01 07:59:43 +00:00
Mark Andrews
d42be4bb84 LOC 1999-02-01 07:58:13 +00:00
David Lawrence
8e1f35e1d7 free ancestor memory allocated in addonlevel 1999-02-01 03:26:00 +00:00
Mark Andrews
e4bea1f716 Added GPOS and AAAA 1999-02-01 00:15:55 +00:00
Mark Andrews
eb7a2b3291 PX X.400 mail mapping information 1999-01-31 22:38:40 +00:00
David Lawrence
265c6d0526 the space for the ancestor chain in addonlevel is now dynamic. 1999-01-31 19:55:52 +00:00
David Lawrence
94231e2288 added a function for getting space for ancestor nodes in the node_chain,
and use it within dns_rbt_findnode.

moved the guts of dns_rbt_deletename into its own function to clean up
the freeing of ancestor memory into just one location.

deletefromlevel required that ancestor_count be > 1, which would abort
trying to delete the root of the tree when the root had no children.
1999-01-31 18:43:57 +00:00
David Lawrence
97940a084c don't free the down data pointer in join_nodes. (what was i thinking?!)
do free the ancestor chain in dns_rbt_deletename
1999-01-31 16:50:01 +00:00
David Lawrence
d65db52903 deletetree does not take a root parameter any more.
removed the SET_foo macros left over from the rbtgen.c pseudo-code.
1999-01-31 01:35:04 +00:00
David Lawrence
5a90bf50a8 Fixed up calls to dns_rbt_create and dns_rbt_findnode, which changed
in rbt.c
1999-01-31 01:00:57 +00:00
David Lawrence
0f5962ac3e many changes.
ancestor/level history no longer kept in rbt structure; node_chain structure
was created for this purpose, and each dns_rbt_deletename call will pass
the chain structure to dns_rbt_findnode.

color enum removed from rbtnode structure; single bit used instead

length of name in rbtnode no longer kept as int in rbtnode structure;
stored as single byte just past end of rbtnode, and the actual name data starts
two bytes past the end.

dns_rbt_create takes additional argument that is a pointer to a function
which is responsible for deleting the space pointed to by an rbtnode's data
pointer when the node is removed.

dns_rbt_addnode renamed to dns_rbt_addonlevel so that dns_rbt_addnode could
be a public function that can provide the address of the new node back
to the caller.

removed several #if 0 blocks that were held over from when parent pointers
were used.
1999-01-31 00:52:53 +00:00
David Lawrence
8d320be20d name length removed from structure; value is stored in single byte immediately
after the structure.

color stored in single bit

references bitfield width decrease by one

typedef for a node_chain structure, used by dns_rbt_findnode

dns_rbt_create takes a new second argument that is a pointer to a function
which frees node data when the node is deleted.

dns_rbt_addnode provided to return the node that was added.
1999-01-31 00:32:51 +00:00
Mark Andrews
8aefdfc906 Missing !in_glue test. 1999-01-30 13:11:24 +00:00
Bob Halley
ccbfddc70e dns_rdataset_towire() now returns the number of RRs added to target 1999-01-30 05:01:01 +00:00
Michael Graff
c810fcbf6c Add isc_inet_aton() and a check to use system inet_aton() 1999-01-30 04:27:48 +00:00
Bob Halley
70db22e93b comparisions should be case-insensitive 1999-01-30 04:27:13 +00:00
Michael Graff
0e0b744f61 Make <isc/types.h> which will include all the base types like <isc/int.h>. 1999-01-30 03:09:04 +00:00
Bob Halley
c8a42d6d81 add gen to clean rule 1999-01-30 01:40:16 +00:00
James Brister
4182ae60b0 Added ISC_R_INVALIDFILE 1999-01-30 00:54:32 +00:00
Michael Graff
f5375f2b93 u_long u_long; -> unsigned long ulong; 1999-01-30 00:29:31 +00:00
Bob Halley
e5c2e16bb2 store node lock number; rdataset methods; find and add rdatasets 1999-01-29 22:21:13 +00:00
Bob Halley
721d4541c3 add locknum 1999-01-29 22:19:57 +00:00
Bob Halley
e496615043 add private4 and private5 1999-01-29 22:19:38 +00:00
Bob Halley
d54184ee4c current was not static; add private4 and private5; remove redundant code 1999-01-29 22:19:15 +00:00
Mark Andrews
2bc0da0cd8 Added NXT
Debugged SIG
1999-01-29 08:04:13 +00:00
Bob Halley
4dfbac7434 partial master file loading 1999-01-29 07:04:29 +00:00
Bob Halley
fec93edbae add base 1999-01-29 07:04:03 +00:00
Bob Halley
b03b67a6f1 add base, dns_db_load 1999-01-29 07:03:42 +00:00
Bob Halley
f305d86668 need multiline mode 1999-01-29 07:02:59 +00:00
Bob Halley
1ccbfca64a add preliminary db support 1999-01-28 23:53:03 +00:00
Bob Halley
2cd0c38115 fix typo 1999-01-28 23:52:24 +00:00
Bob Halley
bcfcece57e add dns_name_hash 1999-01-28 23:52:00 +00:00
Bob Halley
54a58e494c db additions 1999-01-28 23:51:12 +00:00
Bob Halley
c5bd4120ee add dirty and references 1999-01-28 23:50:55 +00:00
Mark Andrews
923e2ea400 dns_load_master()'s callback last arguement is now void * rather
than isc_mem_t * to provide a general mechanism to pass context to
	the call back.  dns_load_master() has an additional arguement to
	support this.  to get the old behaviour set the arguement, private,
	to the same value as mctx.
1999-01-28 22:32:45 +00:00
Bob Halley
918ef3a73e save options before doing DNS multiline mode 1999-01-28 18:15:57 +00:00
Bob Halley
72614620fc better support for multiple sources 1999-01-28 08:38:42 +00:00
Bob Halley
f3d3847553 add ISC_R_NOMORE 1999-01-28 08:38:01 +00:00
Mark Andrews
bdc5b485bc ignoire enum*.h 1999-01-28 05:31:03 +00:00
Mark Andrews
6d7585b3e9 Auto generate enum*.h file 1999-01-28 05:16:42 +00:00
Mark Andrews
0c67279acb Added soacount and nscount 1999-01-28 05:03:25 +00:00
Mark Andrews
e68714fd95 Add $TTL and $INCLUDE processing 1999-01-28 01:16:59 +00:00
Mark Andrews
89140b7f74 Added $ORIGIN support. 1999-01-27 23:57:46 +00:00
Mark Andrews
cee7525336 Add support for '@' => origin. 1999-01-27 23:39:40 +00:00
Mark Andrews
3ff55a3111 dns_master.c:
fix 2 infinite while loops.
		use a pool of 5 buffers for dns_name_fromtext target.
	add master_test.c:
1999-01-27 23:17:57 +00:00
Mark Andrews
ffe74cc719 Add KEY, SIG and NSAP rdata type. SIG is not complete.
Add master file reader, master.c master.h, incomplete.

	gen.c was not generate correct include file, SWITCHXXX macros were
	being terminated early if last RR type was class specific.

	Added base64 support to rdata.c.
1999-01-27 13:38:21 +00:00
Michael Graff
cd82aa8fa3 implement and build dns_rdataslab_fromrdataset() 1999-01-27 08:44:10 +00:00
Michael Graff
22f735acbc implement and use isc_buffer_putuint{16,32}() 1999-01-27 06:18:45 +00:00
Bob Halley
f0a5bb8f86 fix default case in dns_rdata_towire 1999-01-27 06:07:57 +00:00
Michael Graff
76883e8cee implement dns_rdataset_towire() 1999-01-27 05:54:39 +00:00
Michael Graff
edd4f79b4b fill in documentation on dns_rdata_towire() 1999-01-27 05:54:05 +00:00
Michael Graff
d915cb8961 fix cancel code 1999-01-27 04:17:05 +00:00
David Lawrence
c4c843edb3 Basic deletion works again. Parent pointers have been expunged from
all the code.
1999-01-27 01:48:55 +00:00
David Lawrence
f8424fc7b3 Fixed a couple of names for ISC coding conventions. 1999-01-26 13:23:23 +00:00
Bob Halley
59be3f4a67 fix possible char buffer draining problem; add DNS_LEXOPT_MULTILINE support 1999-01-26 08:26:19 +00:00
Bob Halley
9455756dab add ISC_LEXOPT_MULTILINE 1999-01-26 08:24:31 +00:00
Bob Halley
516d43e889 add ISC_R_UNBALANCED 1999-01-26 08:23:55 +00:00
Bob Halley
1a148d1bcc change namespace to db 1999-01-26 08:22:06 +00:00
David Lawrence
72d4e9f06f Don't use deletenode in deletetree, because the color fixups do not need
to be done, just the memory recovered.
1999-01-26 03:31:53 +00:00
Bob Halley
fe7d53d4aa redblack.o is gone 1999-01-25 21:46:22 +00:00
David Lawrence
5a2f873360 Source files renamed from "redblack" to "rbt". 1999-01-25 15:47:28 +00:00
David Lawrence
73d62a89f1 A variety of changes.
dns_rbt_node_t changed to dns_rbtnode_t to match ISC conventions.

  main() test routine and support functions removed, to be put in
    bin/tests/rbt_test.c

  adding a node and rotating left/right taught to not use parent pointers.

  deletion disabled because it currently does not know how to not use
    parent pointers, and since they are not being maintained by insertion,
    deleting has no prayer of working.

  several isc_result_t returns changed to dns_result_t.
1999-01-25 15:46:30 +00:00
David Lawrence
10c05796f2 Two new result types, "already exists" and "not found". 1999-01-25 15:41:22 +00:00
Mark Andrews
1c31915286 Add RR from RFC 1183
Update Copyright dates.
1999-01-22 05:02:49 +00:00
Michael Graff
64ba6e4cc3 make this go on the Alpha. 1999-01-22 04:35:11 +00:00
Mark Andrews
2192b44973 HINFO and TXT now handle quoted strings. 1999-01-22 01:27:30 +00:00
Michael Graff
110d170273 include <config.h> 1999-01-22 01:21:44 +00:00
Michael Graff
0c310d16b0 cast target->base to unsigned char *, and rearrange the includes 1999-01-22 01:21:02 +00:00
Mark Andrews
eb6bd543c7 covert RETERR to do { ... } while (0) 1999-01-22 00:38:47 +00:00
Mark Andrews
deaaf94332 dns_rdata_compare checked for RFC 1035 types
converted frometext* to use gettoken()
	converted:
		result = foo();
		if (result != DNS_R_SUCCESS)
			return (result);
	to
		RETERR(foo());
1999-01-22 00:36:59 +00:00
Mark Andrews
44a966dff6 Added WKS. 1999-01-21 06:02:15 +00:00
Mark Andrews
bed8e84810 Add meta and IANA reserved types / classes. 1999-01-20 22:49:34 +00:00
David Lawrence
910b2a8092 working single-level red/black tree code 1999-01-20 10:18:34 +00:00
David Lawrence
f389bc2c9e redblack.c include/dns/redblack.h
Initial (committed) implementation of red/black tree of trees.

Makefile.in:
	add redblack.o to libdns.
1999-01-20 10:13:43 +00:00
Bob Halley
0d0d9a9d98 restructure totext(), print type and class as text instead of as numbers 1999-01-20 07:49:30 +00:00
Mark Andrews
4674aca9ba Make names in TYPENAMES / CLASSNAMES uppercase. 1999-01-20 07:14:35 +00:00
Mark Andrews
a98551ef59 Implemented dns_rdatatype_fromtext(), dns_rdatatype_totext(),
dns_rdataclass_fromtext() and dns_rdataclass_totext().
1999-01-20 06:51:30 +00:00
Mark Andrews
3d5cad69ec Adjusted error codes.
txt_fromwire() was not coping with a zero length active buffer.
1999-01-20 05:20:24 +00:00
Michael Graff
47db0e1d06 checkpoint. udp listener clde split out. 1999-01-20 03:54:54 +00:00
Bob Halley
603f92eefd use target buffer, cleanups 1999-01-20 03:06:32 +00:00
Bob Halley
c98d185d0c add active region; enforce invariants about current 1999-01-20 02:42:22 +00:00
Bob Halley
cada82f4ff add active region 1999-01-20 02:41:54 +00:00
Bob Halley
26b0f58b6c use the active region instead of the remaining region 1999-01-20 02:41:11 +00:00
Bob Halley
6097a45fec note that active region must be set in dns_rdata_fromwire() 1999-01-20 02:40:45 +00:00
Bob Halley
1c25689ae6 more tabbing fixes 1999-01-20 02:40:02 +00:00
Mark Andrews
f7b99290c3 Added INSIST's 1999-01-19 06:49:33 +00:00
Michael Graff
523b3c81c3 Fix a nasty little UDP-related bug 1999-01-19 06:33:18 +00:00
Mark Andrews
3761c43391 Add $Id$'s 1999-01-19 05:38:36 +00:00
Mark Andrews
bb690d7580 towire_mx was using the wrong part of the target buffer. 1999-01-19 05:26:01 +00:00
Mark Andrews
bfb2a81b65 Fix initial towire/fromwire so they work. 1999-01-19 05:16:32 +00:00
Mark Andrews
3f28431177 Added "breaks" to defaults. 1999-01-19 04:44:19 +00:00
Mark Andrews
611a37e72d Have to "break" at end of second level switch. 1999-01-19 04:40:48 +00:00
Mark Andrews
fa41ee66c7 ignore code.h and gen 1999-01-19 04:32:25 +00:00
Mark Andrews
7c89c5c574 second level switch was using the wrong variable 1999-01-19 04:31:30 +00:00
Mark Andrews
5d51e67c3b Initial "rdata" support. RFC 1035 RR types minus WKS
totext/fromtext should all work
	towire/fromwire mostly work
	tostruct/fromstruct return DNS_R_NOTIMPLEMENTED
	compare untested
1999-01-19 02:20:26 +00:00
Mark Andrews
bc6f28fa15 as_ulong now works. 1999-01-18 08:04:35 +00:00
Mark Andrews
f957caf971 PREPEND was #defined to the wrong macro causing the lexer to
break;
1999-01-18 02:54:32 +00:00
Bob Halley
95552051ab improve tabbing 1999-01-16 01:25:06 +00:00
Bob Halley
8d17f549f3 add comments 1999-01-16 01:24:10 +00:00
Bob Halley
3553422273 add namespace 1999-01-16 01:23:42 +00:00
Bob Halley
1edf93cbc2 a timer now uses the mctx of its task 1999-01-16 00:01:18 +00:00
Bob Halley
62305d91b2 allow owner_name to be empty 1999-01-15 20:00:43 +00:00
Bob Halley
54f959d12b implement basic totext 1999-01-15 19:36:07 +00:00
Bob Halley
884384ec4c improve comments 1999-01-15 19:35:49 +00:00
Bob Halley
078d49b633 rdataset valid moved to .h file 1999-01-15 08:07:09 +00:00
Bob Halley
f3a8ab700b cleanups, magic 1999-01-15 08:06:41 +00:00
Bob Halley
4dfd81d8c8 add missing includes 1999-01-15 08:05:50 +00:00
Bob Halley
ab2981e379 add rdatalist.c 1999-01-15 08:05:14 +00:00
Bob Halley
acb76c0ac3 add 1999-01-15 03:32:11 +00:00
Bob Halley
51957a9cb0 remove rdatalist 1999-01-15 03:31:58 +00:00
Bob Halley
1beb5e40b0 add DNS_R_NOMORE 1999-01-15 03:31:39 +00:00
Bob Halley
5619558151 add rdataset 1999-01-15 03:31:17 +00:00
Michael Graff
62a933c45b Do the include thing differnetly for private headers 1999-01-15 02:51:47 +00:00
Michael Graff
9c4ac30e29 quick fix... Grr. 1999-01-15 02:22:15 +00:00
Michael Graff
b3f39a108c move socket.c via copy 1999-01-15 02:16:45 +00:00
Bob Halley
eb5ae81b55 note 1999-01-15 02:14:55 +00:00
Bob Halley
bae7090755 Forgot to convert from manager->mctx to task->mctx in task_free(). 1999-01-14 20:18:31 +00:00
Bob Halley
6a50a5b6dc per task mctx 1999-01-14 20:03:54 +00:00
Bob Halley
aa3a328647 add DNS_R_NOTIMPLEMENTED 1999-01-14 19:53:10 +00:00
Bob Halley
c72a4d674d cleanups 1999-01-14 19:52:52 +00:00
Bob Halley
611163de84 minor cleanup 1999-01-13 19:32:32 +00:00
Bob Halley
a9179fca23 make linkable; add rdatalist; convert to buffers 1999-01-13 19:22:53 +00:00
Bob Halley
975922093c add list types 1999-01-13 19:18:00 +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
d57fd9900a add list field 1999-01-13 19:15:05 +00:00
Bob Halley
08dbab20ef lint 1999-01-09 02:39:39 +00:00
Bob Halley
5aa416c8bd lint; text region support 1999-01-09 02:39:19 +00:00
Bob Halley
be686734dd lint; use text regions 1999-01-09 02:39:05 +00:00
Bob Halley
fe32db090e fix isc_error_runtimecheck 1999-01-09 02:38:45 +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
9d1650c9fd minor updates; add dns_offsets_t, dns_signature_t, dns_namelist_t 1999-01-09 00:23:21 +00:00
Bob Halley
68109fb883 list macros now follow the naming convention 1999-01-09 00:20:27 +00:00
Bob Halley
63bd57250e add isc_buffer_getuint{16,32} 1999-01-07 02:06:48 +00:00
Bob Halley
4b1c5cc4ee add 1999-01-07 02:06:14 +00:00
Bob Halley
9192e92f7d check if compression type is allowed 1999-01-06 20:04:41 +00:00
Bob Halley
10c49cf1b5 add DNS_R_DISALLOWED 1999-01-06 20:04:08 +00:00
Bob Halley
2328307a8f use RUNTIME_CHECK instead of INSIST where appropriate 1999-01-06 20:02:52 +00:00
Bob Halley
da46905010 add RUNTIME_CHECK 1999-01-06 20:02:14 +00:00
Bob Halley
985687b4e0 add 1999-01-06 19:29:46 +00:00
Bob Halley
95c86af1e9 API changes (buffers); basic wire support 1999-01-06 05:41:20 +00:00
Bob Halley
77ca0b5793 API changes 1999-01-06 05:40:43 +00:00
Bob Halley
4880900113 remove generated files on distclean too 1999-01-06 05:39:52 +00:00
Bob Halley
5dee047038 new codes 1999-01-06 05:39:08 +00:00
Bob Halley
72c5d65bd2 new buffer representation changes; use FATAL_ERROR not INSIST(0) 1999-01-06 05:38:21 +00:00
Bob Halley
005df5aba5 change from current pointer to current offset, other improvements 1999-01-06 05:37:54 +00:00
Bob Halley
c23afd025e update copyright 1999-01-06 05:33:05 +00:00
Bob Halley
d386111bff case sensitive switch for symbol tables 1999-01-04 22:30:28 +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
Bob Halley
77e58a7e01 clean up and make more like name.h 1999-01-04 19:12:26 +00:00
Bob Halley
8afa9d1fcb fix text region typing 1999-01-02 21:20:03 +00:00
Bob Halley
903b7c030e add lex 1998-12-30 22:11:19 +00:00
Bob Halley
436db6667a convert ISC_R_TOOSMALL to ISC_R_NOSPACE 1998-12-30 20:18:09 +00:00
Bob Halley
af0fce400b add new codes 1998-12-30 20:17:41 +00:00
Bob Halley
dad8d67ed0 add isc_mem_strdup 1998-12-30 20:17:02 +00:00
Mark Andrews
566f721b3a dns_name_fromregion() now stops conversion after encountering a root label. 1998-12-21 13:45:03 +00:00
Bob Halley
7cfb2cec61 fix comment 1998-12-19 00:15:50 +00:00
Bob Halley
9695806934 Don't allow type 0 to be used in a define. 1998-12-19 00:15:19 +00:00
Bob Halley
a5e49e5f7e exists policy; module documentation 1998-12-19 00:14:33 +00:00
Bob Halley
95bcf47ff9 exists policy 1998-12-19 00:13:59 +00:00
Michael Graff
53d53f147b pull in <config.h> for possible alternate definition of inline 1998-12-18 22:20:02 +00:00
Michael Graff
dfd9b3fa62 Make this go on aa 1998-12-18 22:02:41 +00:00
Bob Halley
88580572f0 undefine action 1998-12-18 21:17:49 +00:00
Bob Halley
f058f96484 undefine action; assertions 1998-12-18 21:17:37 +00:00
Bob Halley
06c29e22e0 rwlock macros 1998-12-18 21:16:57 +00:00
Bob Halley
8dcce6f922 change memctx to mem 1998-12-18 19:14:37 +00:00
Bob Halley
4cafb28abc change memctx to mem; cleanups; fix debug trace problem 1998-12-18 19:14:09 +00:00
Bob Halley
b2df2dafcd add ISC_R_NOTFOUND 1998-12-18 19:12:36 +00:00
Bob Halley
7c9b885120 add symtab 1998-12-18 19:06:16 +00:00
Michael Graff
222b564ebb clean up memory leaks 1998-12-18 04:03:11 +00:00
Bob Halley
50f3977f4f nits 1998-12-18 02:28:27 +00:00
Bob Halley
8e93971d17 initialize all common event fields 1998-12-18 02:28:12 +00:00
Michael Graff
93e065e7a6 snapshot 1998-12-18 01:48:43 +00:00
Bob Halley
0ab04d76c8 conforming changes for task API revision 1998-12-16 02:05:38 +00:00
Bob Halley
835e240716 The lock must be held when calling SIGNAL 1998-12-16 02:04:43 +00:00
Bob Halley
131b0092c6 Improvements to the task shutdown process:
A shutdown event specification is no longer part of the
	isc_task_create() API.

	Multiple shutdown events can be requested with isc_task_onshutdown().
	Shutdown events are posted LIFO.

	The ability to send events can be enabled and disabled with
	isc_task_allowsend().

	Event actions return void; the only way to shutdown a task is to
	call isc_task_shutdown().

	There are no implicit event discards anymore.  (There is no need for
	them, since event actions cannot request immediate shutdown anymore.)
1998-12-16 02:02:10 +00:00
Bob Halley
8cfc44208a minor shutdown message improvement 1998-12-16 01:56:36 +00:00
Bob Halley
3ee2a218d7 add ISC_R_TASKNOSEND and ISC_R_TASKSHUTTINGDOWN 1998-12-16 01:55:53 +00:00
Bob Halley
fcedc0b54b cleanups; switch to dns_ types 1998-12-16 01:53:36 +00:00
Bob Halley
a7b6f58693 put bitlabels back 1998-12-16 01:52:41 +00:00
Bob Halley
28767ac23c cleanups; new rdata types 1998-12-16 01:51:31 +00:00
Bob Halley
c71f625e24 add DNS_R_UNKNOWN 1998-12-16 01:50:35 +00:00
Bob Halley
8952830c4a add rdata.h rdataclass.h rdatatype.h 1998-12-16 01:49:58 +00:00
Bob Halley
c6dcc4cc98 add 1998-12-16 01:48:44 +00:00
Bob Halley
3740b569ae the great type change 1998-12-13 23:45:21 +00:00
Bob Halley
1cef22510e convert to util.h; add magic 1998-12-13 02:04:56 +00:00
Bob Halley
a3002fd5a2 convert to util.h 1998-12-13 02:04:22 +00:00
Bob Halley
674dd7889b convert to util.h; only set magic if ok; forgot detach if mutex init fails 1998-12-13 02:03:46 +00:00
Bob Halley
00abfda448 convert to util.h; set magic only on success 1998-12-13 02:01:01 +00:00
Bob Halley
7a208a07a1 add 1998-12-13 02:00:01 +00:00
Bob Halley
1633838b82 update copyrights 1998-12-12 20:48:14 +00:00
Bob Halley
d25afd60ee include config.h 1998-12-12 19:25:20 +00:00
Bob Halley
f41f183f62 fix srcdir problems 1998-12-12 02:00:01 +00:00
Bob Halley
d0ad004424 simplify Makefiles 1998-12-12 01:35:38 +00:00
Bob Halley
863beba874 add .cvsignore files 1998-12-11 21:09:59 +00:00
Bob Halley
4504e5cc6e conforming changes 1998-12-11 20:47:40 +00:00
Bob Halley
2983bfafb7 get rid of rcsid 1998-12-11 20:47:28 +00:00
Bob Halley
8f8c3d34dd casts to eliminate sendto and memcpy warnings 1998-12-11 20:47:15 +00:00
Bob Halley
6792dd6d22 conforming changes for new pool 1998-12-11 20:38:46 +00:00
Bob Halley
2785477bd3 add version stamp 1998-12-11 20:26:40 +00:00
Bob Halley
a5d43b7241 BIND9 Pool Creation 1998-12-11 20:10:26 +00:00
Michael Graff
0c7244d352 added marks, and cleaned up from the review from Bob. Still more to do, but
this catches most of it.
1998-12-10 16:14:05 +00:00
Bob Halley
6476e07e0a fix blocking fd problem; fix unlock problem; other minor fixes 1998-12-05 01:44:38 +00:00
Bob Halley
577179503f move get_bit and set_bit; indicate where to convert from ASCII 1998-12-05 01:42:30 +00:00
Michael Graff
7251d77646 snapshot 1998-12-05 00:28:13 +00:00
Bob Halley
da4242bf62 replace unexpect.[ch] and fatal.[ch] with error.[ch] 1998-12-04 20:00:26 +00:00
Michael Graff
c2be3539e9 snapshot 1998-12-04 11:21:11 +00:00
Bob Halley
0ce364191e add missing includes 1998-12-04 03:30:23 +00:00
Bob Halley
c50fd34a4e add 1998-12-04 02:27:01 +00:00
Michael Graff
a0084eaa9f checkpoint 1998-12-01 23:59:39 +00:00
Michael Graff
e75eee3206 snapshot 1998-12-01 21:39:00 +00:00
Michael Graff
9de9ae0839 cleanup header file to list actual return codes, new entry conditions, etc 1998-12-01 17:58:34 +00:00
Michael Graff
97ed1e3750 clean up reference counts 1998-11-26 00:29:12 +00:00
Michael Graff
a21e2e7fea connect works; snapshot 1998-11-26 00:10:33 +00:00
Bob Halley
9df01daac3 update 1998-11-16 23:50:01 +00:00
Bob Halley
6a632f6968 add ISC_R_EXISTS 1998-11-16 23:49:08 +00:00
Bob Halley
3a6c3beafc update 1998-11-16 23:17:42 +00:00
Michael Graff
4095b36415 try to get the address put into the returned structure, but no go yet 1998-11-15 11:48:21 +00:00
Bob Halley
7861b13341 add comment 1998-11-14 02:51:26 +00:00
Bob Halley
5bef099303 include attribute.h 1998-11-14 02:49:29 +00:00
Bob Halley
e60efa407d change FIND to SEARCH 1998-11-14 02:41:06 +00:00
Bob Halley
18e5d28c86 add 1998-11-14 02:35:03 +00:00
Bob Halley
26ebe15d05 add magic 1998-11-12 23:30:58 +00:00
Bob Halley
4bba0ce1d3 clean up debugging, add magic 1998-11-12 23:30:46 +00:00
Bob Halley
994ba9c913 add write quota 1998-11-12 22:27:30 +00:00
Bob Halley
c8e7460242 add 1998-11-12 02:02:52 +00:00
Bob Halley
f671a5c51c add isc_mutex_trylock() 1998-11-11 19:03:08 +00:00
Bob Halley
903c1c35fc add ISC_R_LOCKBUSY 1998-11-11 19:02:52 +00:00
Bob Halley
b10b0bdf3f assume multithreaded unless ISC_SINGLETHREADED is defined 1998-11-11 19:02:24 +00:00
Michael Graff
8219cec0de fix queued write bug, and result status bug for immediate I/O 1998-11-11 02:05:36 +00:00
Michael Graff
28866ad778 handle manager->maxfd somewhat well -- it'll grow, but never shrink, yet. 1998-11-11 01:44:08 +00:00
Michael Graff
3d8e572880 writing works now, too. 1998-11-11 00:43:14 +00:00
Michael Graff
59b2e9c361 add ISC_R_TASKSHUTDOWN and use it in isc_task_send() 1998-11-10 20:57:32 +00:00
Michael Graff
a609982aa7 Small change to the isc_task_send() function: return ISC_R_SUCCESS if the
event was queued, return ISC_R_NORESOURCES if not.  The error return
needs to be something different.
1998-11-10 11:39:13 +00:00
Michael Graff
8871894f2d checkpoint. listen and read works, now. 1998-11-10 11:37:54 +00:00
Michael Graff
bb039bc91e snapshot 1998-11-10 01:56:44 +00:00
Michael Graff
91c21a94b8 checkpoint 1998-11-07 02:31:04 +00:00
Michael Graff
7f9e707684 checkpoint 1998-11-06 01:45:35 +00:00
Michael Graff
1edb223dd3 return the number of items purged 1998-11-06 01:44:44 +00:00
Michael Graff
f02c1d9431 define more return codes 1998-11-06 01:44:19 +00:00
Bob Halley
5741be0b80 add event destructor 1998-11-03 19:05:12 +00:00
Michael Graff
6d05b41aae Commit socket code so far -- nowhere near done, but I don't wanna loose work. 1998-11-03 00:54:47 +00:00
Michael Graff
35921f41cf Add ISC_R_NORESOURCES, and redo where and how the last entry is set 1998-11-03 00:53:42 +00:00
Bob Halley
7b5e3afd21 buffer.c 1998-10-29 02:01:29 +00:00
Bob Halley
928da6e9e3 add 1998-10-29 02:01:20 +00:00
Bob Halley
b32248301c the event action is now responsible for freeing the event memory 1998-10-28 01:45:43 +00:00
Bob Halley
b592e197fe update 1998-10-27 03:12:07 +00:00
Bob Halley
a2a072eb23 use proper isc result type 1998-10-26 23:08:23 +00:00
Bob Halley
4d6964d70a checkpoint 1998-10-26 23:07:57 +00:00
Bob Halley
3cddfdd299 add new results 1998-10-26 23:07:15 +00:00
Bob Halley
ab774d16c4 get rid of now-unneeded time.h 1998-10-24 01:06:59 +00:00
Bob Halley
d3239a41d1 eliminate detach 1998-10-23 23:51:09 +00:00
Bob Halley
7c93964aaf use isc_thread_join() to wait for workers to exit 1998-10-23 23:50:15 +00:00
Bob Halley
b07a162e29 type changes for _beginthreadex 1998-10-23 23:02:01 +00:00
Bob Halley
4bed2e84a3 opaque isc_time_t; add isc_interval_t; UNIX-specific conversions 1998-10-23 23:01:41 +00:00
Bob Halley
49bcef9c9c opaque isc_time_t 1998-10-23 23:01:12 +00:00
Bob Halley
db1e643c60 isc_interval_t conversion 1998-10-23 23:00:40 +00:00
Bob Halley
5cc3e0c38f opaque isc_time_t; add isc_interval_t; conditional WINAPI for run() 1998-10-23 22:59:44 +00:00
Bob Halley
3ce87f4ed9 conditional WINAPI for run() 1998-10-23 22:59:02 +00:00
Bob Halley
1eda5e1a7c switch to _beginthreadex; close thread handle after join 1998-10-23 18:24:18 +00:00
Bob Halley
ce1e4ac907 clean up; add warnings about use of signal and broadcast 1998-10-23 18:22:22 +00:00
Bob Halley
9fbefe0ace convert back to UNIX text format 1998-10-23 06:02:07 +00:00
Bob Halley
0fc87fa2f3 add 1998-10-23 05:45:44 +00:00
Bob Halley
6052dab738 update 1998-10-23 05:45:26 +00:00
Bob Halley
06bb37d18e need string.h to get memcpy prototype 1998-10-23 05:44:59 +00:00
Bob Halley
42e562f5e3 revise join; add arg and result types 1998-10-23 05:44:27 +00:00
Bob Halley
f191e3b4e8 Switch from BROADCAST to SIGNAL in many cases; hold lock while doing either. 1998-10-22 19:23:26 +00:00
Bob Halley
0bbadb0a2f portability 1998-10-22 01:59:50 +00:00
Bob Halley
bf6d2e3912 more renaming 1998-10-22 01:33:20 +00:00
Bob Halley
de9282a1ea rename memcluster 1998-10-21 22:01:08 +00:00
Bob Halley
c92ba07101 more renaming 1998-10-21 02:26:57 +00:00
Bob Halley
5f74ac33a0 more renaming 1998-10-21 01:57:35 +00:00
Bob Halley
35815e1e2a more namespace cleanups 1998-10-21 01:16:18 +00:00
Bob Halley
f47bb8d1f3 many name conversions 1998-10-21 01:13:50 +00:00
Bob Halley
8b935d4a13 add 1998-10-21 01:08:12 +00:00
Bob Halley
0c7c25a1c6 checkpoint 1998-10-20 00:52:19 +00:00
Bob Halley
b07f8da9cd eliminate timer_shutdown; add purging option to timer_reset 1998-10-16 23:57:51 +00:00
Bob Halley
258c9ab88d had it right the first time 1998-10-16 22:21:21 +00:00
Bob Halley
21eb2ca7bc more complete fix for typo 1998-10-16 22:15:23 +00:00
Bob Halley
1b36197e73 fix typo 1998-10-16 22:14:47 +00:00
Bob Halley
a942d47f84 get rid of portability problem in condition variables 1998-10-16 22:09:09 +00:00
Bob Halley
9c018a718a move sooner and set_index further down 1998-10-16 21:54:53 +00:00
Bob Halley
c09dae9683 clean up tracing 1998-10-16 21:53:23 +00:00
Bob Halley
918bae0f4b update 1998-10-16 21:41:30 +00:00
Bob Halley
a75f433c83 udpate 1998-10-16 20:20:31 +00:00
Bob Halley
225c880310 checkpoint (working) 1998-10-16 19:56:56 +00:00
Bob Halley
5291519dba checkpoint 1998-10-16 18:46:38 +00:00
Bob Halley
38b612afe1 checkpoint 1998-10-16 07:44:20 +00:00
Bob Halley
82ebb6cf50 update 1998-10-16 01:54:25 +00:00
Bob Halley
b0f24684b3 checkpoint 1998-10-16 01:54:04 +00:00
Bob Halley
2985234619 checkpoint 1998-10-16 01:18:31 +00:00
Bob Halley
00c6365ade checkpoint 1998-10-15 23:51:14 +00:00
Bob Halley
7bae6a079b add 1998-10-15 23:42:56 +00:00
Bob Halley
4c7d0f3c38 add 1998-10-15 22:22:50 +00:00
Bob Halley
94e25967cd add 1998-10-15 01:20:28 +00:00
Bob Halley
fda0ab6a96 add result 1998-10-14 22:35:04 +00:00
Bob Halley
18cc70d001 move some includes from task.h to task.c 1998-10-14 18:56:13 +00:00
Bob Halley
c1735aa89b cleanup 1998-10-14 01:41:55 +00:00
Bob Halley
232548d5d7 add event purging 1998-10-13 20:22:22 +00:00
Bob Halley
8f9001ec65 remove one more remnant 1998-09-16 21:41:10 +00:00
Bob Halley
b3b43bcc22 remove range code; implement mem_context_destroy more completely 1998-09-16 21:38:08 +00:00
Bob Halley
f15356f883 remove now-useless remnant of an earlier revision 1998-09-16 21:35:32 +00:00
Bob Halley
2acf552661 update 1998-08-20 22:21:35 +00:00
Bob Halley
d740c17c9c cleanups 1998-08-20 20:48:09 +00:00
Bob Halley
26d7020e2e update 1998-08-19 23:36:12 +00:00
Bob Halley
94123b5120 checkpoint 1998-08-19 21:46:15 +00:00
Bob Halley
dcd83f0e1c update 1998-08-19 01:38:06 +00:00
Bob Halley
50f339a799 update 1998-08-18 19:28:30 +00:00
Bob Halley
d6da3b9e10 update 1998-08-18 08:05:45 +00:00
Bob Halley
e7b7e6e746 checkpoint 1998-08-18 00:47:55 +00:00
Bob Halley
9a4ce0c258 add 1998-08-18 00:37:02 +00:00
Bob Halley
138d22b316 update 1998-08-18 00:34:54 +00:00
Bob Halley
0dbe3d9c27 checkpoint 1998-08-18 00:29:57 +00:00
Bob Halley
3a6202f163 checkpoint 1998-08-17 23:15:50 +00:00
Bob Halley
7ee52cc7d1 base 1998-08-17 22:05:58 +00:00