unbound 0.1
mesh_area Struct Reference

Mesh of query states. More...

#include <mesh.h>

Data Fields

struct module_stack mods
 active module stack
struct module_env * env
 environment for new states
rbtree_type run
 set of runnable queries (mesh_state.run_node)
rbtree_type all
 rbtree of all current queries (mesh_state.node)
size_t num_query_authzone_up
 number of queries for unbound's auth_zones, upstream query
size_t num_query_authzone_down
 number of queries for unbound's auth_zones, downstream answers
size_t num_reply_addrs
 count of the total number of mesh_reply entries
size_t num_reply_states
 count of the number of mesh_states that have mesh_replies Because a state can send results to multiple reply addresses, this number must be equal or lower than num_reply_addrs.
size_t num_detached_states
 number of mesh_states that have no mesh_replies, and also an empty set of super-states, thus are 'toplevel' or detached internal opportunistic queries
size_t num_forever_states
 number of reply states in the forever list
size_t max_reply_states
 max total number of reply states to have
size_t max_forever_states
 max forever number of reply states to have
size_t stats_jostled
 stats, cumulative number of reply states jostled out
size_t stats_dropped
 stats, cumulative number of incoming client msgs dropped
size_t ans_expired
 stats, number of expired replies sent
size_t ans_cachedb
 stats, number of cached replies from cachedb
size_t replies_sent
 number of replies sent
struct timeval replies_sum_wait
 sum of waiting times for the replies
struct timehist * histogram
 histogram of time values
size_t ans_secure
 (extended stats) secure replies
size_t ans_bogus
 (extended stats) bogus replies
size_t val_ops
 (extended stats) number of validation operations
size_t ans_rcode [UB_STATS_RCODE_NUM]
 (extended stats) rcodes in replies
size_t ans_nodata
 (extended stats) rcode nodata in replies
size_t rpz_action [UB_STATS_RPZ_ACTION_NUM]
 (extended stats) type of applied RPZ action
size_t num_queries_discard_timeout
 stats, number of queries removed due to discard-timeout
size_t num_queries_replyaddr_limit
 stats, number of queries removed due to replyaddr limit
size_t num_queries_wait_limit
 stats, number of queries removed due to wait-limit
size_t num_dns_error_reports
 stats, number of dns error reports generated
struct sldns_buffer * qbuf_bak
 backup of query if other operations recurse and need the network buffers
struct mesh_state * forever_first
 double linked list of the run-to-completion query states.
struct mesh_state * forever_last
 last entry in run forever list
struct mesh_state * jostle_first
 double linked list of the query states that can be jostled out by new queries if too old.
struct mesh_state * jostle_last
 last entry in jostle list - this is the entry that is newest
struct timeval jostle_max
 timeout for jostling.
int use_response_ip
 If we need to use response ip (value passed from daemon).
int use_rpz
 If we need to use RPZ (value passed from daemon).

Detailed Description

Mesh of query states.

Field Documentation

◆ mods

◆ env

◆ run

◆ all

◆ num_query_authzone_up

size_t mesh_area::num_query_authzone_up

number of queries for unbound's auth_zones, upstream query

Referenced by mesh_stats_clear(), processQueryTargets(), and server_stats_compile().

◆ num_query_authzone_down

size_t mesh_area::num_query_authzone_down

number of queries for unbound's auth_zones, downstream answers

Referenced by auth_zones_downstream_answer(), mesh_stats_clear(), and server_stats_compile().

◆ num_reply_addrs

◆ num_reply_states

size_t mesh_area::num_reply_states

count of the number of mesh_states that have mesh_replies Because a state can send results to multiple reply addresses, this number must be equal or lower than num_reply_addrs.

Referenced by mesh_create(), mesh_delete_all(), mesh_detach_subs(), mesh_make_new_space(), mesh_new_callback(), mesh_new_client(), mesh_query_done(), mesh_remove_callback(), mesh_serve_expired_callback(), mesh_state_delete(), mesh_state_remove_reply(), mesh_stats(), and server_stats_compile().

◆ num_detached_states

size_t mesh_area::num_detached_states

number of mesh_states that have no mesh_replies, and also an empty set of super-states, thus are 'toplevel' or detached internal opportunistic queries

Referenced by mesh_add_sub(), mesh_attach_sub(), mesh_create(), mesh_delete_all(), mesh_detach_subs(), mesh_new_callback(), mesh_new_client(), mesh_query_done(), mesh_remove_callback(), mesh_serve_expired_callback(), mesh_state_delete(), mesh_state_remove_reply(), and mesh_stats().

◆ num_forever_states

size_t mesh_area::num_forever_states

number of reply states in the forever list

Referenced by mesh_create(), mesh_delete_all(), mesh_new_client(), and mesh_state_delete().

◆ max_reply_states

size_t mesh_area::max_reply_states

◆ max_forever_states

size_t mesh_area::max_forever_states

max forever number of reply states to have

Referenced by fr_worker_pickup_mesh(), mesh_create(), and mesh_new_client().

◆ stats_jostled

size_t mesh_area::stats_jostled

stats, cumulative number of reply states jostled out

Referenced by mesh_create(), mesh_make_new_space(), mesh_stats(), mesh_stats_clear(), server_stats_compile(), and server_stats_log().

◆ stats_dropped

size_t mesh_area::stats_dropped

stats, cumulative number of incoming client msgs dropped

Referenced by mesh_create(), mesh_delete_all(), mesh_new_client(), mesh_stats(), mesh_stats_clear(), server_stats_compile(), and server_stats_log().

◆ ans_expired

size_t mesh_area::ans_expired

stats, number of expired replies sent

Referenced by mesh_create(), mesh_serve_expired_callback(), mesh_stats_clear(), and server_stats_compile().

◆ ans_cachedb

size_t mesh_area::ans_cachedb

stats, number of cached replies from cachedb

Referenced by mesh_create(), mesh_query_done(), mesh_stats_clear(), and server_stats_compile().

◆ replies_sent

size_t mesh_area::replies_sent

number of replies sent

Referenced by mesh_send_reply(), mesh_stats(), mesh_stats_clear(), and server_stats_compile().

◆ replies_sum_wait

struct timeval mesh_area::replies_sum_wait

sum of waiting times for the replies

Referenced by mesh_send_reply(), mesh_stats(), mesh_stats_clear(), and server_stats_compile().

◆ histogram

struct timehist* mesh_area::histogram

◆ ans_secure

size_t mesh_area::ans_secure

(extended stats) secure replies

Referenced by mesh_send_reply(), mesh_stats_clear(), and server_stats_compile().

◆ ans_bogus

size_t mesh_area::ans_bogus

(extended stats) bogus replies

Referenced by mesh_send_reply(), mesh_stats_clear(), and server_stats_compile().

◆ val_ops

size_t mesh_area::val_ops

(extended stats) number of validation operations

Referenced by dnskey_verify_rrset_sig(), mesh_stats_clear(), and server_stats_compile().

◆ ans_rcode

size_t mesh_area::ans_rcode[UB_STATS_RCODE_NUM]

(extended stats) rcodes in replies

Referenced by mesh_send_reply(), mesh_stats_clear(), and server_stats_compile().

◆ ans_nodata

size_t mesh_area::ans_nodata

(extended stats) rcode nodata in replies

Referenced by mesh_send_reply(), mesh_stats_clear(), and server_stats_compile().

◆ rpz_action

size_t mesh_area::rpz_action[UB_STATS_RPZ_ACTION_NUM]

(extended stats) type of applied RPZ action

Referenced by mesh_query_done(), mesh_serve_expired_callback(), mesh_stats_clear(), and server_stats_compile().

◆ num_queries_discard_timeout

size_t mesh_area::num_queries_discard_timeout

stats, number of queries removed due to discard-timeout

Referenced by mesh_create(), mesh_query_done(), mesh_serve_expired_callback(), mesh_stats_clear(), and server_stats_compile().

◆ num_queries_replyaddr_limit

size_t mesh_area::num_queries_replyaddr_limit

stats, number of queries removed due to replyaddr limit

Referenced by mesh_create(), mesh_new_client(), mesh_stats_clear(), and server_stats_compile().

◆ num_queries_wait_limit

size_t mesh_area::num_queries_wait_limit

stats, number of queries removed due to wait-limit

Referenced by mesh_create(), mesh_new_client(), mesh_stats_clear(), and server_stats_compile().

◆ num_dns_error_reports

size_t mesh_area::num_dns_error_reports

stats, number of dns error reports generated

Referenced by dns_error_reporting(), mesh_create(), mesh_stats_clear(), and server_stats_compile().

◆ qbuf_bak

struct sldns_buffer* mesh_area::qbuf_bak

backup of query if other operations recurse and need the network buffers

Referenced by mesh_create(), mesh_delete(), mesh_get_mem(), and mesh_make_new_space().

◆ forever_first

struct mesh_state* mesh_area::forever_first

double linked list of the run-to-completion query states.

These are query states with a reply

Referenced by mesh_delete_all(), mesh_new_client(), and mesh_state_delete().

◆ forever_last

struct mesh_state* mesh_area::forever_last

last entry in run forever list

Referenced by mesh_delete_all(), mesh_new_client(), and mesh_state_delete().

◆ jostle_first

struct mesh_state* mesh_area::jostle_first

double linked list of the query states that can be jostled out by new queries if too old.

These are query states with a reply

Referenced by mesh_delete_all(), mesh_make_new_space(), mesh_new_client(), and mesh_state_delete().

◆ jostle_last

struct mesh_state* mesh_area::jostle_last

last entry in jostle list - this is the entry that is newest

Referenced by mesh_delete_all(), mesh_new_client(), and mesh_state_delete().

◆ jostle_max

struct timeval mesh_area::jostle_max

timeout for jostling.

if age is lower, it does not get jostled.

Referenced by fr_worker_pickup_mesh(), mesh_create(), and mesh_make_new_space().

◆ use_response_ip

int mesh_area::use_response_ip

If we need to use response ip (value passed from daemon).

Referenced by fr_worker_pickup_mesh(), mesh_serve_expired_callback(), and worker_init().

◆ use_rpz

int mesh_area::use_rpz

If we need to use RPZ (value passed from daemon).

Referenced by fr_worker_pickup_mesh(), mesh_serve_expired_callback(), and worker_init().


The documentation for this struct was generated from the following file: