diff options
author | Mike Perry <mikeperry-git@fscked.org> | 2010-09-29 11:41:27 -0700 |
---|---|---|
committer | Mike Perry <mikeperry-git@fscked.org> | 2010-09-29 11:41:27 -0700 |
commit | 5aa4564ab940250fd9a8776d7cbfde8ab4f3cd31 (patch) | |
tree | 5cac5f96a63dbd8c0d567f5abe4185004fea47c6 /src/or/or.h | |
parent | 9b49a89430eac9a50fdb067aefec9d1561872796 (diff) | |
download | tor-5aa4564ab940250fd9a8776d7cbfde8ab4f3cd31.tar.gz tor-5aa4564ab940250fd9a8776d7cbfde8ab4f3cd31.zip |
Only count timeout data for 3 hop circuits.
Use 4/3 of this timeout value for 4 hop circuits, and use half of it for
canabalized circuits.
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h index 6332de83a1..2399ecff39 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2160,9 +2160,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]; |