unbound 0.1
worker Struct Reference

Structure holding working information for unbound. More...

#include <worker.h>

Data Fields

int thread_num
 the thread number (in daemon array).
struct daemon * daemon
 global shared daemon structure
ub_thread_type thr_id
 thread id
struct tube * cmd
 pipe, for commands for this worker
struct comm_base * base
 the event base this worker works with
struct listen_dnsport * front
 the frontside listening interface where request events come in
struct outside_network * back
 the backside outside network interface to the auth servers
struct comm_signal * comsig
 the signal handler
struct comm_point * cmd_com
 commpoint to listen to commands.
struct comm_timer * stat_timer
 timer for statistics
time_t err_limit_time
 ratelimit for errors, time value
unsigned int err_limit_count
 ratelimit for errors, packet count
struct ub_randstate * rndstate
 random() table for this worker.
int need_to_exit
 do we need to restart or quit (on signal)
struct alloc_cache * alloc
 allocation cache for this thread
struct ub_server_stats stats
 per thread statistics
struct regional * scratchpad
 thread scratch regional
struct module_env env
 module environment passed to modules, changed for this thread
int reuse_cache
 reuse existing cache on reload if other conditions allow it.

Detailed Description

Structure holding working information for unbound.

Holds globally visible information.

Field Documentation

◆ thread_num

◆ daemon

◆ thr_id

ub_thread_type worker::thr_id

◆ cmd

◆ base

◆ front

◆ back

struct outside_network* worker::back

◆ comsig

struct comm_signal* worker::comsig

the signal handler

Referenced by worker_delete(), worker_init(), and worker_mem_report().

◆ cmd_com

struct comm_point* worker::cmd_com

commpoint to listen to commands.

Referenced by worker_mem_report().

◆ stat_timer

struct comm_timer* worker::stat_timer

timer for statistics

Referenced by worker_delete(), worker_init(), and worker_restart_timer().

◆ err_limit_time

time_t worker::err_limit_time

ratelimit for errors, time value

Referenced by worker_err_ratelimit().

◆ err_limit_count

unsigned int worker::err_limit_count

ratelimit for errors, packet count

Referenced by worker_err_ratelimit().

◆ rndstate

struct ub_randstate* worker::rndstate

random() table for this worker.

Referenced by worker_create(), worker_delete(), worker_init(), and worker_mem_report().

◆ need_to_exit

int worker::need_to_exit

do we need to restart or quit (on signal)

Referenced by daemon_fork(), do_reload(), do_stop(), worker_init(), worker_sighandler(), and worker_win_stop_cb().

◆ alloc

struct alloc_cache* worker::alloc

allocation cache for this thread

Referenced by move_into_cache(), worker_init(), and worker_mem_report().

◆ stats

◆ scratchpad

◆ env

struct module_env worker::env

module environment passed to modules, changed for this thread

Referenced by answer_chaos(), answer_from_cache(), answer_norec_from_cache(), answer_notify(), apply_respip_action(), auth_zones_check_changes(), bogus_del_msg(), chaos_replystr(), chaos_trustanchor(), cookie_secret_file_dump(), do_activate_cookie_secret(), do_add_cookie_secret(), do_auth_zone_reload(), do_auth_zone_transfer(), do_cache_lookup_domain(), do_cache_remove(), do_drop_cookie_secret(), do_dump_infra(), do_dump_requestlist(), do_flush_bogus(), do_flush_infra(), do_flush_negative(), do_flush_requestlist(), do_flush_zone(), do_forward(), do_forward_add(), do_forward_remove(), do_get_option(), do_insecure_add(), do_insecure_remove(), do_ip_ratelimit_list(), do_list_forwards(), do_list_local_data(), do_list_stubs(), do_log_reopen(), do_ratelimit_list(), do_rpz_enable_disable(), do_set_option(), do_stub_add(), do_stub_remove(), do_view_data_add(), do_view_data_remove(), do_view_datas_add(), do_view_datas_remove(), do_view_list_local_data(), do_view_list_local_zones(), do_view_zone_add(), do_view_zone_remove(), dump_msg_cache(), dump_msg_entry(), dump_rrset_cache(), dump_rrset_entry(), execute_cmd(), fast_reload_thread_setup(), fast_reload_worker_pickup_changes(), fr_check_compat_cfg(), fr_check_nopause_compat_cfg(), fr_check_tag_datas(), fr_construct_from_config(), fr_main_perform_reload_stop(), fr_pickup_auth_locks(), fr_worker_auth_add(), fr_worker_auth_cha(), fr_worker_auth_del(), fr_worker_pickup_mesh(), fr_worker_pickup_outside_network(), get_queries_ratelimit(), get_rrset_bogus(), load_cache(), load_msg(), load_msg_cache(), load_ref(), load_rrset(), load_rrset_cache(), move_into_cache(), negative_del_msg(), print_dp_details(), print_mem(), print_uptime(), reply_and_prefetch(), server_stats_compile(), server_stats_log(), server_stats_prefetch(), server_stats_querymiss(), set_neg_cache_stats(), worker_alloc_cleanup(), worker_delete(), worker_err_ratelimit(), worker_handle_request(), worker_handle_service_reply(), worker_init(), worker_mem_report(), worker_probe_timer_cb(), worker_restart_timer(), worker_stat_timer_cb(), worker_stats_clear(), worker_stop_and_wait(), and zone_del_msg().

◆ reuse_cache

int worker::reuse_cache

reuse existing cache on reload if other conditions allow it.

Referenced by daemon_fork(), and do_reload().


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