summaryrefslogtreecommitdiff
path: root/src/or/routerparse.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/routerparse.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/routerparse.c')
-rw-r--r--src/or/routerparse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index fef16954d5..00bc8a454a 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -1037,6 +1037,8 @@ routerstatus_parse_entry_from_string(const char **s, smartlist_t *tokens)
rs->is_valid = 1;
else if (!strcmp(tok->args[i], "V2Dir"))
rs->is_v2_dir = 1;
+ else if (!strcmp(tok->args[i], "Guard"))
+ rs->is_possible_guard = 1;
}
}