mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
fde868ffe3
Since packed_cell and destroy_cell exist only to be queued, they go in the same headers as the queues.
24 lines
652 B
C
24 lines
652 B
C
/* Copyright (c) 2001 Matej Pfajfar.
|
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
|
* Copyright (c) 2007-2017, The Tor Project, Inc. */
|
|
/* See LICENSE for licensing information */
|
|
|
|
#ifndef VAR_CELL_ST_H
|
|
#define VAR_CELL_ST_H
|
|
|
|
/** Parsed variable-length onion routing cell. */
|
|
struct var_cell_t {
|
|
/** Type of the cell: CELL_VERSIONS, etc. */
|
|
uint8_t command;
|
|
/** Circuit thich received the cell */
|
|
circid_t circ_id;
|
|
/** Number of bytes actually stored in <b>payload</b> */
|
|
uint16_t payload_len;
|
|
/** Payload of this cell */
|
|
uint8_t payload[FLEXIBLE_ARRAY_MEMBER];
|
|
};
|
|
|
|
#endif
|
|
|