Commit Graph
4222 Commits
Author SHA1 Message Date
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
Bob Halley c8a42d6d81 add gen to clean rule 1999-01-30 01:40:16 +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
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
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 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