diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-12-21 10:58:20 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-12-21 10:58:20 -0500 |
commit | 29e23e62c9be846ce68210d72448cf955a239d8c (patch) | |
tree | 9ca4f5386abf12db2482dac5bb2d2fa9a783cdd1 /src/or/or.h | |
parent | 88642bbdc783d8616ba779dbd33378e2c4e09501 (diff) | |
parent | 84adb9fcca3d4e1954c1dd215a3e765c689d82b3 (diff) | |
download | tor-29e23e62c9be846ce68210d72448cf955a239d8c.tar.gz tor-29e23e62c9be846ce68210d72448cf955a239d8c.zip |
Merge branch 'maint-0.3.2' into release-0.3.2
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index 809714b5e2..03e20b80de 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1178,6 +1178,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. */ |