aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2010-09-29 17:21:43 -0400
committerRoger Dingledine <arma@torproject.org>2010-09-29 17:21:43 -0400
commit355fc63790bedfd00c062d6aa8d60f00307dc03f (patch)
tree4d8f31bc6d0658ea08e9651bde3655dc8b3e266d /src/or/or.h
parent50720a9a4f8ea4433f3696d42d2f640ad970b285 (diff)
parent48cd096276590e40540bc255b2610931351b14cb (diff)
downloadtor-355fc63790bedfd00c062d6aa8d60f00307dc03f.tar
tor-355fc63790bedfd00c062d6aa8d60f00307dc03f.tar.gz
Merge branch 'maint-0.2.2'
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 8913dbc83..3eb6adde6 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -623,6 +623,10 @@ typedef enum {
/* Negative reasons are internal: we never send them in a DESTROY or TRUNCATE
* call; they only go to the controller for tracking */
+/** Our post-timeout circuit time measurement period expired.
+ * We must give up now */
+#define END_CIRC_REASON_MEASUREMENT_EXPIRED -3
+
/** We couldn't build a path for this circuit. */
#define END_CIRC_REASON_NOPATH -2
/** Catch-all "other" reason for closing origin circuits. */
@@ -2237,9 +2241,13 @@ typedef struct origin_circuit_t {
* to the specification? */
unsigned int remaining_relay_early_cells : 4;
- /** Set if this circuit insanely old and if we already informed the user */
+ /** Set if this circuit is insanely old and we already informed the user */
unsigned int is_ancient : 1;
+ /** Set if this circuit has already been opened. Used to detect
+ * cannibalized circuits. */
+ unsigned int has_opened : 1;
+
/** What commands were sent over this circuit that decremented the
* RELAY_EARLY counter? This is for debugging task 878. */
uint8_t relay_early_commands[MAX_RELAY_EARLY_CELLS_PER_CIRCUIT];