diff options
author | George Kadianakis <desnacked@riseup.net> | 2019-02-25 13:59:18 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2019-02-25 13:59:18 +0200 |
commit | 71c11d7306dbbcb81c780a7a786429e2d8eaa669 (patch) | |
tree | 077807e9f773493d59793da72297c6ce904d2831 /src/core/or/circuitpadding.h | |
parent | 331a067ae3ce778037650d5283504350979e50ee (diff) | |
download | tor-71c11d7306dbbcb81c780a7a786429e2d8eaa669.tar.gz tor-71c11d7306dbbcb81c780a7a786429e2d8eaa669.zip |
document picking infinity bin
Diffstat (limited to 'src/core/or/circuitpadding.h')
-rw-r--r-- | src/core/or/circuitpadding.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/or/circuitpadding.h b/src/core/or/circuitpadding.h index 4e6454b4a2..ca19e31ca5 100644 --- a/src/core/or/circuitpadding.h +++ b/src/core/or/circuitpadding.h @@ -276,6 +276,12 @@ typedef struct circpad_state_t { * histogram[] = { 6, 10, 6, 7, 9, 6 } * histogram_edges[] = { 0, 100, 200, 350, 500, 1000 } * + * The final bin is called the "infinity bin" and if it's chosen we don't + * schedule any padding. The infinity bin is strange because its lower edge + * is the max value of possible non-infinite delay allowed by this histogram, + * and its upper edge is CIRCPAD_DELAY_INFINITE. You can tell if the infinity + * bin is chosen by inspecting its bin index or inspecting its upper edge. + * * If a delay probability distribution is used for this state, this is set * to 0. */ circpad_hist_index_t histogram_len; |