Electroneum
daemon Struct Reference

#include <daemon.h>

Collaboration diagram for daemon:

Public Attributes

struct config_filecfg
 
char * chroot
 
char * pidfile
 
int listening_port
 
struct listen_port ** ports
 
size_t num_ports
 
int reuseport
 
int rc_port
 
struct listen_portrc_ports
 
struct daemon_remoterc
 
void * listen_sslctx
 
void * connect_sslctx
 
int num
 
struct worker ** workers
 
int need_to_exit
 
struct ub_randstate * rand
 
struct alloc_cache superalloc
 
struct module_envenv
 
struct module_stack mods
 
struct acl_listacl
 
struct local_zoneslocal_zones
 
struct timeval time_last_stat
 
struct timeval time_boot
 
struct viewsviews
 
struct shm_main_infoshm_info
 
struct respip_set * respip_set
 
int use_response_ip
 

Detailed Description

Structure holding worker list. Holds globally visible information.

Definition at line 76 of file daemon.h.

Member Data Documentation

◆ acl

struct acl_list* daemon::acl

access control, which client IPs are allowed to connect

Definition at line 115 of file daemon.h.

◆ cfg

struct config_file* daemon::cfg

The config settings

Definition at line 78 of file daemon.h.

◆ chroot

char* daemon::chroot

the chroot dir in use, NULL if none

Definition at line 80 of file daemon.h.

◆ connect_sslctx

void * daemon::connect_sslctx

Definition at line 99 of file daemon.h.

◆ env

struct module_env* daemon::env

the module environment master value, copied and changed by threads

Definition at line 111 of file daemon.h.

◆ listen_sslctx

void* daemon::listen_sslctx

ssl context for listening to dnstcp over ssl, and connecting ssl

Definition at line 99 of file daemon.h.

◆ listening_port

int daemon::listening_port

port number that has ports opened.

Definition at line 84 of file daemon.h.

◆ local_zones

struct local_zones* daemon::local_zones

local authority zones

Definition at line 117 of file daemon.h.

◆ mods

struct module_stack daemon::mods

stack of module callbacks

Definition at line 113 of file daemon.h.

◆ need_to_exit

int daemon::need_to_exit

do we need to exit unbound (or is it only a reload?)

Definition at line 105 of file daemon.h.

◆ num

int daemon::num

num threads allocated

Definition at line 101 of file daemon.h.

◆ num_ports

size_t daemon::num_ports

size of ports array

Definition at line 89 of file daemon.h.

◆ pidfile

char* daemon::pidfile

pidfile that is used

Definition at line 82 of file daemon.h.

◆ ports

struct listen_port** daemon::ports

array of listening ports, opened. Listening ports per worker, or just one element[0] shared by the worker threads.

Definition at line 87 of file daemon.h.

◆ rand

struct ub_randstate* daemon::rand

master random table ; used for port div between threads on reload

Definition at line 107 of file daemon.h.

◆ rc

struct daemon_remote* daemon::rc

remote control connections management (for first worker)

Definition at line 97 of file daemon.h.

◆ rc_port

int daemon::rc_port

port number for remote that has ports opened.

Definition at line 93 of file daemon.h.

◆ rc_ports

struct listen_port* daemon::rc_ports

listening ports for remote control

Definition at line 95 of file daemon.h.

◆ respip_set

struct respip_set* daemon::respip_set

response-ip set with associated actions and tags.

Definition at line 130 of file daemon.h.

◆ reuseport

int daemon::reuseport

reuseport is enabled if true

Definition at line 91 of file daemon.h.

◆ shm_info

struct shm_main_info* daemon::shm_info

Definition at line 128 of file daemon.h.

◆ superalloc

struct alloc_cache daemon::superalloc

master allocation cache

Definition at line 109 of file daemon.h.

◆ time_boot

struct timeval daemon::time_boot

time when daemon started

Definition at line 121 of file daemon.h.

◆ time_last_stat

struct timeval daemon::time_last_stat

last time of statistics printout

Definition at line 119 of file daemon.h.

◆ use_response_ip

int daemon::use_response_ip

some response-ip tags or actions are configured if true

Definition at line 132 of file daemon.h.

◆ views

struct views* daemon::views

views structure containing view tree

Definition at line 123 of file daemon.h.

◆ workers

struct worker** daemon::workers

the worker entries

Definition at line 103 of file daemon.h.


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