aboutsummaryrefslogtreecommitdiff
path: root/src/trunnel/hs/cell_common.trunnel
diff options
context:
space:
mode:
Diffstat (limited to 'src/trunnel/hs/cell_common.trunnel')
-rw-r--r--src/trunnel/hs/cell_common.trunnel12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/trunnel/hs/cell_common.trunnel b/src/trunnel/hs/cell_common.trunnel
new file mode 100644
index 0000000000..1bbec5a1fe
--- /dev/null
+++ b/src/trunnel/hs/cell_common.trunnel
@@ -0,0 +1,12 @@
+/* This file contains common data structure that cells use. */
+
+struct cell_extension_fields {
+ u8 field_type;
+ u8 field_len;
+ u8 field[field_len];
+};
+
+struct cell_extension {
+ u8 num;
+ struct cell_extension_fields fields[num];
+};