diff options
author | George Kadianakis <desnacked@riseup.net> | 2015-01-29 14:57:00 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-02-18 09:09:33 -0500 |
commit | f4a63f8eabbdd842ebeb97aabba92ea47c37a607 (patch) | |
tree | 4e2cc251b585f2c941e8b3dafc0283d6e840ab2a /src/or/or.h | |
parent | db805b91708c02e9b2b4d0c25ec17a45e81929aa (diff) | |
download | tor-f4a63f8eabbdd842ebeb97aabba92ea47c37a607.tar.gz tor-f4a63f8eabbdd842ebeb97aabba92ea47c37a607.zip |
Parse GuardFraction info from consensuses and votes.
Also introduce the UseGuardFraction torrc option which decides whether
clients should use guardfraction information found in the consensus.
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index 1f2231e78c..b8d4e1a3ef 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -3818,6 +3818,12 @@ typedef struct { int NumEntryGuards; /**< How many entry guards do we try to establish? */ int UseEntryGuardsAsDirGuards; /** Boolean: Do we try to get directory info * from a smallish number of fixed nodes? */ + + /** If 1, we use any guardfraction information we see in the + * consensus. If 0, we don't. If -1, let the consensus parameter + * decide. */ + int UseGuardFraction; + int NumDirectoryGuards; /**< How many dir guards do we try to establish? * If 0, use value from NumEntryGuards. */ int RephistTrackTime; /**< How many seconds do we keep rephist info? */ |