mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
add RBTDB wild bit
This commit is contained in:
parent
87a5360e27
commit
593d951248
@ -37,9 +37,9 @@ ISC_LANG_BEGINDECLS
|
|||||||
|
|
||||||
typedef struct dns_rbt dns_rbt_t;
|
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
|
#define DNS_RBT_REFLENGTH 20
|
||||||
|
|
||||||
typedef struct dns_rbtnode {
|
typedef struct dns_rbtnode {
|
||||||
@ -70,6 +70,7 @@ typedef struct dns_rbtnode {
|
|||||||
*/
|
*/
|
||||||
void *data;
|
void *data;
|
||||||
unsigned int dirty:1;
|
unsigned int dirty:1;
|
||||||
|
unsigned int wild:1;
|
||||||
unsigned int locknum:DNS_RBT_LOCKLENGTH;
|
unsigned int locknum:DNS_RBT_LOCKLENGTH;
|
||||||
unsigned int references:DNS_RBT_REFLENGTH;
|
unsigned int references:DNS_RBT_REFLENGTH;
|
||||||
} dns_rbtnode_t;
|
} dns_rbtnode_t;
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* 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 */
|
/* Principal Authors: DCL */
|
||||||
|
|
||||||
@ -72,6 +72,7 @@ struct dns_rbt {
|
|||||||
* used as part of the rbt.c algorithms.
|
* used as part of the rbt.c algorithms.
|
||||||
*/
|
*/
|
||||||
#define DIRTY(node) ((node)->dirty)
|
#define DIRTY(node) ((node)->dirty)
|
||||||
|
#define WILD(node) ((node)->wild)
|
||||||
#define LOCK(node) ((node)->locknum)
|
#define LOCK(node) ((node)->locknum)
|
||||||
#define REFS(node) ((node)->references)
|
#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;
|
LOCK(node) = 0;
|
||||||
REFS(node) = 0;
|
REFS(node) = 0;
|
||||||
DIRTY(node) = 0;
|
DIRTY(node) = 0;
|
||||||
|
WILD(node) = 0;
|
||||||
|
|
||||||
MAKE_BLACK(node);
|
MAKE_BLACK(node);
|
||||||
CALLBACK(node) = 0;
|
CALLBACK(node) = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user