1 /* Copyright (c) 2021-2021, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
6 * @brief Code to interpret the user's configuration of DoS module.
9 #include "core/or/dos_config.h"
10 #include "core/or/dos_options_st.h"
12 /* Declare the options field table for dos_options */
13 #define CONF_CONTEXT TABLE
14 #include "core/or/dos_options.inc"
17 /** Magic number for dos_options_t. */
18 #define DOS_OPTIONS_MAGIC 0x91716151
21 * Declare the configuration options for the dos module.
23 const config_format_t dos_options_fmt
= {
24 .size
= sizeof(dos_options_t
),
25 .magic
= { "dos_options_t",
27 offsetof(dos_options_t
, magic
) },
28 .vars
= dos_options_t_vars
,