diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-19 18:56:24 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-19 18:56:24 +0000 |
commit | 7bb202fd1944d49f294420bbf7b874a5ccbf0f34 (patch) | |
tree | 59fda12d90f960c8300b1311e5c7fef68eec0d3c /src/or/or.h | |
parent | ee2b770deebba5b4cd80416ad8e757e478723987 (diff) | |
download | tor-7bb202fd1944d49f294420bbf7b874a5ccbf0f34.tar tor-7bb202fd1944d49f294420bbf7b874a5ccbf0f34.tar.gz |
r15965@catbus: nickm | 2007-10-19 13:32:11 -0400
Client-side implementation for proposal 122.
svn:r12051
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index bbf18bdb5..2c9f436f8 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1221,6 +1221,8 @@ typedef struct routerstatus_t { unsigned int is_fast:1; /**< True iff this router has good bandwidth. */ unsigned int is_running:1; /**< True iff this router is up. */ unsigned int is_named:1; /**< True iff "nickname" belongs to this router. */ + unsigned int is_unnamed:1; /**< True iff "nickname" belongs to another + * router. */ unsigned int is_valid:1; /**< True iff this router is validated. */ unsigned int is_v2_dir:1; /**< True iff this router can serve directory * information with v2 of the directory @@ -1349,6 +1351,11 @@ typedef struct networkstatus_vote_t { time_t valid_until; /**< Time after which this vote or consensus should not * be used. */ + /** Consensus only: what method was used to produce this consensus? */ + int consensus_method; + /** Vote only: what methods is this voter willing to use? */ + smartlist_t *supported_methods; + /** How long does this vote/consensus claim that authorities take to * distribute their votes to one another? */ int vote_seconds; @@ -3091,6 +3098,7 @@ routerstatus_t *router_get_consensus_status_by_descriptor_digest( routerstatus_t *router_get_consensus_status_by_nickname(const char *nickname, int warn_if_unnamed); const char *networkstatus_get_router_digest_by_nickname(const char *nickname); +int networkstatus_nickname_is_unnamed(const char *nickname); void networkstatus_consensus_download_failed(int status_code); int should_delay_dir_fetches(or_options_t *options); void update_networkstatus_downloads(time_t now); |