|
unbound 0.1
|
A mesh query state Unique per qname, qtype, qclass (from the qstate). More...
#include <mesh.h>
Public Types | |
| enum | mesh_list_select { mesh_no_list , mesh_forever_list , mesh_jostle_list } |
| if this state is in the forever list, jostle list, or neither | |
Data Fields | |
| rbnode_type | node |
| node in mesh_area all tree, key is this struct. | |
| rbnode_type | run_node |
| node in mesh_area runnable tree, key is this struct | |
| struct module_qstate | s |
| the query state. | |
| struct mesh_reply * | reply_list |
| the list of replies to clients for the results | |
| int | has_first_reply_time |
| if it has a first reply time | |
| struct timeval | first_reply_time |
| wall-clock time the first client reply was attached; used by mesh_make_new_space() so duplicate retransmits cannot reset jostle aging. | |
| struct mesh_cb * | cb_list |
| the list of callbacks for the results | |
| rbtree_type | super_set |
| set of superstates (that want this state's result) contains struct mesh_state_ref* | |
| rbtree_type | sub_set |
| set of substates (that this state needs to continue) contains struct mesh_state_ref* | |
| size_t | num_activated |
| number of activations for the mesh state | |
| struct mesh_state * | prev |
| previous in linked list for reply states | |
| struct mesh_state * | next |
| next in linked list for reply states | |
| enum mesh_state::mesh_list_select | list_select |
| struct mesh_state * | unique |
| pointer to this state for uniqueness or NULL | |
| uint8_t | replies_sent |
| true if replies have been sent out (at end for alignment) | |
A mesh query state Unique per qname, qtype, qclass (from the qstate).
And RD / CD flag; in case a client turns it off. And priming queries are different from ordinary queries (because of hints).
The entire structure is allocated in a region, this region is the qstate region. All parts (rbtree nodes etc) are also allocated in the region.
| rbnode_type mesh_state::node |
node in mesh_area all tree, key is this struct.
Must be first.
Referenced by mesh_area_find(), mesh_area_find_unique(), mesh_new_callback(), mesh_new_client(), and mesh_state_create().
| rbnode_type mesh_state::run_node |
node in mesh_area runnable tree, key is this struct
Referenced by mesh_state_create(), and mesh_walk_supers().
| struct module_qstate mesh_state::s |
the query state.
Note that the qinfo and query_flags may not change.
Referenced by do_dump_requestlist(), get_mesh_status(), mesh_area_find(), mesh_area_find_unique(), mesh_continue(), mesh_delete_helper(), mesh_do_callback(), mesh_get_mem(), mesh_log_list(), mesh_make_new_space(), mesh_new_callback(), mesh_new_client(), mesh_query_done(), mesh_remove_callback(), mesh_respond_serve_expired(), mesh_run(), mesh_send_reply(), mesh_serve_expired_callback(), mesh_serve_expired_init(), mesh_state_add_cb(), mesh_state_add_reply(), mesh_state_attachment(), mesh_state_cleanup(), mesh_state_compare(), mesh_state_create(), mesh_state_delete(), and mesh_walk_supers().
| struct mesh_reply* mesh_state::reply_list |
the list of replies to clients for the results
Referenced by get_mesh_age(), log_rpz_apply(), mesh_attach_sub(), mesh_continue(), mesh_detach_subs(), mesh_log_list(), mesh_new_callback(), mesh_new_client(), mesh_query_done(), mesh_remove_reply_without_accounting(), mesh_reply_list_pop_first(), mesh_serve_expired_callback(), mesh_state_add_reply(), mesh_state_create(), mesh_state_delete(), mesh_state_remove_reply(), and outnet_serviced_query().
| int mesh_state::has_first_reply_time |
if it has a first reply time
Referenced by mesh_make_new_space(), and mesh_state_add_reply().
| struct timeval mesh_state::first_reply_time |
wall-clock time the first client reply was attached; used by mesh_make_new_space() so duplicate retransmits cannot reset jostle aging.
Referenced by mesh_make_new_space(), and mesh_state_add_reply().
| struct mesh_cb* mesh_state::cb_list |
the list of callbacks for the results
Referenced by mesh_attach_sub(), mesh_detach_subs(), mesh_log_list(), mesh_new_callback(), mesh_new_client(), mesh_query_done(), mesh_remove_callback_without_accounting(), mesh_serve_expired_callback(), mesh_state_add_cb(), mesh_state_cleanup(), mesh_state_del_cb(), mesh_state_delete(), and mesh_state_remove_reply().
| rbtree_type mesh_state::super_set |
set of superstates (that want this state's result) contains struct mesh_state_ref*
Referenced by mesh_attach_sub(), mesh_detach_subs(), mesh_log_list(), mesh_make_new_space(), mesh_new_callback(), mesh_new_client(), mesh_query_done(), mesh_run(), mesh_serve_expired_callback(), mesh_state_attachment(), mesh_state_create(), mesh_state_delete(), mesh_state_remove_reply(), and mesh_walk_supers().
| rbtree_type mesh_state::sub_set |
set of substates (that this state needs to continue) contains struct mesh_state_ref*
Referenced by find_in_subsub(), get_mesh_status(), mesh_continue(), mesh_detach_subs(), mesh_log_list(), mesh_state_attachment(), mesh_state_create(), and mesh_state_delete().
| size_t mesh_state::num_activated |
number of activations for the mesh state
Referenced by mesh_continue(), and mesh_state_create().
| struct mesh_state* mesh_state::prev |
previous in linked list for reply states
Referenced by mesh_list_insert(), and mesh_list_remove().
| struct mesh_state* mesh_state::next |
next in linked list for reply states
Referenced by mesh_list_insert(), and mesh_list_remove().
| struct mesh_state* mesh_state::unique |
pointer to this state for uniqueness or NULL
Referenced by mesh_area_find(), mesh_area_find_unique(), mesh_new_callback(), mesh_new_client(), mesh_state_compare(), mesh_state_create(), and mesh_state_make_unique().
| uint8_t mesh_state::replies_sent |
true if replies have been sent out (at end for alignment)
Referenced by mesh_query_done(), mesh_state_cleanup(), and mesh_state_create().