diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-10-31 16:53:31 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2014-07-25 11:59:00 -0400 |
commit | d5558f00729992a9abeeb1cb1512004de35ec007 (patch) | |
tree | 142367d1a19fe95092ed68d596ccb7a6f87c4e3d /src/or/or.h | |
parent | e001610c99bea661dbefc693ec173a90fcb3ee5e (diff) | |
download | tor-d5558f00729992a9abeeb1cb1512004de35ec007.tar.gz tor-d5558f00729992a9abeeb1cb1512004de35ec007.zip |
circuit_build_failed: distinguish "first hop chan failed", "CREATE failed"
Roger spotted this on tor-dev in his comments on proposal 221.
(Actually, detect DESTROY vs everything else, since arma likes
network timeout indicating failure but not overload indicating failure.)
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index 3eaf3447dc..34f055cf06 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2785,6 +2785,9 @@ typedef struct circuit_t { * allowing n_streams to add any more cells. (OR circuit only.) */ unsigned int streams_blocked_on_p_chan : 1; + /** True iff this circuit has received a DESTROY cell in either direction */ + unsigned int received_destroy : 1; + uint8_t state; /**< Current status of this circuit. */ uint8_t purpose; /**< Why are we creating this circuit? */ |