aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/mesh2_protocol.h
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-06-19 17:20:05 +0000
committerBart Polot <bart@net.in.tum.de>2013-06-19 17:20:05 +0000
commitedfef0fec6a9cba64cd23a475d51397fc1cd5e46 (patch)
tree0b413a438a92d5f0ba8e433713fad4e45bd4b1b5 /src/mesh/mesh2_protocol.h
parentbc57020de71d96102c005cdef61b1d9f05e81cd6 (diff)
downloadgnunet-edfef0fec6a9cba64cd23a475d51397fc1cd5e46.tar.gz
gnunet-edfef0fec6a9cba64cd23a475d51397fc1cd5e46.zip
- combine payload encapsulation structs
Diffstat (limited to 'src/mesh/mesh2_protocol.h')
-rw-r--r--src/mesh/mesh2_protocol.h43
1 files changed, 4 insertions, 39 deletions
diff --git a/src/mesh/mesh2_protocol.h b/src/mesh/mesh2_protocol.h
index 07c5734fd..d35d7141e 100644
--- a/src/mesh/mesh2_protocol.h
+++ b/src/mesh/mesh2_protocol.h
@@ -103,48 +103,13 @@ struct GNUNET_MESH_DestroyTunnel
103 103
104 104
105/** 105/**
106 * Message for mesh data traffic to a particular destination from origin. 106 * Message for mesh data traffic.
107 */ 107 */
108struct GNUNET_MESH_Unicast 108struct GNUNET_MESH_Data
109{ 109{
110 /** 110 /**
111 * Type: GNUNET_MESSAGE_TYPE_MESH_UNICAST 111 * Type: GNUNET_MESSAGE_TYPE_MESH_UNICAST,
112 */ 112 * GNUNET_MESSAGE_TYPE_MESH_TO_ORIGIN
113 struct GNUNET_MessageHeader header;
114
115 /**
116 * TID of the tunnel
117 */
118 uint32_t tid GNUNET_PACKED;
119
120 /**
121 * Number of hops to live
122 */
123 uint32_t ttl GNUNET_PACKED;
124
125 /**
126 * Unique ID of the packet
127 */
128 uint32_t pid GNUNET_PACKED;
129
130 /**
131 * OID of the tunnel
132 */
133 struct GNUNET_PeerIdentity oid;
134
135 /**
136 * Payload follows
137 */
138};
139
140
141/**
142 * Message for mesh data traffic from a tunnel participant to origin.
143 */
144struct GNUNET_MESH_ToOrigin
145{
146 /**
147 * Type: GNUNET_MESSAGE_TYPE_MESH_TO_ORIGIN
148 */ 113 */
149 struct GNUNET_MessageHeader header; 114 struct GNUNET_MessageHeader header;
150 115