~ubuntu-branches/ubuntu/oneiric/bind9/oneiric-updates

« back to all changes in this revision

Viewing changes to lib/dns/include/dns/rbt.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones, Internet Software Consortium, Inc, LaMont Jones
  • Date: 2009-11-30 21:07:58 UTC
  • mfrom: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: james.westby@ubuntu.com-20091130210758-3yyxniwz0dzzo3jw
Tags: 1:9.7.0.dfsg~b3-1
[Internet Software Consortium, Inc]

* 9.7.0b3

[LaMont Jones]

* Merge remote branch 'origin/master'
* soname changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * PERFORMANCE OF THIS SOFTWARE.
16
16
 */
17
17
 
18
 
/* $Id: rbt.h,v 1.76 2009/10/27 04:46:58 marka Exp $ */
 
18
/* $Id: rbt.h,v 1.77 2009/11/04 01:18:19 marka Exp $ */
19
19
 
20
20
#ifndef DNS_RBT_H
21
21
#define DNS_RBT_H 1
70
70
 * multiple dns_rbtnode structures will not work.
71
71
 */
72
72
typedef struct dns_rbtnode dns_rbtnode_t;
 
73
enum {
 
74
        DNS_RBT_NSEC_NORMAL=0,      /* in main tree */
 
75
        DNS_RBT_NSEC_HAS_NSEC=1,    /* also has node in nsec tree */
 
76
        DNS_RBT_NSEC_NSEC=2,        /* in nsec tree */
 
77
        DNS_RBT_NSEC_NSEC3=3        /* in nsec3 tree */
 
78
};
73
79
struct dns_rbtnode {
74
80
#if DNS_RBT_USEMAGIC
75
81
        unsigned int magic;
103
109
        unsigned int color : 1;         /*%< range is 0..1 */
104
110
        unsigned int find_callback : 1; /*%< range is 0..1 */
105
111
        unsigned int attributes : 3;    /*%< range is 0..2 */
106
 
        enum {
107
 
            DNS_RBT_NSEC_NORMAL=0,      /*      in main tree */
108
 
            DNS_RBT_NSEC_HAS_NSEC=1,    /*      also has node in nsec tree */
109
 
            DNS_RBT_NSEC_NSEC=2,        /*      in nsec tree */
110
 
            DNS_RBT_NSEC_NSEC3=3        /*      in nsec3 tree */
111
 
        } nsec : 2;                     /*%< range is 0..3 */
 
112
        unsigned int nsec : 2;          /*%< range is 0..3 */
112
113
        unsigned int namelen : 8;       /*%< range is 1..255 */
113
114
        unsigned int offsetlen : 8;     /*%< range is 1..128 */
114
115
        unsigned int oldnamelen : 8;    /*%< range is 1..255 */