From 593d951248f799e90d30bc69bb89342000b012cd Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Thu, 12 Aug 1999 07:47:21 +0000 Subject: [PATCH] add RBTDB wild bit --- lib/dns/include/dns/rbt.h | 5 +++-- lib/dns/rbt.c | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/dns/include/dns/rbt.h b/lib/dns/include/dns/rbt.h index d710c21fae..7a7097fc26 100644 --- a/lib/dns/include/dns/rbt.h +++ b/lib/dns/include/dns/rbt.h @@ -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; diff --git a/lib/dns/rbt.c b/lib/dns/rbt.c index 10a33af3d4..439a9b480a 100644 --- a/lib/dns/rbt.c +++ b/lib/dns/rbt.c @@ -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;