Electroneum
auth_zone Struct Reference

#include <authzone.h>

Collaboration diagram for auth_zone:

Public Attributes

rbnode_type node
 
uint8_tname
 
size_t namelen
 
int namelabs
 
uint16_t dclass
 
lock_rw_type lock
 
rbtree_type data
 
char * zonefile
 
int fallback_enabled
 
int zone_expired
 
int zone_is_slave
 
int for_downstream
 
int for_upstream
 
int zone_deleted
 
struct auth_zonedelete_next
 

Detailed Description

Auth zone. Authoritative data, that is fetched from instead of sending packets to the internet.

Definition at line 90 of file authzone.h.

Member Data Documentation

◆ data

rbtree_type auth_zone::data

auth data for this zone rbtree of struct auth_data

Definition at line 112 of file authzone.h.

◆ dclass

uint16_t auth_zone::dclass

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

Definition at line 102 of file authzone.h.

◆ delete_next

struct auth_zone* auth_zone::delete_next

deletelist pointer, unused normally except during delete

Definition at line 132 of file authzone.h.

◆ fallback_enabled

int auth_zone::fallback_enabled

fallback to the internet on failure or ttl-expiry of auth zone

Definition at line 117 of file authzone.h.

◆ for_downstream

int auth_zone::for_downstream

for downstream: this zone answers queries towards the downstream clients

Definition at line 125 of file authzone.h.

◆ for_upstream

int auth_zone::for_upstream

for upstream: this zone answers queries that unbound intends to send upstream.

Definition at line 128 of file authzone.h.

◆ lock

lock_rw_type auth_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 108 of file authzone.h.

◆ name

uint8_t* auth_zone::name

zone name, in uncompressed wireformat

Definition at line 95 of file authzone.h.

◆ namelabs

int auth_zone::namelabs

number of labels in zone name

Definition at line 99 of file authzone.h.

◆ namelen

size_t auth_zone::namelen

length of zone name

Definition at line 97 of file authzone.h.

◆ node

rbnode_type auth_zone::node

rbtree node, key is name and class

Definition at line 92 of file authzone.h.

◆ zone_deleted

int auth_zone::zone_deleted

zone has been deleted

Definition at line 130 of file authzone.h.

◆ zone_expired

int auth_zone::zone_expired

the zone has expired (enabled by the xfer worker), fallback happens if that option is enabled.

Definition at line 120 of file authzone.h.

◆ zone_is_slave

int auth_zone::zone_is_slave

zone is a slave zone (it has masters)

Definition at line 122 of file authzone.h.

◆ zonefile

char* auth_zone::zonefile

zonefile name (or NULL for no zonefile)

Definition at line 115 of file authzone.h.


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