Iterator forward zones structure. More...
#include <iter_fwd.h>
Data Fields | |
lock_rw_type | lock |
lock on the forwards tree. More... | |
rbtree_type * | tree |
Zones are stored in this tree. More... | |
Iterator forward zones structure.
lock_rw_type iter_forwards::lock |
lock on the forwards tree.
When grabbing both this lock and the anchors.lock, this lock is grabbed first. When grabbing both this lock and the hints.lock this lock is grabbed first.
Referenced by do_list_forwards(), forward_request(), forwards_add_stub_hole(), forwards_add_zone(), forwards_apply_cfg(), forwards_create(), forwards_delete(), forwards_delete_stub_hole(), forwards_delete_zone(), forwards_find(), forwards_get_mem(), forwards_lookup(), forwards_next_root(), iter_get_next_root(), iter_stub_fwd_no_cache(), and print_root_fwds().
rbtree_type* iter_forwards::tree |
Zones are stored in this tree.
Sort order is specially chosen. first sorted on qclass. Then on dname in nsec-like order, so that a lookup on class, name will return an exact match or the closest match which gives the ancestor needed. contents of type iter_forward_zone.
Referenced by do_list_forwards(), forwards_apply_cfg(), forwards_find(), forwards_get_mem(), forwards_insert_data(), forwards_lookup(), and fwd_init_parents().