diff options
author | David Goulet <dgoulet@torproject.org> | 2022-03-02 13:20:07 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2022-03-15 13:28:17 -0400 |
commit | 9a4737209617ac9356f77a76b8ee3b38391c1922 (patch) | |
tree | faa05a122ffd919cc7896912972d75f0bd1b5a8f /src/feature/stats/rephist.h | |
parent | 1934e24469bf7184b825efe2b9b0436b1bc35695 (diff) | |
download | tor-9a4737209617ac9356f77a76b8ee3b38391c1922.tar.gz tor-9a4737209617ac9356f77a76b8ee3b38391c1922.zip |
rephist: Introduce a fraction and period for overload onionskin
This code was heavily reused from the previous DNS timeout work done in
ticket #40491 that was removed afterall from our code.
Closes #40560
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/stats/rephist.h')
-rw-r--r-- | src/feature/stats/rephist.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/stats/rephist.h b/src/feature/stats/rephist.h index 2fb24a10a7..e8f43fbb1d 100644 --- a/src/feature/stats/rephist.h +++ b/src/feature/stats/rephist.h @@ -89,6 +89,8 @@ uint64_t rep_hist_get_n_dns_request(int type); void rep_hist_note_dns_request(int type); void rep_hist_note_dns_error(int type, uint8_t error); +void rep_hist_consensus_has_changed(const networkstatus_t *ns); + /** We combine ntor and ntorv3 stats, so we have 3 stat types: * tap, fast, and ntor. The max type is ntor (2) */ #define MAX_ONION_STAT_TYPE ONION_HANDSHAKE_TYPE_NTOR |