cell_st.h (720B)
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) */