unbound 0.1
auth_transfer Struct Reference

The transfer task. More...

#include <authzone.h>

Data Fields

struct worker * worker
struct module_env * env
struct auth_chunk * chunks_first
 xfer data that has been transferred, the data is applied once the transfer has completed correctly
struct auth_chunk * chunks_last
 last element in chunks list (to append new data at the end)
size_t chunks_total
 running total of bytes held in chunks_first..chunks_last
struct timeval start_time
 start time of the transfer
struct auth_master * masters
 list of upstream masters for this zone, from config
struct auth_master * lookup_target
 for the hostname lookups, which master is current
void * lookup_unique_info
 for the lookup, the callback unique info
int lookup_aaaa
 are we looking up A or AAAA, first A, then AAAA (if ip6 enabled)
struct auth_master * scan_specific
 once notified, or the timeout has been reached.
struct auth_master * scan_target
 scan tries all the upstream masters.
struct auth_addr * scan_addr
 what address we are scanning for the master, or NULL if the master is in IP format itself
struct auth_master * master
 the zone transfer in progress (or NULL if in scan).
int 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).
int ixfr_possible_timeout_count
 we saw an ixfr-indicating timeout, count of them
int on_ixfr
 we are doing IXFR right now
int 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
size_t rr_scan_num
 number of RRs scanned for AXFR/IXFR detection
int on_ixfr_is_axfr
 we are doing an IXFR but we detected an AXFR contents
uint32_t incoming_xfr_serial
 the serial number for the current AXFR/IXFR incoming reply, for IXFR, the outermost SOA records serial
uint16_t id
 dns id of AXFR query
struct comm_point * cp
 the transfer (TCP) to the master.
struct comm_timer * timer
 timeout for the transfer.

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.

Field 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

Referenced by apply_http(), auth_chunks_delete(), auth_xfer_delete(), auth_xfer_get_mem(), chunk_rrlist_start(), http_zonefile_syntax_check(), xfer_link_data(), xfr_process_chunk_list(), and xfr_start_transfer().

◆ chunks_last

struct auth_chunk* auth_transfer::chunks_last

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

Referenced by auth_chunks_delete(), xfer_link_data(), and xfr_start_transfer().

◆ chunks_total

size_t auth_transfer::chunks_total

running total of bytes held in chunks_first..chunks_last

Referenced by auth_chunks_delete(), auth_xfer_transfer_http_callback(), auth_xfer_transfer_tcp_callback(), and xfer_link_data().

◆ start_time

struct timeval auth_transfer::start_time

start time of the transfer

Referenced by auth_xfer_transfer_time_taken(), and xfr_transfer_init_fetch().

◆ masters

◆ lookup_target

◆ lookup_unique_info

void* auth_transfer::lookup_unique_info

for the lookup, the callback unique info

Referenced by xfr_transfer_disown(), and xfr_transfer_lookup_host().

◆ lookup_aaaa

int auth_transfer::lookup_aaaa

◆ 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

Referenced by xfr_transfer_current_master(), xfr_transfer_end_of_list(), xfr_transfer_nextmaster(), and xfr_transfer_start_list().

◆ 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

Referenced by xfr_transfer_current_master(), xfr_transfer_end_of_list(), xfr_transfer_nextmaster(), and xfr_transfer_start_list().

◆ 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

Referenced by auth_xfer_transfer_lookup_callback(), xfr_transfer_init_fetch(), xfr_transfer_nextmaster(), xfr_transfer_start_list(), and xfr_transfer_start_lookups().

◆ master

◆ 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.

Referenced by auth_xfer_transfer_tcp_callback(), auth_xfer_transfer_timer_callback(), check_xfer_packet(), process_list_end_transfer(), and xfr_create_ixfr_packet().

◆ ixfr_possible_timeout_count

int auth_transfer::ixfr_possible_timeout_count

we saw an ixfr-indicating timeout, count of them

Referenced by auth_xfer_transfer_tcp_callback(), and auth_xfer_transfer_timer_callback().

◆ on_ixfr

◆ 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

Referenced by check_xfer_packet(), and xfr_create_ixfr_packet().

◆ rr_scan_num

size_t auth_transfer::rr_scan_num

number of RRs scanned for AXFR/IXFR detection

Referenced by check_xfer_packet(), and xfr_create_ixfr_packet().

◆ on_ixfr_is_axfr

int auth_transfer::on_ixfr_is_axfr

we are doing an IXFR but we detected an AXFR contents

Referenced by check_xfer_packet(), xfr_create_ixfr_packet(), and xfr_process_chunk_list().

◆ 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

Referenced by check_xfer_packet(), and xfr_create_ixfr_packet().

◆ id

uint16_t auth_transfer::id

dns id of AXFR query

Referenced by check_xfer_packet(), and xfr_transfer_init_fetch().

◆ cp

◆ timer

struct comm_timer* auth_transfer::timer

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