diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-10-17 15:20:00 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-10-17 15:20:00 +0000 |
commit | b713b370bfdd2be8f1456d11f7e087c9cf7cdee7 (patch) | |
tree | 2f9e2c06a9f0a042f56b06a96f66456fde68d07b /src/or/control.c | |
parent | e3b1d059c7f17bf82cf9ac80a50642bb4db6dffe (diff) | |
download | tor-b713b370bfdd2be8f1456d11f7e087c9cf7cdee7.tar.gz tor-b713b370bfdd2be8f1456d11f7e087c9cf7cdee7.zip |
r9060@totoro: nickm | 2006-10-17 11:12:48 -0400
Apply patch from Mike Perry: add more reasons for circuit destroys. (Slightly tweaked to avoid allocating a number for an "internal" reason.)
svn:r8739
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/control.c b/src/or/control.c index 18d59607da..8001fe216e 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -2825,6 +2825,16 @@ circuit_end_reason_to_string(int reason) return "REASON=OR_IDENTITY"; case END_CIRC_REASON_OR_CONN_CLOSED: return "REASON=OR_CONN_CLOSED"; + case END_CIRC_REASON_FINISHED: + return "REASON=FINISHED"; + case END_CIRC_REASON_TIMEOUT: + return "REASON=TIMEOUT"; + case END_CIRC_REASON_DESTROYED: + return "REASON=DESTROYED"; + case END_CIRC_REASON_NOPATH: + return "REASON=NOPATH"; + case END_CIRC_REASON_NOSUCHSERVICE: + return "REASON=NOSUCHSERVICE"; default: log_warn(LD_BUG, "Unrecognized reason code %d", (int)reason); return NULL; |