Tor
0.4.7.0-alpha-dev
core
or
destroy_cell_queue_st.h
Go to the documentation of this file.
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) */
cell_queue_st.h
Cell queue structures.
circid_t
uint32_t circid_t
Definition:
or.h:489
destroy_cell_queue_t
Definition:
destroy_cell_queue_st.h:27
destroy_cell_queue_t::TOR_SIMPLEQ_HEAD
TOR_SIMPLEQ_HEAD(dcell_simpleq_t, destroy_cell_t) head
destroy_cell_queue_t::n
int n
Definition:
destroy_cell_queue_st.h:30
destroy_cell_t
Definition:
destroy_cell_queue_st.h:18
destroy_cell_t::inserted_timestamp
uint32_t inserted_timestamp
Definition:
destroy_cell_queue_st.h:21
Generated by
1.9.1