From f4a63f8eabbdd842ebeb97aabba92ea47c37a607 Mon Sep 17 00:00:00 2001 From: George Kadianakis Date: Thu, 29 Jan 2015 14:57:00 +0000 Subject: 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. --- src/or/or.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/or/or.h') 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? */ -- cgit v1.2.3-54-g00ecf