aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-11-18 07:48:00 +0000
committerRoger Dingledine <arma@torproject.org>2003-11-18 07:48:00 +0000
commita3e39b0ceb4478339f9903ab6e01a3984e208d42 (patch)
treea020d00d6914aef7d85afb17d4256203e4667dce /src/or/or.h
parentbb0e409fbd9416c17b8a4a071b6c8404580077ea (diff)
downloadtor-a3e39b0ceb4478339f9903ab6e01a3984e208d42.tar
tor-a3e39b0ceb4478339f9903ab6e01a3984e208d42.tar.gz
don't build too many circs at once
expire circs that have been building for too long svn:r835
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h
index fe9196e08..81aae7d10 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -110,7 +110,6 @@
#define CIRC_ID_TYPE_LOWER 0
#define CIRC_ID_TYPE_HIGHER 1
-#define CIRC_ID_TYPE_BOTH 2
#define _CONN_TYPE_MIN 3
#define CONN_TYPE_OR_LISTENER 3
@@ -518,6 +517,9 @@ circuit_t *circuit_get_by_circ_id_conn(circ_id_t circ_id, connection_t *conn);
circuit_t *circuit_get_by_conn(connection_t *conn);
circuit_t *circuit_get_newest(connection_t *conn, int must_be_open);
+void circuit_expire_building(void);
+int circuit_count_building(void);
+
int circuit_deliver_relay_cell(cell_t *cell, circuit_t *circ,
int cell_direction, crypt_path_t *layer_hint);
int relay_crypt(circuit_t *circ, char *in, int inlen, char cell_direction,