|
unbound 0.1
|
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. | |
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.
| 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().
| 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().
| 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().
| struct timeval auth_transfer::start_time |
start time of the transfer
Referenced by auth_xfer_transfer_time_taken(), and xfr_transfer_init_fetch().
| struct auth_master* auth_transfer::masters |
list of upstream masters for this zone, from config
Referenced by auth_xfer_delete(), auth_xfer_get_mem(), auth_xfer_probe_udp_callback(), auth_xfr_pickup_config(), auth_zones_cfg(), probe_copy_masters_for_allow_notify(), xfr_masters_equal(), xfr_transfer_nextmaster(), xfr_transfer_start_list(), and xfr_transfer_start_lookups().
| struct auth_master* auth_transfer::lookup_target |
for the hostname lookups, which master is current
Referenced by auth_xfer_transfer_lookup_callback(), xfr_transfer_disown(), xfr_transfer_lookup_host(), xfr_transfer_move_to_next_lookup(), xfr_transfer_nexttarget_or_end(), and xfr_transfer_start_lookups().
| void* auth_transfer::lookup_unique_info |
for the lookup, the callback unique info
Referenced by xfr_transfer_disown(), and xfr_transfer_lookup_host().
| int auth_transfer::lookup_aaaa |
are we looking up A or AAAA, first A, then AAAA (if ip6 enabled)
Referenced by auth_xfer_transfer_lookup_callback(), xfr_transfer_disown(), xfr_transfer_lookup_host(), xfr_transfer_move_to_next_lookup(), and xfr_transfer_start_lookups().
| 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().
| 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().
| 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().
| struct auth_master* auth_transfer::master |
the zone transfer in progress (or NULL if in scan).
It is from this master
Referenced by apply_http(), auth_xfer_transfer_http_callback(), auth_xfer_transfer_tcp_callback(), auth_xfer_transfer_timer_callback(), check_xfer_packet(), http_parse_add_rr(), xfr_process_chunk_list(), xfr_transfer_init_fetch(), and xfr_transfer_nexttarget_or_end().
| 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().
| 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().
| int auth_transfer::on_ixfr |
we are doing IXFR right now
Referenced by auth_xfer_transfer_tcp_callback(), auth_xfer_transfer_timer_callback(), check_xfer_packet(), xfr_create_ixfr_packet(), xfr_process_chunk_list(), and xfr_transfer_init_fetch().
| 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().
| 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().
| 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().
| 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().
| uint16_t auth_transfer::id |
dns id of AXFR query
Referenced by check_xfer_packet(), and xfr_transfer_init_fetch().
| struct comm_point* auth_transfer::cp |
the transfer (TCP) to the master.
on the workers event base.
Referenced by auth_xfer_delete(), auth_xfer_get_mem(), auth_xfer_transfer_http_callback(), auth_xfer_transfer_tcp_callback(), auth_xfer_transfer_timer_callback(), xfr_transfer_disown(), and xfr_transfer_init_fetch().
| struct comm_timer* auth_transfer::timer |
timeout for the transfer.
on the workers event base.
Referenced by auth_xfer_delete(), auth_xfer_get_mem(), auth_xfer_transfer_http_callback(), auth_xfer_transfer_tcp_callback(), xfr_transfer_disown(), and xfr_transfer_init_fetch().