Tor
0.4.9.1-alpha-dev
core
or
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) */
CELL_PAYLOAD_SIZE
#define CELL_PAYLOAD_SIZE
Definition:
or.h:465
circid_t
uint32_t circid_t
Definition:
or.h:497
cell_t
Definition:
cell_st.h:17
cell_t::payload
uint8_t payload[CELL_PAYLOAD_SIZE]
Definition:
cell_st.h:21
cell_t::command
uint8_t command
Definition:
cell_st.h:19
cell_t::circ_id
circid_t circ_id
Definition:
cell_st.h:18
Generated by
1.9.4