aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-01-24 00:31:16 +0000
committerNick Mathewson <nickm@torproject.org>2006-01-24 00:31:16 +0000
commit9f42c9d65001bb5c08ee79f8e39c144fb82c1e72 (patch)
treeeec030d1fda331dc00b43b5b691b131eb3bd2edc /src/or/dirserv.c
parentf1864dfff351773b7268e095a41e4b8c2c919b8a (diff)
downloadtor-9f42c9d65001bb5c08ee79f8e39c144fb82c1e72.tar.gz
tor-9f42c9d65001bb5c08ee79f8e39c144fb82c1e72.zip
Make dirservers generate a separate "guard" flag to mean, "would make a good entry guard". Make clients parse it and vote on it.
svn:r5856
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 7226488775..b3d8159577 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -1422,6 +1422,7 @@ generate_v2_networkstatus(void)
ri->cache_info.identity_digest);
int f_named = naming && ri->is_named;
int f_valid = ri->is_verified;
+ int f_guard = f_fast && f_stable;
/* 0.1.1.9-alpha is the first version to support fetch by descriptor
* hash. */
int f_v2_dir = ri->dir_port &&
@@ -1450,6 +1451,7 @@ generate_v2_networkstatus(void)
f_authority?" Authority":"",
f_exit?" Exit":"",
f_fast?" Fast":"",
+ f_guard?" Guard":"",
f_named?" Named":"",
f_stable?" Stable":"",
f_running?" Running":"",