tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

destroy_cell_queue_st.h (972B)


      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-2021, The Tor Project, Inc. */
      5 /* See LICENSE for licensing information */
      6 
      7 /**
      8 * @file destroy_cell_queue_st.h
      9 * @brief Destroy-cell queue structures
     10 **/
     11 
     12 #ifndef DESTROY_CELL_QUEUE_ST_H
     13 #define DESTROY_CELL_QUEUE_ST_H
     14 
     15 #include "core/or/cell_queue_st.h"
     16 
     17 /** A single queued destroy cell. */
     18 struct destroy_cell_t {
     19  TOR_SIMPLEQ_ENTRY(destroy_cell_t) next;
     20  circid_t circid;
     21  uint32_t inserted_timestamp; /**< Time (in timestamp units) when this cell
     22                                * was inserted */
     23  uint8_t reason;
     24 };
     25 
     26 /** A queue of destroy cells on a channel. */
     27 struct destroy_cell_queue_t {
     28  /** Linked list of packed_cell_t */
     29  TOR_SIMPLEQ_HEAD(dcell_simpleq_t, destroy_cell_t) head;
     30  int n; /**< The number of cells in the queue. */
     31 };
     32 
     33 #endif /* !defined(DESTROY_CELL_QUEUE_ST_H) */