Tor  0.4.7.0-alpha-dev
dos_config.c
Go to the documentation of this file.
1 /* Copyright (c) 2021-2021, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
3 
4 /**
5  * @file dos_config.c
6  * @brief Code to interpret the user's configuration of DoS module.
7  **/
8 
9 #include "core/or/dos_config.h"
10 #include "core/or/dos_options_st.h"
11 
12 /* Declare the options field table for dos_options */
13 #define CONF_CONTEXT TABLE
14 #include "core/or/dos_options.inc"
15 #undef CONF_CONTEXT
16 
17 /** Magic number for dos_options_t. */
18 #define DOS_OPTIONS_MAGIC 0x91716151
19 
20 /**
21  * Declare the configuration options for the dos module.
22  **/
24  .size = sizeof(dos_options_t),
25  .magic = { "dos_options_t",
27  offsetof(dos_options_t, magic) },
28  .vars = dos_options_t_vars,
29 };
#define DOS_OPTIONS_MAGIC
Definition: dos_config.c:18
const config_format_t dos_options_fmt
Definition: dos_config.c:23
Header for core/or/dos_config.c.
Declare configuration options for the DoS module.
Structure dos_options_t to hold options for the DoS subsystem.