diff options
author | David Goulet <dgoulet@torproject.org> | 2019-06-25 10:26:57 -0400 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2019-08-26 15:53:46 +0300 |
commit | 5419fd5d9f54bda86549b47e096d4f88e1b58655 (patch) | |
tree | e9240e82060f0ca08e4da574fbcf42f27e187beb /src/feature/hs/hs_service.h | |
parent | e4856d1bbf1e3d0dd452a7a1b495464404007577 (diff) | |
download | tor-5419fd5d9f54bda86549b47e096d4f88e1b58655.tar.gz tor-5419fd5d9f54bda86549b47e096d4f88e1b58655.zip |
hs-v3: Implement torrc DoS defenses options
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_service.h')
-rw-r--r-- | src/feature/hs/hs_service.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/feature/hs/hs_service.h b/src/feature/hs/hs_service.h index 22aa00b2d7..77f6527c20 100644 --- a/src/feature/hs/hs_service.h +++ b/src/feature/hs/hs_service.h @@ -241,6 +241,11 @@ typedef struct hs_service_config_t { /* Does this service export the circuit ID of its clients? */ hs_circuit_id_protocol_t circuit_id_protocol; + + /* DoS defenses. For the ESTABLISH_INTRO cell extension. */ + unsigned int has_dos_defense_enabled : 1; + uint32_t intro_dos_rate_per_sec; + uint32_t intro_dos_burst_per_sec; } hs_service_config_t; /* Service state. */ |