Commit 593d9512 authored by Bob Halley's avatar Bob Halley
Browse files

add RBTDB wild bit

parent 87a5360e
......@@ -37,9 +37,9 @@ ISC_LANG_BEGINDECLS
typedef struct dns_rbt dns_rbt_t;
/* These should add up to 31 */
/* These should add up to 30 */
#define DNS_RBT_LOCKLENGTH 11
#define DNS_RBT_LOCKLENGTH 10
#define DNS_RBT_REFLENGTH 20
typedef struct dns_rbtnode {
......@@ -70,6 +70,7 @@ typedef struct dns_rbtnode {
*/
void *data;
unsigned int dirty:1;
unsigned int wild:1;
unsigned int locknum:DNS_RBT_LOCKLENGTH;
unsigned int references:DNS_RBT_REFLENGTH;
} dns_rbtnode_t;
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: rbt.c,v 1.53 1999/05/07 12:13:25 tale Exp $ */
/* $Id: rbt.c,v 1.54 1999/08/12 07:47:21 halley Exp $ */
/* Principal Authors: DCL */
......@@ -72,6 +72,7 @@ struct dns_rbt {
* used as part of the rbt.c algorithms.
*/
#define DIRTY(node) ((node)->dirty)
#define WILD(node) ((node)->wild)
#define LOCK(node) ((node)->locknum)
#define REFS(node) ((node)->references)
......@@ -1225,6 +1226,7 @@ create_node(isc_mem_t *mctx, dns_name_t *name, dns_rbtnode_t **nodep) {
LOCK(node) = 0;
REFS(node) = 0;
DIRTY(node) = 0;
WILD(node) = 0;
MAKE_BLACK(node);
CALLBACK(node) = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment