summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-12-21 10:50:06 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-21 10:50:06 -0500
commit08469a338ab524e233f357d46504338fd64dedf9 (patch)
tree6a517a1b555e1662cd88e181bd45ef073483836d /src/or/or.h
parent5e92646715f32cae4d4d7f4f9a0f09108b8ddd73 (diff)
parent03b4dd92a4c359fb2f699c579ed6dbcd73981267 (diff)
downloadtor-08469a338ab524e233f357d46504338fd64dedf9.tar.gz
tor-08469a338ab524e233f357d46504338fd64dedf9.zip
Merge branch 'maint-0.3.0' into maint-0.3.1
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 77207bc031..95281e701f 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1155,6 +1155,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. */