Add "Heartbeat" to the start of several heartbeat messages.
[tor.git] / src / core / or / dos_config.c
blob9457b0224e38219ec23a2ca18edf55da785e10b5
1 /* Copyright (c) 2021-2021, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
4 /**
5 * @file dos_config.c
6 * @brief Code to interpret the user's configuration of DoS module.
7 **/
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"
15 #undef CONF_CONTEXT
17 /** Magic number for dos_options_t. */
18 #define DOS_OPTIONS_MAGIC 0x91716151
20 /**
21 * Declare the configuration options for the dos module.
22 **/
23 const config_format_t dos_options_fmt = {
24 .size = sizeof(dos_options_t),
25 .magic = { "dos_options_t",
26 DOS_OPTIONS_MAGIC,
27 offsetof(dos_options_t, magic) },
28 .vars = dos_options_t_vars,