diff options
author | George Kadianakis <desnacked@riseup.net> | 2019-02-25 13:46:58 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2019-02-25 13:46:58 +0200 |
commit | 331a067ae3ce778037650d5283504350979e50ee (patch) | |
tree | bd03dc82a4d96f949708cb8e5105f2800d4428a8 /src/core/or/circuitpadding.h | |
parent | 341cd6ea6631217a5487198a773b56a057afd5f9 (diff) | |
download | tor-331a067ae3ce778037650d5283504350979e50ee.tar.gz tor-331a067ae3ce778037650d5283504350979e50ee.zip |
Fix dist_min_usec documentation and naming.
Diffstat (limited to 'src/core/or/circuitpadding.h')
-rw-r--r-- | src/core/or/circuitpadding.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/core/or/circuitpadding.h b/src/core/or/circuitpadding.h index d11358a159..4e6454b4a2 100644 --- a/src/core/or/circuitpadding.h +++ b/src/core/or/circuitpadding.h @@ -309,13 +309,16 @@ typedef struct circpad_state_t { * results of sampling from this distribution (range_sec is used as a max). */ circpad_distribution_t iat_dist; - /* If a delay probability distribution is used, this represents the minimum - * delay we can sample from the distribution. */ - circpad_delay_t dist_min_usec; /* If a delay probability distribution is used, this is used as the max - * delay we can sample from the distribution. - */ - circpad_delay_t dist_max_usec; + * value we can sample from the distribution. However, RTT measurements and + * dist_added_shift gets applied on top of this value to derive the final + * padding delay. */ + circpad_delay_t dist_max_sample_usec; + /* If a delay probability distribution is used and this is set, we will add + * this value on top of the value sampled from the IAT distribution to + * derive the final padding delay (We also add the RTT measurement if it's + * enabled.). */ + circpad_delay_t dist_added_shift_usec; /** * The length dist is a parameterized way of encoding how long this |