diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-10-31 16:53:31 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-11-01 10:04:48 -0400 |
commit | 5de88dda0acda6914bacd1e14c2e037798c5d9d9 (patch) | |
tree | af0daa62ea1e2512d51b05c67a3f17f99cc4b89e /src/or/or.h | |
parent | 0de71bf8eb5031b1c6539ea48627a938e200b5da (diff) | |
download | tor-5de88dda0acda6914bacd1e14c2e037798c5d9d9.tar.gz tor-5de88dda0acda6914bacd1e14c2e037798c5d9d9.zip |
circuit_build_failed: distinguish "got DESTROY" case
Roger spotted this on tor-dev in his comments on proposal 221.
We etect 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 eff5a6d2b4..ad91f7da29 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2799,6 +2799,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? */ |