summaryrefslogtreecommitdiff
path: root/src/feature/relay
diff options
context:
space:
mode:
authorfriendly73 <friendly73@x.x>2023-04-15 12:03:14 +0000
committerDavid Goulet <dgoulet@torproject.org>2023-05-25 11:03:35 -0400
commit3d5d8d59c1240e436490449895b597871efc0f30 (patch)
tree476683ad44717bbd36361a727500b16c9fab4022 /src/feature/relay
parent7e57b9dbbffe224e970e8c10f0a9695840aba5e4 (diff)
downloadtor-3d5d8d59c1240e436490449895b597871efc0f30.tar.gz
tor-3d5d8d59c1240e436490449895b597871efc0f30.zip
Added relay prefix to new metrics functions
Diffstat (limited to 'src/feature/relay')
-rw-r--r--src/feature/relay/relay_metrics.c8
-rw-r--r--src/feature/relay/relay_metrics.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/feature/relay/relay_metrics.c b/src/feature/relay/relay_metrics.c
index 95367d82cd..8f3b82bd96 100644
--- a/src/feature/relay/relay_metrics.c
+++ b/src/feature/relay/relay_metrics.c
@@ -1056,7 +1056,7 @@ fill_signing_cert_expiry(void)
static uint64_t est_intro_actions[EST_INTRO_ACTION_COUNT] = {0};
void
-increment_est_intro_action(est_intro_action_t action)
+relay_increment_est_intro_action(est_intro_action_t action)
{
est_intro_actions[action]++;
}
@@ -1092,7 +1092,7 @@ fill_est_intro_cells(void)
static uint64_t est_rend_actions[EST_REND_ACTION_COUNT] = {0};
void
-increment_est_rend_action(est_rend_action_t action)
+relay_increment_est_rend_action(est_rend_action_t action)
{
est_rend_actions[action]++;
}
@@ -1129,7 +1129,7 @@ fill_est_rend_cells(void)
static uint64_t intro1_actions[INTRO1_ACTION_COUNT] = {0};
void
-increment_intro1_action(intro1_action_t action)
+relay_increment_intro1_action(intro1_action_t action)
{
intro1_actions[action]++;
}
@@ -1167,7 +1167,7 @@ fill_intro1_cells(void)
static uint64_t rend1_actions[REND1_ACTION_COUNT] = {0};
void
-increment_rend1_action(rend1_action_t action)
+relay_increment_rend1_action(rend1_action_t action)
{
rend1_actions[action]++;
}
diff --git a/src/feature/relay/relay_metrics.h b/src/feature/relay/relay_metrics.h
index 523570cadd..cf9dddf955 100644
--- a/src/feature/relay/relay_metrics.h
+++ b/src/feature/relay/relay_metrics.h
@@ -89,7 +89,7 @@ typedef enum {
EST_INTRO_ACTION_COUNT
} est_intro_action_t;
-void increment_est_intro_action(est_intro_action_t);
+void relay_increment_est_intro_action(est_intro_action_t);
typedef enum {
EST_REND_SUCCESS,
@@ -102,7 +102,7 @@ typedef enum {
EST_REND_ACTION_COUNT
} est_rend_action_t;
-void increment_est_rend_action(est_rend_action_t);
+void relay_increment_est_rend_action(est_rend_action_t);
typedef enum {
INTRO1_SUCCESS,
@@ -116,7 +116,7 @@ typedef enum {
INTRO1_ACTION_COUNT
} intro1_action_t;
-void increment_intro1_action(intro1_action_t);
+void relay_increment_intro1_action(intro1_action_t);
typedef enum {
REND1_SUCCESS,
@@ -128,6 +128,6 @@ typedef enum {
REND1_ACTION_COUNT
} rend1_action_t;
-void increment_rend1_action(rend1_action_t);
+void relay_increment_rend1_action(rend1_action_t);
#endif /* !defined(TOR_FEATURE_RELAY_RELAY_METRICS_H) */