summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-12-21 10:49:40 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-21 10:49:40 -0500
commit03b4dd92a4c359fb2f699c579ed6dbcd73981267 (patch)
tree7caabdc7ee7602fd6d217f8be8de723e1d94668e /src/or/or.h
parent08ed0d79308b308f690b80d65b22be11a97caf09 (diff)
parent79a50afa0e3dd44fc5ef80806ccda501fab5a718 (diff)
downloadtor-03b4dd92a4c359fb2f699c579ed6dbcd73981267.tar.gz
tor-03b4dd92a4c359fb2f699c579ed6dbcd73981267.zip
Merge branch 'maint-0.2.9' into maint-0.3.0
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 50e6e3e71b..2b56a486d8 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1133,6 +1133,21 @@ typedef struct cell_queue_t {
int n; /**< The number of cells in the queue. */
} cell_queue_t;
+/** A single queued destroy cell. */
+typedef struct destroy_cell_t {
+ TOR_SIMPLEQ_ENTRY(destroy_cell_t) next;
+ circid_t circid;
+ uint32_t inserted_time; /** Timestamp when this was queued. */
+ uint8_t reason;
+} destroy_cell_t;
+
+/** A queue of destroy cells on a channel. */
+typedef struct destroy_cell_queue_t {
+ /** Linked list of packed_cell_t */
+ TOR_SIMPLEQ_HEAD(dcell_simpleq, destroy_cell_t) head;
+ int n; /**< The number of cells in the queue. */
+} destroy_cell_queue_t;
+
/** Beginning of a RELAY cell payload. */
typedef struct {
uint8_t command; /**< The end-to-end relay command. */