[or-cvs] r14900: Also add create/create fast/extends to the dir-usage stats. (tor/trunk/src/or)

weasel at seul.org weasel at seul.org
Mon Jun 2 15:09:36 UTC 2008


Author: weasel
Date: 2008-06-02 11:09:35 -0400 (Mon, 02 Jun 2008)
New Revision: 14900

Modified:
   tor/trunk/src/or/circuitbuild.c
Log:
Also add create/create fast/extends to the dir-usage stats.


Modified: tor/trunk/src/or/circuitbuild.c
===================================================================
--- tor/trunk/src/or/circuitbuild.c	2008-06-02 15:09:29 UTC (rev 14899)
+++ tor/trunk/src/or/circuitbuild.c	2008-06-02 15:09:35 UTC (rev 14900)
@@ -609,6 +609,7 @@
         log_warn(LD_CIRC,"onion_skin_create (first hop) failed.");
         return - END_CIRC_REASON_INTERNAL;
       }
+      note_request("cell: create", 1);
     } else {
       /* We are not an OR, and we're building the first hop of a circuit to a
        * new OR: we can be speedy and use CREATE_FAST to save an RSA operation
@@ -619,6 +620,7 @@
                   sizeof(circ->cpath->fast_handshake_state));
       memcpy(payload, circ->cpath->fast_handshake_state,
              sizeof(circ->cpath->fast_handshake_state));
+      note_request("cell: create fast", 1);
     }
 
     if (circuit_deliver_create_cell(TO_CIRCUIT(circ), cell_type, payload) < 0)
@@ -672,6 +674,7 @@
     }
 
     log_info(LD_CIRC,"Sending extend relay cell.");
+    note_request("cell: extend", 1);
     /* send it to hop->prev, because it will transfer
      * it to a create cell and then send to hop */
     if (relay_send_command_from_edge(0, TO_CIRCUIT(circ),



More information about the tor-commits mailing list