Tweak CELL_STATS event based on comments by nickm.
commit26b49f525d5b2a4781755d72738491c016dd15a9
authorKarsten Loesing <karsten.loesing@gmx.net>
Fri, 24 May 2013 10:29:42 +0000 (24 12:29 +0200)
committerKarsten Loesing <karsten.loesing@gmx.net>
Sat, 25 May 2013 17:51:38 +0000 (25 19:51 +0200)
tree98fbbb6fe3b79612e2c0adc2a44c5b83480a0720
parent2f893624abb65a0df4f0f8ca6fbbe0c00fbf216a
Tweak CELL_STATS event based on comments by nickm.

- Move cell_command_to_string from control.c to command.c.
- Use accessor for global_circuitlist instead of extern.
- Add a struct for cell statistics by command instead of six arrays.
- Split up control_event_circuit_cell_stats by using two helper functions.
- Add TestingEnableCellStatsEvent option.
- Prepare functions for testing.
- Rename a few variables and document a few things better.
doc/tor.1.txt
src/or/command.c
src/or/command.h
src/or/config.c
src/or/control.c
src/or/or.h
src/or/relay.c
src/or/relay.h