diff options
author | David Goulet <dgoulet@torproject.org> | 2019-06-27 13:32:58 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2019-08-06 07:58:14 -0400 |
commit | e53796854811724fdd1db5127bb67943ba5d423c (patch) | |
tree | 9b938ea370fec4a7a642ff06d5452e92d555823c /src/feature/hs/hs_circuitmap.h | |
parent | be8bd2a46eaba4c992ec912a1bef8d950e481bd4 (diff) | |
download | tor-e53796854811724fdd1db5127bb67943ba5d423c.tar.gz tor-e53796854811724fdd1db5127bb67943ba5d423c.zip |
dos: Update HS intro circuits if parameters change
In case the consensus parameters for the rate/burst changes, we need to update
all already established introduction circuits to the newest value.
This commit introduces a "get all intro circ" function from the HS circuitmap
(v2 and v3) so it can be used by the HS DoS module to go over all circuits and
adjust the INTRODUCE2 token bucket parameters.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_circuitmap.h')
-rw-r--r-- | src/feature/hs/hs_circuitmap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/hs/hs_circuitmap.h b/src/feature/hs/hs_circuitmap.h index c1bbb1ff1c..eac8230bbf 100644 --- a/src/feature/hs/hs_circuitmap.h +++ b/src/feature/hs/hs_circuitmap.h @@ -34,6 +34,8 @@ void hs_circuitmap_register_intro_circ_v2_relay_side(struct or_circuit_t *circ, void hs_circuitmap_register_intro_circ_v3_relay_side(struct or_circuit_t *circ, const ed25519_public_key_t *auth_key); +smartlist_t *hs_circuitmap_get_all_intro_circ_relay_side(void); + /** Public service-side API: */ struct origin_circuit_t * |