Tor  0.4.7.0-alpha-dev
cell_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 cell_st.h
9  * @brief Fixed-size cell structure.
10  **/
11 
12 #ifndef CELL_ST_H
13 #define CELL_ST_H
14 
15 /** Parsed onion routing cell. All communication between nodes
16  * is via cells. */
17 struct cell_t {
18  circid_t circ_id; /**< Circuit which received the cell. */
19  uint8_t command; /**< Type of the cell: one of CELL_PADDING, CELL_CREATE,
20  * CELL_DESTROY, etc */
21  uint8_t payload[CELL_PAYLOAD_SIZE]; /**< Cell body. */
22 };
23 
24 #endif /* !defined(CELL_ST_H) */
#define CELL_PAYLOAD_SIZE
Definition: or.h:457
uint32_t circid_t
Definition: or.h:489
Definition: cell_st.h:17
uint8_t payload[CELL_PAYLOAD_SIZE]
Definition: cell_st.h:21
uint8_t command
Definition: cell_st.h:19
circid_t circ_id
Definition: cell_st.h:18