diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-15 15:27:46 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-15 15:27:46 -0400 |
commit | fde868ffe3ace818d67374858c54418296a62e79 (patch) | |
tree | 35c33d0d71d79762d07de52bc5131589d4c335c0 /src/or/var_cell_st.h | |
parent | 958df2829a9248cf8518aafd9e19da48ce14cf64 (diff) | |
download | tor-fde868ffe3ace818d67374858c54418296a62e79.tar.gz tor-fde868ffe3ace818d67374858c54418296a62e79.zip |
Extract cell type and their queues into new headers
Since packed_cell and destroy_cell exist only to be queued, they go
in the same headers as the queues.
Diffstat (limited to 'src/or/var_cell_st.h')
-rw-r--r-- | src/or/var_cell_st.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/or/var_cell_st.h b/src/or/var_cell_st.h new file mode 100644 index 0000000000..1a9ea07590 --- /dev/null +++ b/src/or/var_cell_st.h @@ -0,0 +1,23 @@ +/* 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 + |