diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-11-21 16:59:00 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-11-30 14:42:53 -0500 |
commit | 238828c92b1cc186577e44490caf4fa3870e724d (patch) | |
tree | 13493488b43275de574917f9b68d9cabb612e002 /src/or/or.h | |
parent | 36e9fbd7522fcee54b9f048bf506bfddc4bffc95 (diff) | |
download | tor-238828c92b1cc186577e44490caf4fa3870e724d.tar.gz tor-238828c92b1cc186577e44490caf4fa3870e724d.zip |
Add a new GUARD_WAIT state for circuits
This state corresponds to the WAITING_FOR_BETTER_GUARD state; it's
for circuits that are 100% constructed, but which we won't use until
we are sure that we wouldn't use circuits with a better guard.
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 4bc806619c..eb0025d100 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -438,8 +438,12 @@ typedef enum { /** Circuit state: I'd like to deliver a create, but my n_chan is still * connecting. */ #define CIRCUIT_STATE_CHAN_WAIT 2 +/** Circuit state: the circuit is open but we don't want to actually use it + * until we find out if a better guard will be available. + */ +#define CIRCUIT_STATE_GUARD_WAIT 3 /** Circuit state: onionskin(s) processed, ready to send/receive cells. */ -#define CIRCUIT_STATE_OPEN 3 +#define CIRCUIT_STATE_OPEN 4 #define CIRCUIT_PURPOSE_MIN_ 1 |