diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-10-02 20:00:38 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-10-02 20:00:38 +0000 |
commit | 985a3e14923e4d8a8b9e2914a66a800f89713da6 (patch) | |
tree | 38ed8d05e0291ac896f38d63a6f2e975686abc68 /src/or/or.h | |
parent | 6ac42f5ec059421fdfbeb3ef8f2b4448c14b2947 (diff) | |
download | tor-985a3e14923e4d8a8b9e2914a66a800f89713da6.tar.gz tor-985a3e14923e4d8a8b9e2914a66a800f89713da6.zip |
Add new cell fullness and bandwidth stats.
svn:r533
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index 292803f684..ed360ce98b 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -509,10 +509,19 @@ void assert_cpath_ok(const crypt_path_t *c); void assert_cpath_layer_ok(const crypt_path_t *c); void assert_circuit_ok(const circuit_t *c); +extern unsigned long stats_n_relay_cells_relayed; +extern unsigned long stats_n_relay_cells_delivered; + /********************************* command.c ***************************/ void command_process_cell(cell_t *cell, connection_t *conn); +extern unsigned long stats_n_padding_cells_processed; +extern unsigned long stats_n_create_cells_processed; +extern unsigned long stats_n_created_cells_processed; +extern unsigned long stats_n_relay_cells_processed; +extern unsigned long stats_n_destroy_cells_processed; + /********************************* config.c ***************************/ int getconfig(int argc, char **argv, or_options_t *options); @@ -573,6 +582,11 @@ int connection_consider_sending_sendme(connection_t *conn, int edge_type); int connection_exit_connect(connection_t *conn); +extern uint64_t stats_n_data_cells_packaged; +extern uint64_t stats_n_data_bytes_packaged; +extern uint64_t stats_n_data_cells_received; +extern uint64_t stats_n_data_bytes_received; + /********************************* connection_or.c ***************************/ int connection_or_process_inbuf(connection_t *conn); |