Electroneum
local_zone Struct Reference

#include <localzone.h>

Collaboration diagram for local_zone:

Public Attributes

rbnode_type node
 
struct local_zoneparent
 
uint8_tname
 
size_t namelen
 
int namelabs
 
uint16_t dclass
 
lock_rw_type lock
 
enum localzone_type type
 
uint8_ttaglist
 
size_t taglen
 
struct rbtree_typeoverride_tree
 
struct regionalregion
 
rbtree_type data
 
struct ub_packed_rrset_keysoa
 

Detailed Description

Local zone. A locally served authoritative zone.

Definition at line 109 of file localzone.h.

Member Data Documentation

◆ data

rbtree_type local_zone::data

local data for this zone rbtree of struct local_data

Definition at line 146 of file localzone.h.

◆ dclass

uint16_t local_zone::dclass

the class of this zone. uses 'dclass' to not conflict with c++ keyword class.

Definition at line 123 of file localzone.h.

◆ lock

lock_rw_type local_zone::lock

lock on the data in the structure For the node, parent, name, namelen, namelabs, dclass, you need to also hold the zones_tree lock to change them (or to delete this zone)

Definition at line 129 of file localzone.h.

◆ name

uint8_t* local_zone::name

zone name, in uncompressed wireformat

Definition at line 116 of file localzone.h.

◆ namelabs

int local_zone::namelabs

number of labels in zone name

Definition at line 120 of file localzone.h.

◆ namelen

size_t local_zone::namelen

length of zone name

Definition at line 118 of file localzone.h.

◆ node

rbnode_type local_zone::node

rbtree node, key is name and class

Definition at line 111 of file localzone.h.

◆ override_tree

struct rbtree_type* local_zone::override_tree

netblock addr_tree with struct local_zone_override information or NULL if there are no override elements

Definition at line 139 of file localzone.h.

◆ parent

struct local_zone* local_zone::parent

parent zone, if any.

Definition at line 113 of file localzone.h.

◆ region

struct regional* local_zone::region

in this region the zone's data is allocated. the struct local_zone itself is malloced.

Definition at line 143 of file localzone.h.

◆ soa

struct ub_packed_rrset_key* local_zone::soa

if data contains zone apex SOA data, this is a ptr to it.

Definition at line 148 of file localzone.h.

◆ taglen

size_t local_zone::taglen

length of the taglist (in bytes)

Definition at line 136 of file localzone.h.

◆ taglist

uint8_t* local_zone::taglist

tag bitlist

Definition at line 134 of file localzone.h.

◆ type

enum localzone_type local_zone::type

how to process zone

Definition at line 132 of file localzone.h.


The documentation for this struct was generated from the following file: