summaryrefslogtreecommitdiff
path: root/src/or/cell_st.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-15 15:27:46 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-15 15:27:46 -0400
commitfde868ffe3ace818d67374858c54418296a62e79 (patch)
tree35c33d0d71d79762d07de52bc5131589d4c335c0 /src/or/cell_st.h
parent958df2829a9248cf8518aafd9e19da48ce14cf64 (diff)
downloadtor-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/cell_st.h')
-rw-r--r--src/or/cell_st.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/or/cell_st.h b/src/or/cell_st.h
new file mode 100644
index 0000000000..08ed290871
--- /dev/null
+++ b/src/or/cell_st.h
@@ -0,0 +1,20 @@
+/* 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 CELL_ST_H
+#define CELL_ST_H
+
+/** Parsed onion routing cell. All communication between nodes
+ * is via cells. */
+struct cell_t {
+ circid_t circ_id; /**< Circuit which received the cell. */
+ uint8_t command; /**< Type of the cell: one of CELL_PADDING, CELL_CREATE,
+ * CELL_DESTROY, etc */
+ uint8_t payload[CELL_PAYLOAD_SIZE]; /**< Cell body. */
+};
+
+#endif
+