aboutsummaryrefslogtreecommitdiff
path: root/src/feature/stats/rephist.h
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2023-09-19 18:34:27 +0200
committerAlexander Færøy <ahf@torproject.org>2023-09-19 18:34:27 +0200
commitb855a786b6e7825600e2cc01a9e2c02f4f9b925f (patch)
tree86fd41d1c089cfa41d9c32379865096fd71aebea /src/feature/stats/rephist.h
parentc884a07f08881cb82ce01fda766e8b3099365bf2 (diff)
downloadtor-b855a786b6e7825600e2cc01a9e2c02f4f9b925f.tar.gz
tor-b855a786b6e7825600e2cc01a9e2c02f4f9b925f.zip
Handle ntor and ntor_v3 individually in rephist and for MetricsPort.
This patch should not mess with the DoS protection here. Fixes tpo/core/tor#40638.
Diffstat (limited to 'src/feature/stats/rephist.h')
-rw-r--r--src/feature/stats/rephist.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/stats/rephist.h b/src/feature/stats/rephist.h
index fbfab4c451..a51d81beb9 100644
--- a/src/feature/stats/rephist.h
+++ b/src/feature/stats/rephist.h
@@ -102,8 +102,8 @@ void rep_hist_note_dns_error(int type, uint8_t error);
void rep_hist_consensus_has_changed(const networkstatus_t *ns);
/** We combine ntor and ntorv3 stats, so we have 3 stat types:
- * tap, fast, and ntor. The max type is ntor (2) */
-#define MAX_ONION_STAT_TYPE ONION_HANDSHAKE_TYPE_NTOR
+ * tap, fast, and ntor. The max type is ntor_v3 (3) */
+#define MAX_ONION_STAT_TYPE MAX_ONION_HANDSHAKE_TYPE
extern uint64_t rephist_total_alloc;
extern uint32_t rephist_total_num;