diff options
author | David Goulet <dgoulet@torproject.org> | 2018-01-25 16:20:52 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2018-01-30 09:18:15 -0500 |
commit | 1bfc91a029839f36e04c8204d1bccaa04a5c2afd (patch) | |
tree | 3fa04954da910773e4267567fc6332cb110c55bb /src/or/dos.h | |
parent | 97abb3543b858afd27ed857903814175c1dfbf12 (diff) | |
download | tor-1bfc91a029839f36e04c8204d1bccaa04a5c2afd.tar.gz tor-1bfc91a029839f36e04c8204d1bccaa04a5c2afd.zip |
dos: Apply defense for circuit creation DoS
If the client address was detected as malicious, apply a defense which is at
this commit to return a DESTROY cell.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/dos.h')
-rw-r--r-- | src/or/dos.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/dos.h b/src/or/dos.h index bb8d7d1a79..fa86295cf6 100644 --- a/src/or/dos.h +++ b/src/or/dos.h @@ -81,6 +81,7 @@ typedef enum dos_cc_defense_type_t { } dos_cc_defense_type_t; void dos_cc_new_create_cell(channel_t *channel); +dos_cc_defense_type_t dos_cc_get_defense_type(channel_t *chan); /* * Concurrent connection DoS mitigation interface. |