aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/circuitpadding.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-02-13 16:17:01 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2019-02-15 17:43:01 +0200
commit98af25e0137f283569aee3537a0ef19cda403426 (patch)
treeb9e5c647030271b6e5c3f1c65fc009db54d4b00f /src/core/or/circuitpadding.h
parentf07c6ae57cd2ac11d438232b94a15f99b96e8989 (diff)
downloadtor-98af25e0137f283569aee3537a0ef19cda403426.tar.gz
tor-98af25e0137f283569aee3537a0ef19cda403426.zip
Remove start_usec/range_usec and make equivalent fields for distributions.
Diffstat (limited to 'src/core/or/circuitpadding.h')
-rw-r--r--src/core/or/circuitpadding.h25
1 files changed, 7 insertions, 18 deletions
diff --git a/src/core/or/circuitpadding.h b/src/core/or/circuitpadding.h
index 57bd379816..918a7d0ddd 100644
--- a/src/core/or/circuitpadding.h
+++ b/src/core/or/circuitpadding.h
@@ -297,24 +297,6 @@ typedef struct circpad_state_t {
* refilling the histogram. */
uint32_t histogram_total_tokens;
- /** Minimum padding delay of this state in microseconds.
- *
- * If histograms are used, this is the left (and right) bound of the first
- * bin (since it has zero width).
- *
- * If a delay probability distribution is used, this represents the minimum
- * delay we can sample from the distribution.
- */
- circpad_delay_t start_usec;
-
- /** If histograms are used, this is the width of the whole histogram in
- * microseconds, and it's used to calculate individual bin width.
- *
- * If a delay probability distribution is used, this is used as the max
- * delay we can sample from the distribution.
- */
- circpad_delay_t range_usec;
-
/**
* Represents a delay probability distribution (aka IAT distribution). It's a
* parametrized way of encoding inter-packet delay information in
@@ -327,6 +309,13 @@ 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;
/**
* The length dist is a parameterized way of encoding how long this