diff options
author | friendly73 <friendly73@x.x> | 2023-02-19 16:17:50 +0000 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2023-05-25 11:03:35 -0400 |
commit | 36076d3c46afd02bb7072c9d2aa9c5196932f024 (patch) | |
tree | 591e88f1e467f986c40c2b29a451d9365c773d4e /src/feature/stats/rephist.h | |
parent | a1042f4873edd2f04787e7f60b3f9d3642b36611 (diff) | |
download | tor-36076d3c46afd02bb7072c9d2aa9c5196932f024.tar.gz tor-36076d3c46afd02bb7072c9d2aa9c5196932f024.zip |
Added INTRO and REND metrics for relay.
Diffstat (limited to 'src/feature/stats/rephist.h')
-rw-r--r-- | src/feature/stats/rephist.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/feature/stats/rephist.h b/src/feature/stats/rephist.h index fbfab4c451..99cd5c8172 100644 --- a/src/feature/stats/rephist.h +++ b/src/feature/stats/rephist.h @@ -200,3 +200,57 @@ const struct hs_v3_stats_t *rep_hist_get_hs_v3_stats(void); #endif /* defined(TOR_UNIT_TESTS) */ #endif /* !defined(TOR_REPHIST_H) */ + +typedef enum { + EST_INTRO_SUCCESS, + EST_INTRO_MALFORMED, + EST_INTRO_UNSUITABLE_CIRCUIT, + EST_INTRO_CIRCUIT_DEAD, + + EST_INTRO_ACTION_COUNT +} est_intro_action_t; + +void rep_hist_note_est_intro_action(est_intro_action_t); +uint64_t rep_hist_get_est_intro_action_count(est_intro_action_t); + +typedef enum { + EST_REND_SUCCESS, + EST_REND_UNSUITABLE_CIRCUIT, + EST_REND_SINGLE_HOP, + EST_REND_MALFORMED, + EST_REND_DUPLICATE_COOKIE, + EST_REND_CIRCUIT_DEAD, + + EST_REND_ACTION_COUNT +} est_rend_action_t; + +void rep_hist_note_est_rend_action(est_rend_action_t); +uint64_t rep_hist_get_est_rend_action_count(est_rend_action_t); + +typedef enum { + INTRO1_SUCCESS, + INTRO1_CIRCUIT_DEAD, + INTRO1_MALFORMED, + INTRO1_UNKNOWN_SERVICE, + INTRO1_RATE_LIMITED, + INTRO1_CIRCUIT_REUSED, + INTRO1_SINGLE_HOP, + + INTRO1_ACTION_COUNT +} intro1_action_t; + +void rep_hist_note_intro1_action(intro1_action_t); +uint64_t rep_hist_get_intro1_action_count(intro1_action_t); + +typedef enum { + REND1_SUCCESS, + REND1_UNSUITABLE_CIRCUIT, + REND1_MALFORMED, + REND1_UNKNOWN_SERVICE, + REND1_CIRCUIT_DEAD, + + REND1_ACTION_COUNT +} rend1_action_t; + +void rep_hist_note_rend1_action(rend1_action_t); +uint64_t rep_hist_get_rend1_action_count(rend1_action_t); |