diff options
author | Matthew Finkel <Matthew.Finkel@gmail.com> | 2014-10-28 17:12:52 +0000 |
---|---|---|
committer | David Goulet <dgoulet@ev0ke.net> | 2015-12-16 16:15:41 +0100 |
commit | 467d0919d26977322a9404a9f0c426ac67c475fb (patch) | |
tree | 6bbd6441e5c2662fe1894dbe182ac11b630fbf6b /src/or/or.h | |
parent | 3317cd3a1f4e3a7883bf9a5eba3f9a13097fe437 (diff) | |
download | tor-467d0919d26977322a9404a9f0c426ac67c475fb.tar.gz tor-467d0919d26977322a9404a9f0c426ac67c475fb.zip |
Authorities must set a router's V2Dir flag if it supports tunnelled reqs
Partial implementation of prop 237, ticket 12538
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 e621fe9708..fe59124440 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2147,6 +2147,11 @@ typedef struct { * tests for it. */ unsigned int needs_retest_if_added:1; + /** True iff this router included "tunnelled-dir-server" in its descriptor, + * implies it accepts tunnelled directory requests, or it advertised + * dir_port > 0. */ + unsigned int supports_tunnelled_dir_requests:1; + /** Tor can use this router for general positions in circuits; we got it * from a directory server as usual, or we're an authority and a server * uploaded it. */ @@ -2224,6 +2229,9 @@ typedef struct routerstatus_t { * an exit node. */ unsigned int is_hs_dir:1; /**< True iff this router is a v2-or-later hidden * service directory. */ + unsigned int is_v2_dir:1; /** True iff this router publishes an open DirPort + * or it claims to accept tunnelled dir requests. + */ /** 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_version_t or a char[] * if the number of traits we care about ever becomes incredibly big. */ |