aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/circuitpadding.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-03-13 10:37:37 -0400
committerNick Mathewson <nickm@torproject.org>2019-03-13 10:37:37 -0400
commitcab93930de8888981af63f157f71721ac233db34 (patch)
treeab2844d3f72bca85adcdc5b203ce3f7d55c3ebc1 /src/core/or/circuitpadding.h
parent26b0d95397987a4458cc8afc4142b70f9f797870 (diff)
parent8b64ff7a3f2d9eb0837248a6c9b0e8b438374369 (diff)
downloadtor-cab93930de8888981af63f157f71721ac233db34.tar.gz
tor-cab93930de8888981af63f157f71721ac233db34.zip
Merge branch 'pr_722_squashed'
Diffstat (limited to 'src/core/or/circuitpadding.h')
-rw-r--r--src/core/or/circuitpadding.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/or/circuitpadding.h b/src/core/or/circuitpadding.h
index 54039fa59a..a49ec069df 100644
--- a/src/core/or/circuitpadding.h
+++ b/src/core/or/circuitpadding.h
@@ -198,14 +198,23 @@ typedef enum {
* These can be used instead of histograms for the inter-packet
* timing distribution, or to specify a distribution on the number
* of cells that can be sent while in a specific state of the state
- * machine. */
+ * machine.
+ *
+ * Each distribution takes up to two parameters which are described below. */
typedef enum {
+ /* No probability distribution is used */
CIRCPAD_DIST_NONE = 0,
+ /* Uniform distribution: param1 is lower bound and param2 is upper bound */
CIRCPAD_DIST_UNIFORM = 1,
+ /* Logistic distribution: param1 is Mu, param2 is sigma. */
CIRCPAD_DIST_LOGISTIC = 2,
+ /* Log-logistic distribution: param1 is Alpha, param2 is 1.0/Beta */
CIRCPAD_DIST_LOG_LOGISTIC = 3,
+ /* Geometric distribution: param1 is 'p' (success probability) */
CIRCPAD_DIST_GEOMETRIC = 4,
+ /* Weibull distribution: param1 is k, param2 is Lambda */
CIRCPAD_DIST_WEIBULL = 5,
+ /* Generalized Pareto distribution: param1 is sigma, param2 is xi */
CIRCPAD_DIST_PARETO = 6
} circpad_distribution_type_t;