Tor
0.4.7.0-alpha-dev
core
or
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
**/
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
};
DOS_OPTIONS_MAGIC
#define DOS_OPTIONS_MAGIC
Definition:
dos_config.c:18
dos_options_fmt
const config_format_t dos_options_fmt
Definition:
dos_config.c:23
dos_config.h
Header for core/or/dos_config.c.
dos_options.inc
Declare configuration options for the DoS module.
dos_options_st.h
Structure dos_options_t to hold options for the DoS subsystem.
config_format_t
Definition:
conftypes.h:347
config_format_t::size
size_t size
Definition:
conftypes.h:348
dos_options_t
Definition:
dos_options.inc:9
Generated by
1.9.1