diff options
author | Mike Perry <mikeperry-git@torproject.org> | 2019-04-17 06:09:06 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-05-13 14:30:35 -0400 |
commit | 621ea2315b3f53a9ef4ace9f3f6cb2f03a241042 (patch) | |
tree | 5262598079ea1e36fb4c3845beebf98bb0ff5ce8 /src/core/or/circuitpadding.h | |
parent | f4064d6ce214b4b79017280a6c9db9b3f945ece1 (diff) | |
download | tor-621ea2315b3f53a9ef4ace9f3f6cb2f03a241042.tar.gz tor-621ea2315b3f53a9ef4ace9f3f6cb2f03a241042.zip |
Bug 29203: Provide ReducedCircuitPadding torrc and consensus params
Diffstat (limited to 'src/core/or/circuitpadding.h')
-rw-r--r-- | src/core/or/circuitpadding.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/or/circuitpadding.h b/src/core/or/circuitpadding.h index bc2522c210..f00369eb0a 100644 --- a/src/core/or/circuitpadding.h +++ b/src/core/or/circuitpadding.h @@ -152,6 +152,17 @@ typedef struct circpad_machine_conditions_t { /** Only apply the machine *if* vanguards are enabled */ unsigned requires_vanguards : 1; + /** + * This machine is ok to use if reduced padding is set in consensus + * or torrc. This machine will still be applied even if reduced padding + * is not set; this flag only acts to exclude machines that don't have + * it set when reduced padding is requested. Therefore, reduced padding + * machines should appear at the lowest priority in the padding machine + * lists (aka first in the list), so that non-reduced padding machines + * for the same purpose are given a chance to apply when reduced padding + * is not requested. */ + unsigned reduced_padding_ok : 1; + /** Only apply the machine *if* the circuit's state matches any of * the bits set in this bitmask. */ circpad_circuit_state_t state_mask; |