aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-03-14 15:31:24 -0400
committerNick Mathewson <nickm@torproject.org>2011-03-14 15:31:24 -0400
commitf1c365b032e058e7342b632006435ecc175475a3 (patch)
tree8df6ebda1279b8d8264b42e67dcd85db7e1062cf /src/or/dirserv.h
parentd52a99dc77dc77008b871da8bb2f95995d1abb6a (diff)
parentb639add1a010d5816ceb693c68ddc3b48655b752 (diff)
downloadtor-f1c365b032e058e7342b632006435ecc175475a3.tar
tor-f1c365b032e058e7342b632006435ecc175475a3.tar.gz
Merge remote branch 'origin/maint-0.2.2'
Fix trivial add/add conflict in main.c Conflicts: src/or/main.c
Diffstat (limited to 'src/or/dirserv.h')
-rw-r--r--src/or/dirserv.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/or/dirserv.h b/src/or/dirserv.h
index 0489f3a6a..8bd6d18f9 100644
--- a/src/or/dirserv.h
+++ b/src/or/dirserv.h
@@ -12,6 +12,18 @@
#ifndef _TOR_DIRSERV_H
#define _TOR_DIRSERV_H
+/** What fraction (1 over this number) of the relay ID space do we
+ * (as a directory authority) launch connections to at each reachability
+ * test? */
+#define REACHABILITY_MODULO_PER_TEST 128
+
+/** How often (in seconds) do we launch reachability tests? */
+#define REACHABILITY_TEST_INTERVAL 10
+
+/** How many seconds apart are the reachability tests for a given relay? */
+#define REACHABILITY_TEST_CYCLE_PERIOD \
+ (REACHABILITY_TEST_INTERVAL*REACHABILITY_MODULO_PER_TEST)
+
/** Maximum length of an exit policy summary. */
#define MAX_EXITPOLICY_SUMMARY_LEN 1000