diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-23 17:56:31 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-23 17:56:31 +0000 |
commit | 558e9899e4d11d8ef194e5bc1761d5d2f6dff450 (patch) | |
tree | 45eb50017f2b65c70babf90b3c088a3c952ce6de /src/or/relay.c | |
parent | d7f55dafe0287c1a8c13478c4e077da65533769c (diff) | |
download | tor-558e9899e4d11d8ef194e5bc1761d5d2f6dff450.tar.gz tor-558e9899e4d11d8ef194e5bc1761d5d2f6dff450.zip |
Document most undocumented variables.
svn:r17754
Diffstat (limited to 'src/or/relay.c')
-rw-r--r-- | src/or/relay.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/or/relay.c b/src/or/relay.c index 12ec2648d2..75bbf4cd23 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -1163,13 +1163,17 @@ connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ, return 0; /* for forward compatibility, don't kill the circuit */ } -/* DOCDOC stats_n_data_cells_packaged */ +/** How many relay_data cells have we built, ever? */ uint64_t stats_n_data_cells_packaged = 0; -/* DOCDOC stats_n_data_bytes_packaged */ +/** How many bytes of data have we put in relay_data cells have we built, + * ever? This would be RELAY_PAYLOAD_SIZE*stats_n_data_cells_packaged if + * every relay cell we ever sent were completely full of data. */ uint64_t stats_n_data_bytes_packaged = 0; -/* DOCDOC stats_n_data_cells_received */ +/** How many relay_data cells have we received, ever? */ uint64_t stats_n_data_cells_received = 0; -/* DOCDOC stats_n_data_bytes_received */ +/** How many bytes of data have we received relay_data cells, ever? This would + * be RELAY_PAYLOAD_SIZE*stats_n_data_cells_packaged if every relay cell we + * ever received were completely full of data. */ uint64_t stats_n_data_bytes_received = 0; /** While conn->inbuf has an entire relay payload of bytes on it, @@ -1430,7 +1434,7 @@ circuit_consider_sending_sendme(circuit_t *circ, crypt_path_t *layer_hint) /** The total number of cells we have allocated from the memory pool. */ static int total_cells_allocated = 0; -/* DOCDOC cell_pool */ +/** A memory pool to allocate packed_cell_t objects. */ static mp_pool_t *cell_pool = NULL; /** Allocate structures to hold cells. */ |