|
unbound 0.1
|
Local zone. More...
#include <localzone.h>
Data Fields | |
| rbnode_type | node |
| rbtree node, key is name and class | |
| struct local_zone * | parent |
| parent zone, if any. | |
| 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. | |
| 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) | |
| enum localzone_type | type |
| how to process zone | |
| uint8_t * | taglist |
| tag bitlist | |
| size_t | taglen |
| length of the taglist (in bytes) | |
| struct rbtree_type * | override_tree |
| netblock addr_tree with struct local_zone_override information or NULL if there are no override elements | |
| struct regional * | region |
| in this region the zone's data is allocated. | |
| rbtree_type | data |
| local data for this zone rbtree of struct local_data | |
| struct ub_packed_rrset_key * | soa |
| if data contains zone apex SOA data, this is a ptr to it. | |
| struct ub_packed_rrset_key * | soa_negative |
| if data contains zone apex SOA data, this is a ptr to an artificial negative SOA rrset (TTL is the minimum of the TTL and the SOA.MINIMUM). | |
Local zone.
A locally served authoritative zone.
| rbnode_type local_zone::node |
rbtree node, key is name and class
Referenced by local_zone_create(), local_zones_add_zone(), local_zones_find(), local_zones_find_le(), local_zones_tags_lookup(), lz_enter_zone_dname(), lz_exists(), lz_init_parents(), and set_kiddo_parents().
| struct local_zone* local_zone::parent |
parent zone, if any.
Referenced by local_zone_create(), local_zones_add_zone(), local_zones_del_zone(), local_zones_tags_lookup(), and set_kiddo_parents().
| uint8_t* local_zone::name |
zone name, in uncompressed wireformat
Referenced by add_empty_default(), add_reverse_default(), do_list_local_zones(), local_data_answer(), local_zone_cmp(), local_zone_create(), local_zone_delete(), local_zone_enter_rr(), local_zones_add_zone(), local_zones_answer(), local_zones_del_data(), local_zones_find(), local_zones_find_le(), local_zones_lookup(), local_zones_tags_lookup(), lz_enter_rr_into_zone(), lz_enter_zone(), lz_exists(), lz_inform_print(), lz_setup_implicit(), rpz_callback_from_iterator_cname(), rpz_callback_from_worker_request(), rpz_find_zone(), and set_kiddo_parents().
| size_t local_zone::namelen |
length of zone name
Referenced by local_data_answer(), local_zone_create(), local_zone_get_mem(), local_zones_find(), local_zones_find_le(), local_zones_tags_lookup(), lz_exists(), and lz_setup_implicit().
| int local_zone::namelabs |
number of labels in zone name
Referenced by local_data_answer(), local_zone_cmp(), local_zone_create(), local_zones_find(), local_zones_find_le(), local_zones_tags_lookup(), lz_exists(), lz_find_create_node(), lz_setup_implicit(), and set_kiddo_parents().
| uint16_t local_zone::dclass |
the class of this zone.
uses 'dclass' to not conflict with c++ keyword class.
Referenced by get_rr_nameclass(), local_zone_cmp(), local_zone_create(), local_zones_add_zone(), local_zones_find(), local_zones_find_le(), local_zones_lookup(), local_zones_tags_lookup(), lz_enter_rr_into_zone(), lz_enter_zone(), lz_exists(), lz_setup_implicit(), rrstr_get_rr_content(), and set_kiddo_parents().
| lock_rw_type local_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 add_empty_default(), add_reverse_default(), do_list_local_data(), do_list_local_zones(), local_zone_create(), local_zone_delete(), local_zone_enter_defaults(), local_zone_get_mem(), local_zones_add_RR(), local_zones_add_zone(), local_zones_answer(), local_zones_del_data(), local_zones_del_zone(), lz_enter_override(), lz_enter_rr_str(), lz_enter_zone_dname(), lz_enter_zone_tag(), lz_enter_zones(), lz_setup_implicit(), perform_zone_add(), rpz_callback_from_iterator_cname(), rpz_callback_from_iterator_module(), rpz_callback_from_worker_request(), rpz_find_zone(), rpz_remove_local_zones_trigger(), set_kiddo_parents(), and ub_ctx_zone_add().
| enum localzone_type local_zone::type |
how to process zone
Referenced by do_list_local_zones(), local_zone_create(), local_zone_does_not_cover(), local_zone_enter_rr(), local_zone_str2type(), local_zones_answer(), local_zones_tags_lookup(), lz_enter_override(), lz_enter_rr_into_zone(), lz_enter_zone(), lz_inform_print(), lz_setup_implicit(), perform_zone_add(), rpz_callback_from_iterator_cname(), rpz_callback_from_worker_request(), rpz_remove_local_zones_trigger(), rrstr_get_rr_content(), and ub_ctx_zone_add().
| uint8_t* local_zone::taglist |
tag bitlist
Referenced by local_zone_delete(), local_zones_answer(), local_zones_tags_lookup(), lz_enter_zone_tag(), and rpz_callback_from_worker_request().
| size_t local_zone::taglen |
length of the taglist (in bytes)
Referenced by local_zone_get_mem(), local_zones_answer(), local_zones_tags_lookup(), lz_enter_zone_tag(), and rpz_callback_from_worker_request().
| struct rbtree_type* local_zone::override_tree |
netblock addr_tree with struct local_zone_override information or NULL if there are no override elements
Referenced by local_zones_answer(), and lz_enter_override().
| struct regional* local_zone::region |
in this region the zone's data is allocated.
the struct local_zone itself is malloced.
Referenced by local_zone_create(), local_zone_delete(), local_zone_enter_rr(), local_zone_get_mem(), lz_enter_override(), and lz_find_create_node().
| rbtree_type local_zone::data |
local data for this zone rbtree of struct local_data
Referenced by del_empty_term(), do_list_local_data(), local_data_answer(), local_zone_create(), local_zone_does_not_cover(), local_zone_find_data(), local_zone_out(), local_zones_swap_tree(), lz_find_create_node(), ub_ctx_data_add(), and ub_ctx_data_remove().
| struct ub_packed_rrset_key* local_zone::soa |
if data contains zone apex SOA data, this is a ptr to it.
Referenced by local_zones_del_data(), and local_zones_zone_answer().
| struct ub_packed_rrset_key* local_zone::soa_negative |
if data contains zone apex SOA data, this is a ptr to an artificial negative SOA rrset (TTL is the minimum of the TTL and the SOA.MINIMUM).
Referenced by local_zones_del_data(), and local_zones_zone_answer().