Tor 0.4.9.1-alpha-dev
var_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 var_cell_st.h
9 * @brief Variable-length cell structure.
10 **/
11
12#ifndef VAR_CELL_ST_H
13#define VAR_CELL_ST_H
14
15/** Parsed variable-length onion routing cell. */
16struct var_cell_t {
17 /** Type of the cell: CELL_VERSIONS, etc. */
18 uint8_t command;
19 /** Circuit thich received the cell */
21 /** Number of bytes actually stored in <b>payload</b> */
22 uint16_t payload_len;
23 /** Payload of this cell */
24 uint8_t payload[FLEXIBLE_ARRAY_MEMBER];
25};
26
27#endif /* !defined(VAR_CELL_ST_H) */
uint32_t circid_t
Definition: or.h:497
uint8_t command
Definition: var_cell_st.h:18
uint16_t payload_len
Definition: var_cell_st.h:22
circid_t circ_id
Definition: var_cell_st.h:20
uint8_t payload[FLEXIBLE_ARRAY_MEMBER]
Definition: var_cell_st.h:24