|
unbound 0.1
|
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. | |
Auth zone.
Authoritative data, that is fetched from instead of sending packets to the internet.
| rbnode_type auth_zone::node |
rbtree node, key is name and class
Referenced by auth_data_get_mem(), auth_zone_create(), auth_zone_find(), auth_zone_find_less_equal(), auth_zones_pickup_zonemd_verify(), az_delete_deleted_zones(), az_find_domain(), and az_find_name().
| uint8_t* auth_zone::name |
zone name, in uncompressed wireformat
Referenced by add_rrlist_rrsigs_into_data(), auth_xfer_new(), auth_zone_cmp(), auth_zone_create(), auth_zone_delegpt(), auth_zone_delete(), auth_zone_find(), auth_zone_find_less_equal(), auth_zone_generate_answer(), auth_zone_get_serial(), auth_zone_get_soa_rrset(), auth_zone_read_zonefile(), auth_zone_verify_zonemd(), auth_zone_verify_zonemd_key_with_ds(), auth_zone_verify_zonemd_with_key(), auth_zone_zonemd_check_hash(), auth_zone_zonemd_fail(), auth_zone_zonemd_stop_lookup(), auth_zonemd_dnskey_lookup_callback(), auth_zones_check_changes(), auth_zones_find_or_add_xfer(), auth_zones_find_or_add_zone(), auth_zones_find_zone(), auth_zones_pickup_zonemd_verify(), auth_zones_setup_zones(), authtest_addzone(), az_add_negative_soa(), az_delete_deleted_zones(), az_find_domain(), az_find_name(), az_find_wildcard(), az_insert_rr(), az_nsec3_hashname(), az_nsec3_param(), az_remove_rr(), check_queries(), check_read_exact(), do_list_auth_zones(), follow_cname_chain(), fr_pickup_auth_locks(), make_soa_ubrrset(), xfr_find_soa(), zone_write_after_update(), zonemd_check_dnssec_absence(), zonemd_check_dnssec_soazonemd(), zonemd_dnssec_verify_rrset(), zonemd_generate_test(), zonemd_get_dnskey_from_anchor(), zonemd_lookup_dnskey(), zonemd_simple_count_rrsig(), and zonemd_simple_domain().
| size_t auth_zone::namelen |
length of zone name
Referenced by auth_xfer_new(), auth_zone_create(), auth_zone_delegpt(), auth_zone_find(), auth_zone_find_less_equal(), auth_zone_generate_answer(), auth_zone_get_mem(), auth_zone_get_serial(), auth_zone_get_soa_rrset(), auth_zone_read_zonefile(), auth_zone_verify_zonemd(), auth_zone_verify_zonemd_key_with_ds(), auth_zone_verify_zonemd_with_key(), auth_zone_write_domain(), auth_zone_zonemd_check_hash(), auth_zone_zonemd_stop_lookup(), auth_zonemd_dnskey_lookup_callback(), auth_zones_check_changes(), auth_zones_find_or_add_xfer(), auth_zones_pickup_zonemd_verify(), auth_zones_setup_zones(), az_add_negative_soa(), az_delete_deleted_zones(), az_domain_go_up(), az_find_candidate_ce(), az_find_ce(), az_find_domain(), az_find_name(), az_find_nsec_cover(), az_find_wildcard(), az_generate_wildcard_answer(), az_insert_rr(), az_nsec3_find_ce(), az_nsec3_hashname(), az_nsec3_param(), az_remove_rr(), fr_pickup_auth_locks(), make_soa_ubrrset(), xfr_find_soa(), zonemd_check_dnssec_absence(), zonemd_get_dnskey_from_anchor(), and zonemd_lookup_dnskey().
| int auth_zone::namelabs |
number of labels in zone name
Referenced by auth_xfer_new(), auth_zone_cmp(), auth_zone_create(), auth_zone_delegpt(), auth_zone_find(), auth_zone_find_less_equal(), auth_zones_pickup_zonemd_verify(), az_find_domain(), and az_find_name().
| uint16_t auth_zone::dclass |
the class of this zone, in host byteorder.
uses 'dclass' to not conflict with c++ keyword class.
Referenced by add_synth_cname(), auth_packed_rrset_copy_region(), auth_xfer_new(), auth_zone_cmp(), auth_zone_create(), auth_zone_find(), auth_zone_find_less_equal(), auth_zone_verify_zonemd(), auth_zone_verify_zonemd_key_with_ds(), auth_zone_write_rrset(), auth_zone_zonemd_stop_lookup(), auth_zonemd_dnskey_lookup_callback(), auth_zones_can_fallback(), auth_zones_check_changes(), auth_zones_find_or_add_xfer(), auth_zones_find_zone(), auth_zones_pickup_zonemd_verify(), auth_zones_setup_zones(), az_delete_deleted_zones(), az_insert_rr(), az_remove_rr(), fr_pickup_auth_locks(), msg_add_rrset_an(), msg_add_rrset_ar(), msg_add_rrset_ns(), zonemd_dnssec_verify_rrset(), zonemd_get_dnskey_from_anchor(), zonemd_lookup_dnskey(), zonemd_simple_rrset(), and zonemd_simple_rrsig().
| 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)
Referenced by auth_xfer_pickup_initial(), auth_xfer_set_expired(), auth_zone_create(), auth_zone_delegpt(), auth_zone_delete(), auth_zonemd_dnskey_lookup_callback(), auth_zones_can_fallback(), auth_zones_cfg(), auth_zones_check_changes(), auth_zones_downstream_answer(), auth_zones_find_or_add_zone(), auth_zones_lookup(), auth_zones_pickup_zonemd_verify(), auth_zones_read_zones(), auth_zones_setup_zones(), authtest_addzone(), az_delete_deleted_zones(), az_setall_deleted(), az_ztree_get_mem(), do_auth_zone_reload(), do_list_auth_zones(), do_rpz_enable_disable(), fr_pickup_auth_locks(), fr_worker_auth_add(), fr_worker_auth_cha(), fr_worker_auth_del(), respip_rewrite_reply(), rpz_callback_from_iterator_cname(), rpz_callback_from_iterator_module(), rpz_callback_from_worker_request(), xfr_process_chunk_list(), xfr_transfer_init_fetch(), xfr_write_after_update(), zone_write_after_update_reacq(), zonemd_check_test(), zonemd_generate_test(), zonemd_lookup_dnskey(), and zonemd_verify_test().
| rbtree_type auth_zone::data |
auth data for this zone rbtree of struct auth_data
Referenced by auth_zone_clear_data(), auth_zone_create(), auth_zone_delete(), auth_zone_get_mem(), auth_zone_read_zonefile(), auth_zone_verify_zonemd(), auth_zone_write_file(), auth_zones_swap(), az_domain_create(), az_empty_nonterminal(), az_find_domain(), az_find_name(), az_insert_rr(), az_nsec3_find_cover(), az_remove_rr(), do_auth_zone_reload(), and zonemd_simple_collate().
| char* auth_zone::zonefile |
zonefile name (or NULL for no zonefile)
Referenced by auth_zone_delete(), auth_zone_get_mem(), auth_zone_read_zonefile(), auth_zone_set_zonefile(), auth_zones_read_zones(), zone_write_after_update(), and zonemd_generate_test().
| int auth_zone::fallback_enabled |
fallback to the internet on failure or ttl-expiry of auth zone
Referenced by auth_zone_delegpt(), auth_zone_generate_answer(), auth_zone_set_fallback(), auth_zones_can_fallback(), auth_zones_cfg(), auth_zones_downstream_answer(), auth_zones_lookup(), and zonemd_lookup_dnskey().
| 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().
| int auth_zone::zone_expired |
the zone has expired (enabled by the xfer worker), fallback happens if that option is enabled.
Referenced by auth_xfer_set_expired(), auth_zone_zonemd_fail(), auth_zonemd_dnskey_lookup_callback(), auth_zones_downstream_answer(), auth_zones_lookup(), do_auth_zone_reload(), do_list_auth_zones(), xfr_process_chunk_list(), and zonemd_verify_test().
| 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().
| char auth_zone::etag[128] |
store etag
Referenced by apply_http(), and xfr_transfer_init_fetch().
| 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().
| 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().
| int auth_zone::zonemd_check |
check ZONEMD records
Referenced by auth_zone_verify_zonemd(), auth_zones_cfg(), auth_zones_downstream_answer(), auth_zones_lookup(), auth_zones_pickup_zonemd_verify(), xfr_process_chunk_list(), zonemd_check_test(), zonemd_generate_test(), zonemd_offline_verify(), and zonemd_verify_test().
| int auth_zone::zonemd_reject_absence |
reject absence of ZONEMD records
Referenced by auth_zone_verify_zonemd_with_key(), and auth_zones_cfg().
| struct rpz* auth_zone::rpz |
RPZ zones.
Referenced by auth_xfer_setup(), auth_zone_clear_data(), auth_zone_delete(), auth_zone_get_mem(), auth_zone_read_zonefile(), auth_zones_cfg(), az_insert_rr(), az_remove_rr(), do_rpz_enable_disable(), respip_rewrite_reply(), rpz_callback_from_iterator_cname(), rpz_callback_from_iterator_module(), and xfr_process_chunk_list().
| 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().
| 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().
| 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().
| 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().
| 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().
| int auth_zone::zone_deleted |
zone has been deleted
Referenced by auth_zonemd_dnskey_lookup_callback(), auth_zones_cfg(), az_delete_deleted_zones(), and az_setall_deleted().
| struct auth_zone* auth_zone::delete_next |
deletelist pointer, unused normally except during delete
Referenced by az_delete_deleted_zones().
| struct auth_zone* auth_zone::rpz_az_next |
next auth zone containing RPZ data, or NULL
Referenced by auth_zone_create(), auth_zone_delete(), auth_zones_cfg(), respip_rewrite_reply(), rpz_callback_from_iterator_cname(), and rpz_callback_from_iterator_module().
| 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().
| 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().
| 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().