aboutsummaryrefslogtreecommitdiff
path: root/src/or/rephist.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-02-04 11:11:54 -0500
committerNick Mathewson <nickm@torproject.org>2013-02-04 11:11:54 -0500
commit4eff8b65305248b1e7a57d1efdf8f55039719bd7 (patch)
tree45ad7bbf37c0d5b1f583d1c072e0210786bfa080 /src/or/rephist.h
parent61995d3e2cd7631df1fcb9fbdf9333dee24566b4 (diff)
downloadtor-4eff8b65305248b1e7a57d1efdf8f55039719bd7.tar
tor-4eff8b65305248b1e7a57d1efdf8f55039719bd7.tar.gz
When we mark a node as a sybil, mark it down and reset its uptime to 0
This prevents bug 8147, where such nodes would accrue points towards Guard, Fast, HSDir, and so on. Fixes bug 8147.
Diffstat (limited to 'src/or/rephist.h')
-rw-r--r--src/or/rephist.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/rephist.h b/src/or/rephist.h
index 5568330dd..811cd8d45 100644
--- a/src/or/rephist.h
+++ b/src/or/rephist.h
@@ -24,6 +24,8 @@ void rep_hist_dump_stats(time_t now, int severity);
void rep_hist_note_bytes_read(size_t num_bytes, time_t when);
void rep_hist_note_bytes_written(size_t num_bytes, time_t when);
+void rep_hist_make_router_pessimal(const char *id, time_t when);
+
void rep_hist_note_dir_bytes_read(size_t num_bytes, time_t when);
void rep_hist_note_dir_bytes_written(size_t num_bytes, time_t when);