Commit Graph
5353 Commits
Author SHA1 Message Date
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 0d73b3fffe test the data deleter callback by making the data pointer for each node be
dynamic memory.

have 'search' print the name stored at the node's data pointer.
1999-01-31 16:45:48 +00:00
Michael Graff e5e8a126ab make tcp queries (where the output is slightly offset from the start
of the buffer, for length of tcp packet) work again.
1999-01-31 12:58:16 +00:00
Michael Graff 51c0bc9e3d Actually answers queries! 1999-01-31 12:31:31 +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 fbcd8c7a5c delete does not now do recursive deletion.
new function nuke does what delete did.

fixed up some changed interfaces to the dns_rbt library.
1999-01-31 00:54:14 +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 8507d64d0c use isc_uint32_t and unsigned int for u_int32_t and u_int 1999-01-30 03:09:28 +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 1ca02d14e4 Misc additions for the parser stuff. 1999-01-30 01:00:49 +00:00
James Brister e6ad73aba4 Added calls to parser routines (ifdef'd out for now). 1999-01-30 01:00:20 +00:00
James Brister 4182ae60b0 Added ISC_R_INVALIDFILE 1999-01-30 00:54:32 +00:00
James Brister b110b1bc30 Misc changes. 1999-01-30 00:53:56 +00:00
James Brister 915440a0d0 Files for the config file parsing. 1999-01-30 00:50:10 +00:00
Michael Graff f5375f2b93 u_long u_long; -> unsigned long ulong; 1999-01-30 00:29:31 +00:00
Bob Halley a2f5b51dff allow type and zone to be specified 1999-01-29 23:36:41 +00:00
Bob Halley 22c4f0162f look for and print ns rdatasets 1999-01-29 22:21:35 +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 7c0eb86a80 checkpoint 1999-01-29 07:05:09 +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
Michael Graff 60cfce122f Code up a dispatch() function which will just return server failure for now.
This makes dig work, and shows that we can actually transmit as well
as receive.  Both UDP and TCP connections work, with the restriction
that a full message must be contained in each TCP write, not split across
two seperate tcp 'packets'.
1999-01-29 06:18:43 +00:00
Bob Halley e535faecc7 add db_test 1999-01-28 23:53:36 +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
James Brister 1453fd8dde Files supportting the zoneinfo structure. 1999-01-28 17:18:09 +00:00
Bob Halley 01cc5813ca reflect latest lexer changes 1999-01-28 08:51:53 +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
Michael Graff 7f4db15e68 add tcp client support 1999-01-28 05:52:20 +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