diff options
author | Bart Polot <bart@net.in.tum.de> | 2011-10-24 16:42:44 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2011-10-24 16:42:44 +0000 |
commit | 8ce2f3cca8c7d75db63f6e761e6747384249b5e7 (patch) | |
tree | 06c360f457e458249500033a43a48696cd3d3479 /src/mesh/mesh_protocol.h | |
parent | b80b3f490c8ebd76c4874bf612f0e7d41f296ea2 (diff) | |
download | gnunet-8ce2f3cca8c7d75db63f6e761e6747384249b5e7.tar.gz gnunet-8ce2f3cca8c7d75db63f6e761e6747384249b5e7.zip |
Added connection broken p2p notifications
Diffstat (limited to 'src/mesh/mesh_protocol.h')
-rw-r--r-- | src/mesh/mesh_protocol.h | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/src/mesh/mesh_protocol.h b/src/mesh/mesh_protocol.h index d7e28af45..e16f32093 100644 --- a/src/mesh/mesh_protocol.h +++ b/src/mesh/mesh_protocol.h | |||
@@ -159,7 +159,7 @@ struct GNUNET_MESH_ToOrigin | |||
159 | struct GNUNET_MESH_PathACK | 159 | struct GNUNET_MESH_PathACK |
160 | { | 160 | { |
161 | /** | 161 | /** |
162 | * Type: GNUNET_MESSAGE_TYPE_PATH_ACK | 162 | * Type: GNUNET_MESSAGE_TYPE_MESH_PATH_ACK |
163 | */ | 163 | */ |
164 | struct GNUNET_MessageHeader header; | 164 | struct GNUNET_MessageHeader header; |
165 | 165 | ||
@@ -183,6 +183,40 @@ struct GNUNET_MESH_PathACK | |||
183 | 183 | ||
184 | 184 | ||
185 | /** | 185 | /** |
186 | * Message for notifying a disconnection in a path | ||
187 | */ | ||
188 | struct GNUNET_MESH_PathBroken | ||
189 | { | ||
190 | /** | ||
191 | * Type: GNUNET_MESSAGE_TYPE_MESH_PATH_BROKEN | ||
192 | */ | ||
193 | struct GNUNET_MessageHeader header; | ||
194 | |||
195 | /** | ||
196 | * TID of the tunnel | ||
197 | */ | ||
198 | uint32_t tid GNUNET_PACKED; | ||
199 | |||
200 | /** | ||
201 | * OID of the tunnel | ||
202 | */ | ||
203 | struct GNUNET_PeerIdentity oid; | ||
204 | |||
205 | /** | ||
206 | * ID of the endpoint | ||
207 | */ | ||
208 | struct GNUNET_PeerIdentity peer1; | ||
209 | |||
210 | /** | ||
211 | * ID of the endpoint | ||
212 | */ | ||
213 | struct GNUNET_PeerIdentity peer2; | ||
214 | |||
215 | /* TODO: signature */ | ||
216 | }; | ||
217 | |||
218 | |||
219 | /** | ||
186 | * Message to destroy a tunnel | 220 | * Message to destroy a tunnel |
187 | */ | 221 | */ |
188 | struct GNUNET_MESH_TunnelDestroy | 222 | struct GNUNET_MESH_TunnelDestroy |