[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor] 02/10: Fixed REND1 metric label value



This is an automated email from the git hooks/post-receive script.

dgoulet pushed a commit to branch main
in repository tor.

commit 24bc66f663f53db9c009b21295e6f7a1953c4244
Author: friendly73 <friendly73@x.x>
AuthorDate: Sun Feb 19 19:03:14 2023 +0000

    Fixed REND1 metric label value
---
 src/feature/relay/relay_metrics.c | 2 +-
 src/feature/rend/rendmid.c        | 2 +-
 src/feature/stats/rephist.h       | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/feature/relay/relay_metrics.c b/src/feature/relay/relay_metrics.c
index a1cd855b3d..d08f01838b 100644
--- a/src/feature/relay/relay_metrics.c
+++ b/src/feature/relay/relay_metrics.c
@@ -1156,7 +1156,7 @@ fill_rend1_cells(void)
       {.name = "success", .key = REND1_SUCCESS},
       {.name = "unsuitable_circuit", .key = REND1_UNSUITABLE_CIRCUIT},
       {.name = "malformed", .key = REND1_MALFORMED},
-      {.name = "unknown_service", .key = REND1_UNKNOWN_SERVICE},
+      {.name = "unknown_cookie", .key = REND1_UNKNOWN_COOKIE},
       {.name = "circuit_dead", .key = REND1_CIRCUIT_DEAD},
   };
   static const size_t num_actions = ARRAY_LENGTH(actions);
diff --git a/src/feature/rend/rendmid.c b/src/feature/rend/rendmid.c
index b8336b4250..e234332a54 100644
--- a/src/feature/rend/rendmid.c
+++ b/src/feature/rend/rendmid.c
@@ -145,7 +145,7 @@ rend_mid_rendezvous(or_circuit_t *circ, const uint8_t *request,
      * client gives up on a rendezvous circuit after sending INTRODUCE1, but
      * before the onion service sends the RENDEZVOUS1 cell.
      */
-    rep_hist_note_rend1_action(REND1_UNKNOWN_SERVICE);
+    rep_hist_note_rend1_action(REND1_UNKNOWN_COOKIE);
     log_fn(LOG_DEBUG, LD_PROTOCOL,
          "Rejecting RENDEZVOUS1 cell with unrecognized rendezvous cookie %s.",
          hexid);
diff --git a/src/feature/stats/rephist.h b/src/feature/stats/rephist.h
index 99cd5c8172..cf11f3aeb0 100644
--- a/src/feature/stats/rephist.h
+++ b/src/feature/stats/rephist.h
@@ -246,7 +246,7 @@ typedef enum {
   REND1_SUCCESS,
   REND1_UNSUITABLE_CIRCUIT,
   REND1_MALFORMED,
-  REND1_UNKNOWN_SERVICE,
+  REND1_UNKNOWN_COOKIE,
   REND1_CIRCUIT_DEAD,
 
   REND1_ACTION_COUNT

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits