summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-03-19 23:58:42 +0000
committerRoger Dingledine <arma@torproject.org>2005-03-19 23:58:42 +0000
commit4a497e503077826228df667083548d06bf8afc2f (patch)
treeb9afc12290390ca539fd91c78dc54c1fed33c39a /src/or/or.h
parent856ab90ca8cf6ace5528396049d53e302d1a3ebe (diff)
downloadtor-4a497e503077826228df667083548d06bf8afc2f.tar.gz
tor-4a497e503077826228df667083548d06bf8afc2f.zip
if our clock jumps forward by 100 seconds or more, assume something
has gone wrong with our network and abandon all not-yet-used circs. svn:r3792
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 0a8d6610f4..1991d7fcf5 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1124,6 +1124,7 @@ circuit_t *circuit_establish_circuit(uint8_t purpose, const char *exit_digest,
int need_uptime, int need_capacity, int internal);
void circuit_n_conn_done(connection_t *or_conn, int status);
int circuit_send_next_onion_skin(circuit_t *circ);
+void circuit_note_clock_jumped(int seconds_elapsed);
int circuit_extend(cell_t *cell, circuit_t *circ);
int circuit_init_cpath_crypto(crypt_path_t *cpath, char *key_data, int reverse);
int circuit_finish_handshake(circuit_t *circ, char *reply);
@@ -1149,6 +1150,7 @@ circuit_t *circuit_get_next_by_pk_and_purpose(circuit_t *start,
circuit_t *circuit_get_rendezvous(const char *cookie);
circuit_t *circuit_get_clean_open(uint8_t purpose, int need_uptime,
int need_capacity, int internal);
+void circuit_mark_all_unused_circs(void);
int _circuit_mark_for_close(circuit_t *circ);
#define circuit_mark_for_close(c) \