var_cell_st.h (756B)
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. */ 16 struct var_cell_t { 17 /** Type of the cell: CELL_VERSIONS, etc. */ 18 uint8_t command; 19 /** Circuit thich received the cell */ 20 circid_t circ_id; 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) */