diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-12-07 12:36:13 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-12-16 11:06:22 -0500 |
commit | 68679504323b0a676a446b8fb34b976c9dc66b4f (patch) | |
tree | 89a6a9621fae80e4c41114aee2d0f12aed437dcb /src/or/circpathbias.c | |
parent | 2b4bfe62ee74b927d65923f5d07fe04f51f8779a (diff) | |
download | tor-68679504323b0a676a446b8fb34b976c9dc66b4f.tar.gz tor-68679504323b0a676a446b8fb34b976c9dc66b4f.zip |
Wrap all of the legacy guard code, and its users, in #ifdefs
This will make it easier to see what we remove down the line.
Diffstat (limited to 'src/or/circpathbias.c')
-rw-r--r-- | src/or/circpathbias.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/circpathbias.c b/src/or/circpathbias.c index be1146513e..d86d70f1ff 100644 --- a/src/or/circpathbias.c +++ b/src/or/circpathbias.c @@ -1279,7 +1279,10 @@ pathbias_measure_use_rate(entry_guard_t *guard) tor_lround(pb->timeouts), tor_lround(get_circuit_build_close_time_ms()/1000)); pb->path_bias_disabled = 1; +#ifdef ENABLE_LEGACY_GUARD_ALGORITHM + // XXXX entry_guard_mark_bad(guard); +#endif return; } } else if (!pb->path_bias_use_extreme) { @@ -1385,7 +1388,10 @@ pathbias_measure_close_rate(entry_guard_t *guard) tor_lround(pb->timeouts), tor_lround(get_circuit_build_close_time_ms()/1000)); pb->path_bias_disabled = 1; +#ifdef ENABLE_LEGACY_GUARD_ALGORITHM + // XXXX entry_guard_mark_bad(guard); +#endif return; } } else if (!pb->path_bias_extreme) { |