Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
593d9512
Commit
593d9512
authored
Aug 12, 1999
by
Bob Halley
Browse files
add RBTDB wild bit
parent
87a5360e
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/dns/include/dns/rbt.h
View file @
593d9512
...
...
@@ -37,9 +37,9 @@ ISC_LANG_BEGINDECLS
typedef
struct
dns_rbt
dns_rbt_t
;
/* These should add up to 3
1
*/
/* These should add up to 3
0
*/
#define DNS_RBT_LOCKLENGTH 1
1
#define DNS_RBT_LOCKLENGTH 1
0
#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
;
...
...
lib/dns/rbt.c
View file @
593d9512
...
...
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: rbt.c,v 1.5
3
1999/0
5/07 12:13:25 tale
Exp $ */
/* $Id: rbt.c,v 1.5
4
1999/0
8/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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment