tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

dos_config.c (764B)


      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 **/
     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,
     29 };