aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-08-26 12:49:00 -0400
committerNick Mathewson <nickm@torproject.org>2016-09-26 10:56:51 -0700
commite525f5697f9a0682b2cc24fa9779ebe9f0f3c233 (patch)
tree82d48a2023146861c13c04260faba130f2e7f996 /src/or/or.h
parent90a6fe318cfae4d64fff034574153b8c96895a6c (diff)
downloadtor-e525f5697f9a0682b2cc24fa9779ebe9f0f3c233.tar.gz
tor-e525f5697f9a0682b2cc24fa9779ebe9f0f3c233.zip
Use protocols to see when EXTEND2 support exists.
(Technically, we could just remove extend2 cell checking entirely, since all Tor versions on our network are required to have it, but let's keep this around as an example of How To Do It.)
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 5085139121..befbf716af 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -2198,9 +2198,12 @@ typedef struct routerstatus_t {
* if the number of traits we care about ever becomes incredibly big. */
unsigned int version_known:1;
- /** True iff this router has a version that allows it to accept EXTEND2
- * cells */
- unsigned int version_supports_extend2_cells:1;
+ /** True iff we have a proto line for this router.*/
+ unsigned int protocols_known:1;
+
+ /** True iff this router has a version or protocol list that allows it to
+ * accept EXTEND2 cells */
+ unsigned int supports_extend2_cells:1;
unsigned int has_bandwidth:1; /**< The vote/consensus had bw info */
unsigned int has_exitsummary:1; /**< The vote/consensus had exit summaries */