]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fixed REND1 metric label value
authorfriendly73 <friendly73@x.x>
Sun, 19 Feb 2023 19:03:14 +0000 (19:03 +0000)
committerDavid Goulet <dgoulet@torproject.org>
Thu, 25 May 2023 15:03:35 +0000 (11:03 -0400)
src/feature/relay/relay_metrics.c
src/feature/rend/rendmid.c
src/feature/stats/rephist.h

index a1cd855b3dd0e04326fe2d9e79289017727754b8..d08f01838b77f382a31093b3df9e93f72ca9659e 100644 (file)
@@ -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);
index b8336b425031fdc9e40fb647e28fb48e23d45b99..e234332a5413249897668084067888f670e15f03 100644 (file)
@@ -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);
index 99cd5c8172bbf2cf30f29cd3cde3fdfe51f0ea37..cf11f3aeb0bfef2918d0ff1f5c4ee4b631154bbf 100644 (file)
@@ -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