aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/circuitlist.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2024-01-30 10:13:09 -0500
committerDavid Goulet <dgoulet@torproject.org>2024-01-30 10:13:09 -0500
commit5a5ca444c80ee5ef17a5f0b0d94720e82f51209c (patch)
tree2396d70c3034909832f05ef5c6231055b0c6b88b /src/core/or/circuitlist.h
parent9536c0b0f2e1fb65685471b1728e35ffb61c18f5 (diff)
downloadtor-5a5ca444c80ee5ef17a5f0b0d94720e82f51209c.tar.gz
tor-5a5ca444c80ee5ef17a5f0b0d94720e82f51209c.zip
metrics: Add new relay metrics to MetricsPort
This commit adds the total number of DROP cell seen, the total number of DESTROY cell received and the total number of protocol violation that lead to a circuit close. Closes #40816 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core/or/circuitlist.h')
-rw-r--r--src/core/or/circuitlist.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/or/circuitlist.h b/src/core/or/circuitlist.h
index ca3c5bd0ee..0c8f958d2a 100644
--- a/src/core/or/circuitlist.h
+++ b/src/core/or/circuitlist.h
@@ -172,6 +172,7 @@
extern double cc_stats_circ_close_cwnd_ma;
extern double cc_stats_circ_close_ss_cwnd_ma;
extern uint64_t cc_stats_circs_closed;
+extern uint64_t circ_n_proto_violation;
/** Convert a circuit_t* to a pointer to the enclosing or_circuit_t. Assert
* if the cast is impossible. */