diff options
author | Peter Palfrader <peter@palfrader.org> | 2008-06-02 15:09:35 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2008-06-02 15:09:35 +0000 |
commit | 01c1a355c24e08cb6360184c5d1c40d2e5e36d55 (patch) | |
tree | f0d61c0a1208a9c7537d7f0e86c19f6a680ae806 /src | |
parent | cfb1f554e27a1279dcb434a28da7a545f0587d1a (diff) | |
download | tor-01c1a355c24e08cb6360184c5d1c40d2e5e36d55.tar tor-01c1a355c24e08cb6360184c5d1c40d2e5e36d55.tar.gz |
Also add create/create fast/extends to the dir-usage stats.
svn:r14900
Diffstat (limited to 'src')
-rw-r--r-- | src/or/circuitbuild.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 2ac6ac318..fa34917e9 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -609,6 +609,7 @@ circuit_send_next_onion_skin(origin_circuit_t *circ) 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 @@ circuit_send_next_onion_skin(origin_circuit_t *circ) 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 @@ circuit_send_next_onion_skin(origin_circuit_t *circ) } 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), |