unbound 0.1
auth_zone Struct Reference

Auth zone. More...

#include <authzone.h>

Data Fields

rbnode_type node
 rbtree node, key is name and class
uint8_t * name
 zone name, in uncompressed wireformat
size_t namelen
 length of zone name
int namelabs
 number of labels in zone name
uint16_t dclass
 the class of this zone, in host byteorder.
lock_rw_type 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)
rbtree_type data
 auth data for this zone rbtree of struct auth_data
char * zonefile
 zonefile name (or NULL for no zonefile)
int fallback_enabled
 fallback to the internet on failure or ttl-expiry of auth zone
time_t soa_zone_acquired
 the time when zone was transferred from upstream
int zone_expired
 the zone has expired (enabled by the xfer worker), fallback happens if that option is enabled.
int zone_is_slave
 zone is a slave zone (it has masters)
char etag [128]
 store etag
int for_downstream
 for downstream: this zone answers queries towards the downstream clients
int for_upstream
 for upstream: this zone answers queries that unbound intends to send upstream.
int zonemd_check
 check ZONEMD records
int zonemd_reject_absence
 reject absence of ZONEMD records
struct rpz * rpz
 RPZ zones.
struct module_env * zonemd_callback_env
 store the env (worker thread specific) for the zonemd callbacks from the mesh with the results of the lookup, if nonNULL, some worker has already picked up the zonemd verification task and this worker does not have to do it as well.
uint16_t zonemd_callback_qtype
 for the zonemd callback, the type of data looked up
void * zonemd_callback_unique_info
 for the zonemd callback, the unique info
int zonemd_callback_perform_write
 if the zonemd callback should write to file
struct auth_chunk * perform_write_chunk_list
 chunklist to write for chunked transfer.
int zone_deleted
 zone has been deleted
struct auth_zone * delete_next
 deletelist pointer, unused normally except during delete
struct auth_zone * rpz_az_next
 next auth zone containing RPZ data, or NULL
struct auth_zone * rpz_az_prev
 previous auth zone containing RPZ data, or NULL
size_t max_transfer_size
 The maximum auth zone transfer size, in bytes.
int max_transfer_time
 The maximum auth zone transfer time taken, in msec.

Detailed Description

Auth zone.

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

Field Documentation

◆ node

◆ name

◆ namelen

◆ namelabs

◆ dclass

◆ lock

◆ data

◆ zonefile

◆ fallback_enabled

int auth_zone::fallback_enabled

◆ soa_zone_acquired

time_t auth_zone::soa_zone_acquired

the time when zone was transferred from upstream

Referenced by auth_zone_pickup_initial_zone(), do_auth_zone_reload(), do_list_auth_zones(), and xfr_process_chunk_list().

◆ zone_expired

int auth_zone::zone_expired

◆ zone_is_slave

int auth_zone::zone_is_slave

zone is a slave zone (it has masters)

Referenced by auth_zone_read_zonefile(), auth_zones_cfg(), az_parse_file(), fr_worker_auth_add(), and fr_worker_auth_cha().

◆ etag

char auth_zone::etag[128]

store etag

Referenced by apply_http(), and xfr_transfer_init_fetch().

◆ for_downstream

int auth_zone::for_downstream

for downstream: this zone answers queries towards the downstream clients

Referenced by auth_zones_cfg(), and auth_zones_downstream_answer().

◆ for_upstream

int auth_zone::for_upstream

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

Referenced by auth_zone_delegpt(), auth_zones_can_fallback(), auth_zones_cfg(), auth_zones_lookup(), and authtest_addzone().

◆ zonemd_check

◆ zonemd_reject_absence

int auth_zone::zonemd_reject_absence

reject absence of ZONEMD records

Referenced by auth_zone_verify_zonemd_with_key(), and auth_zones_cfg().

◆ rpz

◆ zonemd_callback_env

struct module_env* auth_zone::zonemd_callback_env

store the env (worker thread specific) for the zonemd callbacks from the mesh with the results of the lookup, if nonNULL, some worker has already picked up the zonemd verification task and this worker does not have to do it as well.

Referenced by auth_zonemd_dnskey_lookup_callback(), auth_zones_check_changes(), auth_zones_downstream_answer(), auth_zones_lookup(), fr_worker_auth_del(), xfr_process_chunk_list(), and zonemd_lookup_dnskey().

◆ zonemd_callback_qtype

uint16_t auth_zone::zonemd_callback_qtype

for the zonemd callback, the type of data looked up

Referenced by auth_zone_zonemd_stop_lookup(), auth_zonemd_dnskey_lookup_callback(), and zonemd_lookup_dnskey().

◆ zonemd_callback_unique_info

void* auth_zone::zonemd_callback_unique_info

for the zonemd callback, the unique info

Referenced by auth_zone_zonemd_stop_lookup(), and zonemd_lookup_dnskey().

◆ zonemd_callback_perform_write

int auth_zone::zonemd_callback_perform_write

if the zonemd callback should write to file

Referenced by auth_zonemd_dnskey_lookup_callback(), and xfr_process_chunk_list().

◆ perform_write_chunk_list

struct auth_chunk* auth_zone::perform_write_chunk_list

chunklist to write for chunked transfer.

Referenced by auth_zone_delete(), auth_zonemd_dnskey_lookup_callback(), and xfr_process_chunk_list().

◆ zone_deleted

int auth_zone::zone_deleted

◆ delete_next

struct auth_zone* auth_zone::delete_next

deletelist pointer, unused normally except during delete

Referenced by az_delete_deleted_zones().

◆ rpz_az_next

struct auth_zone* auth_zone::rpz_az_next

◆ rpz_az_prev

struct auth_zone* auth_zone::rpz_az_prev

previous auth zone containing RPZ data, or NULL

Referenced by auth_zone_create(), auth_zone_delete(), and auth_zones_cfg().

◆ max_transfer_size

size_t auth_zone::max_transfer_size

The maximum auth zone transfer size, in bytes.

Referenced by auth_xfer_new(), auth_zone_create(), and auth_zones_cfg().

◆ max_transfer_time

int auth_zone::max_transfer_time

The maximum auth zone transfer time taken, in msec.

Referenced by auth_xfer_new(), auth_zone_create(), and auth_zones_cfg().


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