Commit graph

10345 commits

Author SHA1 Message Date
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