var_cell_st.h 652 B

1234567891011121314151617181920212223
  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-2018, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. #ifndef VAR_CELL_ST_H
  7. #define VAR_CELL_ST_H
  8. /** Parsed variable-length onion routing cell. */
  9. struct var_cell_t {
  10. /** Type of the cell: CELL_VERSIONS, etc. */
  11. uint8_t command;
  12. /** Circuit thich received the cell */
  13. circid_t circ_id;
  14. /** Number of bytes actually stored in <b>payload</b> */
  15. uint16_t payload_len;
  16. /** Payload of this cell */
  17. uint8_t payload[FLEXIBLE_ARRAY_MEMBER];
  18. };
  19. #endif