aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-12-21 10:58:20 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-21 10:58:20 -0500
commit89f40ba97a752f125ef7dbb057d64dd5e06a95db (patch)
tree38daafd54586fccdec8797cff158081d3e2f29c6 /src/or/or.h
parent2e0c22d58bbb16bb47fc36246116eec866e4b954 (diff)
parent7d845976e3897fac8e78a4a26688ac57b660151b (diff)
downloadtor-release-0.2.8.tar.gz
tor-release-0.2.8.zip
Merge branch 'maint-0.2.8' into release-0.2.8release-0.2.8
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 da84128530..c26052809c 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1134,6 +1134,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. */