Electroneum
auth_transfer Struct Reference

#include <authzone.h>

Collaboration diagram for auth_transfer:

Public Attributes

struct workerworker
 
struct module_envenv
 
struct auth_chunkchunks_first
 
struct auth_chunkchunks_last
 
struct auth_mastermasters
 
struct auth_masterlookup_target
 
int lookup_aaaa
 
struct auth_masterscan_specific
 
struct auth_masterscan_target
 
struct auth_addrscan_addr
 
struct auth_mastermaster
 
int ixfr_fail
 
int on_ixfr
 
int got_xfr_serial
 
size_t rr_scan_num
 
int on_ixfr_is_axfr
 
uint32_t incoming_xfr_serial
 
uint16_t id
 
struct comm_pointcp
 

Detailed Description

The transfer task. Once done, make sure the nextprobe waiting task is running, whether done with failure or success. If failure, use shorter timeout for wait time.

Definition at line 339 of file authzone.h.

Member Data Documentation

◆ chunks_first

struct auth_chunk* auth_transfer::chunks_first

xfer data that has been transferred, the data is applied once the transfer has completed correctly

Definition at line 347 of file authzone.h.

◆ chunks_last

struct auth_chunk* auth_transfer::chunks_last

last element in chunks list (to append new data at the end)

Definition at line 349 of file authzone.h.

◆ cp

struct comm_point* auth_transfer::cp

the transfer (TCP) to the master. on the workers event base.

Definition at line 395 of file authzone.h.

◆ env

struct module_env* auth_transfer::env

Definition at line 343 of file authzone.h.

◆ got_xfr_serial

int auth_transfer::got_xfr_serial

did we detect the current AXFR/IXFR serial number yet, 0 not yet, 1 we saw the first, 2 we saw the second, 3 must be last SOA in xfr

Definition at line 382 of file authzone.h.

◆ id

uint16_t auth_transfer::id

dns id of AXFR query

Definition at line 392 of file authzone.h.

◆ incoming_xfr_serial

uint32_t auth_transfer::incoming_xfr_serial

the serial number for the current AXFR/IXFR incoming reply, for IXFR, the outermost SOA records serial

Definition at line 389 of file authzone.h.

◆ ixfr_fail

int auth_transfer::ixfr_fail

failed ixfr transfer, retry with axfr (to the current master), the IXFR was 'REFUSED', 'SERVFAIL', 'NOTIMPL' or the contents of the IXFR did not apply cleanly (out of sync, delete of nonexistent data or add of duplicate data). Flag is cleared once the retry with axfr is done.

Definition at line 377 of file authzone.h.

◆ lookup_aaaa

int auth_transfer::lookup_aaaa

are we looking up A or AAAA, first A, then AAAA (if ip6 enabled)

Definition at line 357 of file authzone.h.

◆ lookup_target

struct auth_master* auth_transfer::lookup_target

for the hostname lookups, which master is current

Definition at line 355 of file authzone.h.

◆ master

struct auth_master* auth_transfer::master

the zone transfer in progress (or NULL if in scan). It is from this master

Definition at line 370 of file authzone.h.

◆ masters

struct auth_master* auth_transfer::masters

list of upstream masters for this zone, from config

Definition at line 352 of file authzone.h.

◆ on_ixfr

int auth_transfer::on_ixfr

we are doing IXFR right now

Definition at line 379 of file authzone.h.

◆ on_ixfr_is_axfr

int auth_transfer::on_ixfr_is_axfr

we are doing an IXFR but we detected an AXFR contents

Definition at line 386 of file authzone.h.

◆ rr_scan_num

size_t auth_transfer::rr_scan_num

number of RRs scanned for AXFR/IXFR detection

Definition at line 384 of file authzone.h.

◆ scan_addr

struct auth_addr* auth_transfer::scan_addr

what address we are scanning for the master, or NULL if the master is in IP format itself

Definition at line 367 of file authzone.h.

◆ scan_specific

struct auth_master* auth_transfer::scan_specific

once notified, or the timeout has been reached. a scan starts. the scan specific target (notify source), or NULL if none

Definition at line 361 of file authzone.h.

◆ scan_target

struct auth_master* auth_transfer::scan_target

scan tries all the upstream masters. the scan current target. or NULL if not working on sequential scan

Definition at line 364 of file authzone.h.

◆ worker

struct worker* auth_transfer::worker

Definition at line 341 of file authzone.h.


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