diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-12-24 04:09:48 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-12-24 04:09:48 +0000 |
commit | 2e538d9918eeec33d2512823ca8933744a2c7daa (patch) | |
tree | 722e5d15c27d0321cdaa0650bc7ce1553e8993b5 /src/or/or.h | |
parent | 339384238c2cd48c1bf4737a08a6faf700940a2f (diff) | |
download | tor-2e538d9918eeec33d2512823ca8933744a2c7daa.tar.gz tor-2e538d9918eeec33d2512823ca8933744a2c7daa.zip |
r11694@Kushana: nickm | 2006-12-23 23:09:20 -0500
Add a version entry to networkstatus documents; have this entry get parsed and used to calculate whether begin_dir is supported.
svn:r9181
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index 1691098183..15dee82437 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1013,6 +1013,13 @@ typedef struct routerstatus_t { unsigned int is_bad_exit:1; /**< True iff this node is a bad choice for * an exit node. */ + /** True iff we know version info for this router. (i.e., a "v" entry was + * included.) We'll replace all these with a big tor_vesion_t or a char[] + * if the number of traits we care about ever becomes incredibly big. */ + unsigned int version_known:1; + /** True iff this router is a version that supports BEGIN_DIR cells. */ + unsigned int version_supports_begindir:1; + /** True if we, as a directory mirror, want to download the corresponding * routerinfo from the authority who gave us this routerstatus. (That is, * if we don't have the routerinfo, and if we haven't already tried to get it |