summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-10-20 17:54:48 +0000
committerNick Mathewson <nickm@torproject.org>2006-10-20 17:54:48 +0000
commitb27cb38dee3aa024e191a974bcf2801d4e87c0a5 (patch)
treea08aa6d0cd08cea79e981975cb9b75ed803cce87 /src/or/or.h
parent8e94097edb05b204cff7772588a3376507b3fd0b (diff)
downloadtor-b27cb38dee3aa024e191a974bcf2801d4e87c0a5.tar.gz
tor-b27cb38dee3aa024e191a974bcf2801d4e87c0a5.zip
r9307@Kushana: nickm | 2006-10-20 13:53:54 -0400
Have connection_about_to_close use an end_reason field in edge_connection_t to tell what reason to tell the controller for closing the stream. Set end_reason in connection_edge_end, connection_mark_unattached_ap, and everwhere we set edge_has_sent_end. Add a changelog entry. svn:r8779
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 9c1db0f42d..21564707ca 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -756,6 +756,9 @@ typedef struct edge_connection_t {
uint16_t stream_id; /**< The stream ID used for this edge connection on its
* circuit */
+ /** The reason why this connection is closing; passed to the controller. */
+ uint16_t end_reason;
+
/** Quasi-global identifier for this connection; used for control.c */
/* XXXX NM This can get re-used after 2**32 streams */
uint32_t global_identifier;