aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/or.h
diff options
context:
space:
mode:
authorteor <teor@riseup.net>2020-05-11 12:21:18 +1000
committerteor <teor@riseup.net>2020-05-11 12:24:06 +1000
commit51f32140b41551bf8f34c9e30a067ddf027401b6 (patch)
tree4e021961b7beb58fbc101113dbbd86101f23a819 /src/core/or/or.h
parente787e521af990a76c6e42cd1a8d3f46f41561f24 (diff)
downloadtor-51f32140b41551bf8f34c9e30a067ddf027401b6.tar.gz
tor-51f32140b41551bf8f34c9e30a067ddf027401b6.zip
protover: Sort version flags by their underlying protocols
Also fix some comment typos, mainly ">=" when the code says "=". Part of 33226.
Diffstat (limited to 'src/core/or/or.h')
-rw-r--r--src/core/or/or.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/or/or.h b/src/core/or/or.h
index 5b35cbe7f1..28211b48c6 100644
--- a/src/core/or/or.h
+++ b/src/core/or/or.h
@@ -830,6 +830,10 @@ typedef struct protover_summary_flags_t {
* the v3 protocol detailed in proposal 224. This requires HSIntro=4. */
unsigned int supports_ed25519_hs_intro : 1;
+ /** True iff this router has a protocol list that allows it to support the
+ * ESTABLISH_INTRO DoS cell extension. Requires HSIntro=5. */
+ unsigned int supports_establish_intro_dos_extension : 1;
+
/** True iff this router has a protocol list that allows it to be an hidden
* service directory supporting version 3 as seen in proposal 224. This
* requires HSDir=2. */
@@ -841,12 +845,9 @@ typedef struct protover_summary_flags_t {
unsigned int supports_v3_rendezvous_point: 1;
/** True iff this router has a protocol list that allows clients to
- * negotiate hs circuit setup padding. Requires Padding>=2. */
+ * negotiate hs circuit setup padding. Requires Padding=2. */
unsigned int supports_hs_setup_padding : 1;
- /** True iff this router has a protocol list that allows it to support the
- * ESTABLISH_INTRO DoS cell extension. Requires HSIntro>=5. */
- unsigned int supports_establish_intro_dos_extension : 1;
} protover_summary_flags_t;
typedef struct routerinfo_t routerinfo_t;