destroy_cell_queue_st.h 812 B

123456789101112131415161718192021222324252627
  1. /* Copyright (c) 2001 Matej Pfajfar.
  2. * Copyright (c) 2001-2004, Roger Dingledine.
  3. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  4. * Copyright (c) 2007-2019, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. #ifndef DESTROY_CELL_QUEUE_ST_H
  7. #define DESTROY_CELL_QUEUE_ST_H
  8. /** A single queued destroy cell. */
  9. struct destroy_cell_t {
  10. TOR_SIMPLEQ_ENTRY(destroy_cell_t) next;
  11. circid_t circid;
  12. uint32_t inserted_timestamp; /**< Time (in timestamp units) when this cell
  13. * was inserted */
  14. uint8_t reason;
  15. };
  16. /** A queue of destroy cells on a channel. */
  17. struct destroy_cell_queue_t {
  18. /** Linked list of packed_cell_t */
  19. TOR_SIMPLEQ_HEAD(dcell_simpleq, destroy_cell_t) head;
  20. int n; /**< The number of cells in the queue. */
  21. };
  22. #endif