diff options
author | George Kadianakis <desnacked@riseup.net> | 2014-12-02 12:20:35 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-12-19 10:35:25 -0500 |
commit | 14e83e626be84c4f311b8e8f0d80ca141675fa9e (patch) | |
tree | 4e15bdc7b247fa007a4fe9a10f558e3a491ba8c4 /src/or/rephist.h | |
parent | 7cd53b75c10831e01e288b01f63cab069d3e3035 (diff) | |
download | tor-14e83e626be84c4f311b8e8f0d80ca141675fa9e.tar.gz tor-14e83e626be84c4f311b8e8f0d80ca141675fa9e.zip |
Add two hidden-service related statistics.
The two statistics are:
1. number of RELAY cells observed on successfully established
rendezvous circuits; and
2. number of .onion addresses observed as hidden-service
directory.
Both statistics are accumulated over 24 hours, obfuscated by rounding
up to the next multiple of a given number and adding random noise,
and written to local file stats/hidserv-stats.
Notably, no statistics will be gathered on clients or services, but
only on relays.
Diffstat (limited to 'src/or/rephist.h')
-rw-r--r-- | src/or/rephist.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/rephist.h b/src/or/rephist.h index d853fe2e00..8fd1599513 100644 --- a/src/or/rephist.h +++ b/src/or/rephist.h @@ -99,6 +99,13 @@ void rep_hist_note_circuit_handshake_requested(uint16_t type); void rep_hist_note_circuit_handshake_assigned(uint16_t type); void rep_hist_log_circuit_handshake_stats(time_t now); +void rep_hist_hs_stats_init(time_t now); +void rep_hist_hs_stats_term(void); +time_t rep_hist_hs_stats_write(time_t now); +char *rep_hist_get_hs_stats_string(void); +void rep_hist_seen_new_rp_cell(void); +void rep_hist_stored_maybe_new_hs(const crypto_pk_t *pubkey); + void rep_hist_free_all(void); #endif |