cell_st.h 629 B

1234567891011121314151617181920
  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-2019, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. #ifndef CELL_ST_H
  7. #define CELL_ST_H
  8. /** Parsed onion routing cell. All communication between nodes
  9. * is via cells. */
  10. struct cell_t {
  11. circid_t circ_id; /**< Circuit which received the cell. */
  12. uint8_t command; /**< Type of the cell: one of CELL_PADDING, CELL_CREATE,
  13. * CELL_DESTROY, etc */
  14. uint8_t payload[CELL_PAYLOAD_SIZE]; /**< Cell body. */
  15. };
  16. #endif