summaryrefslogtreecommitdiff
path: root/src/or/entrynodes.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-11-20 18:11:59 +0200
committerNick Mathewson <nickm@torproject.org>2017-11-20 14:28:56 -0500
commit69f93f806c4531e9498257578a10935e7859390f (patch)
tree27dc377db3e38f8c8c73eb572fee24f2bfd9a49d /src/or/entrynodes.h
parent96b69942a54e69e9f4d8aeb07bf9a5fb98892900 (diff)
downloadtor-69f93f806c4531e9498257578a10935e7859390f.tar.gz
tor-69f93f806c4531e9498257578a10935e7859390f.zip
Check number of usable guards when applying md restrictions.
We used to check whether we have enough filtered guards (guard set when torrc is applied) but that's not good enough, since that might be bad in some cases where many guards are not reachable (might cause overblocking and hence reacahbility issues). We now check if we have enough reachable filtered guards before applying md restrictions which should prevent overblocking.
Diffstat (limited to 'src/or/entrynodes.h')
-rw-r--r--src/or/entrynodes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/entrynodes.h b/src/or/entrynodes.h
index 29de627de0..39bff14381 100644
--- a/src/or/entrynodes.h
+++ b/src/or/entrynodes.h
@@ -521,7 +521,7 @@ STATIC void entry_guard_consider_retry(entry_guard_t *guard);
STATIC void make_guard_confirmed(guard_selection_t *gs, entry_guard_t *guard);
STATIC void entry_guards_update_confirmed(guard_selection_t *gs);
STATIC void entry_guards_update_primary(guard_selection_t *gs);
-STATIC int num_reachable_filtered_guards(guard_selection_t *gs,
+STATIC int num_reachable_filtered_guards(const guard_selection_t *gs,
const entry_guard_restriction_t *rst);
STATIC void sampled_guards_update_from_consensus(guard_selection_t *gs);
/**