diff options
author | George Kadianakis <desnacked@riseup.net> | 2021-03-09 15:36:40 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2021-03-17 18:22:38 +0200 |
commit | 0a5ecb334298187a64f58382231245111130aa76 (patch) | |
tree | 90ddab78a61f285b17ab01a7893763e5f39684a8 /src/app/config/or_options_st.h | |
parent | 80b6054bb016aca0b18f8da79f23a859a804ef07 (diff) | |
download | tor-0a5ecb334298187a64f58382231245111130aa76.tar.gz tor-0a5ecb334298187a64f58382231245111130aa76.zip |
Implement backbone of overload statistics.
- Implement overload statistics structure.
- Implement function that keeps track of overload statistics.
- Implement function that writes overload statistics to descriptor.
- Unittest for the whole logic.
Diffstat (limited to 'src/app/config/or_options_st.h')
-rw-r--r-- | src/app/config/or_options_st.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app/config/or_options_st.h b/src/app/config/or_options_st.h index 90302eae7b..689adbc71b 100644 --- a/src/app/config/or_options_st.h +++ b/src/app/config/or_options_st.h @@ -674,6 +674,9 @@ struct or_options_t { /** If true, include statistics file contents in extra-info documents. */ int ExtraInfoStatistics; + /** If true, include overload statistics in extra-info documents. */ + int OverloadStatistics; + /** If true, do not believe anybody who tells us that a domain resolves * to an internal address, or that an internal address has a PTR mapping. * Helps avoid some cross-site attacks. */ |