summaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_dos.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-08-12 12:32:38 -0400
committerGeorge Kadianakis <desnacked@riseup.net>2019-08-26 15:53:46 +0300
commit7faf10495fa50528fc8a9c45e729b9bc284fab19 (patch)
tree66cd768ebe45a5c952c52c9efedec68819e64359 /src/feature/hs/hs_dos.h
parent6c79172924a6a1660e55c29b7f2a205205ce0d21 (diff)
downloadtor-7faf10495fa50528fc8a9c45e729b9bc284fab19.tar.gz
tor-7faf10495fa50528fc8a9c45e729b9bc284fab19.zip
hs-v3: Rename INTRO2 consensus param getters
Make it clear that these functions return the consensus param only. Introduction point can not set those values with a torrc option. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_dos.h')
-rw-r--r--src/feature/hs/hs_dos.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/feature/hs/hs_dos.h b/src/feature/hs/hs_dos.h
index 9fba00b52b..ee7b697c70 100644
--- a/src/feature/hs/hs_dos.h
+++ b/src/feature/hs/hs_dos.h
@@ -20,11 +20,12 @@ void hs_dos_init(void);
/* Consensus. */
void hs_dos_consensus_has_changed(const networkstatus_t *ns);
+/* Introduction Point. */
bool hs_dos_can_send_intro2(or_circuit_t *s_intro_circ);
-/* Getters. */
-uint32_t hs_dos_get_intro2_rate(void);
-uint32_t hs_dos_get_intro2_burst(void);
+unsigned int hs_dos_get_intro2_enabled_param(void);
+uint32_t hs_dos_get_intro2_rate_param(void);
+uint32_t hs_dos_get_intro2_burst_param(void);
#ifdef HS_DOS_PRIVATE