aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-03-20 04:59:29 +0000
committerNick Mathewson <nickm@torproject.org>2004-03-20 04:59:29 +0000
commit2ba2f0218130731e46fed9cc565d0b802d4f4a31 (patch)
tree4f338697777b4fec4472150c2fbe34a0766c4d4a /src/or/or.h
parent50354cbae73cfa50315eff581010fa27fa6451fd (diff)
downloadtor-2ba2f0218130731e46fed9cc565d0b802d4f4a31.tar
tor-2ba2f0218130731e46fed9cc565d0b802d4f4a31.tar.gz
Integrate the new "rephist" [rep(utation) hist(ory)] module to trace
successful/failed connections, successful/failed extends, and connection uptimes. It's still not done: more tests are needed, and not everything calls connection/circuit_mark_for_close properly. This skews the results. Also, there needs to be a 'testing' mode for non-OP ORs, where they periodically build circuits just to test whether extends work. svn:r1313
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 154df4a58..8754e4468 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -209,6 +209,9 @@
#define END_STREAM_REASON_TIMEOUT 7
#define _MAX_END_STREAM_REASON 7
+/* Reasons used by connection_mark_for_close */
+#define CLOSE_REASON_UNUSED_OR_CONN 100
+
/* default cipher function */
#define DEFAULT_CIPHER CRYPTO_CIPHER_AES_CTR
/* Used to en/decrypt onion skins */
@@ -905,11 +908,12 @@ size_t dirserv_get_directory(const char **cp);
void rep_hist_init(void);
void rep_hist_note_connect_failed(const char* nickname, time_t when);
void rep_hist_note_connect_succeeded(const char* nickname, time_t when);
+void rep_hist_note_disconnect(const char* nickname, time_t when);
void rep_hist_note_connection_died(const char* nickname, time_t when);
void rep_hist_note_extend_succeeded(const char *from_name,
const char *to_name);
void rep_hist_note_extend_failed(const char *from_name, const char *to_name);
-void rep_hist_dump_status(time_t now);
+void rep_hist_dump_stats(time_t now, int severity);
#endif