aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/mesh2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh/mesh2.h')
-rw-r--r--src/mesh/mesh2.h24
1 files changed, 7 insertions, 17 deletions
diff --git a/src/mesh/mesh2.h b/src/mesh/mesh2.h
index 4b55c3c4e..ec2e14a1f 100644
--- a/src/mesh/mesh2.h
+++ b/src/mesh/mesh2.h
@@ -241,44 +241,34 @@ GNUNET_NETWORK_STRUCT_END
241/******************************************************************************/ 241/******************************************************************************/
242 242
243/** 243/**
244 * All the states a peer participating in a tunnel can be in. 244 * All the states a tunnel can be in.
245 */ 245 */
246enum MeshPeerState 246enum MeshTunnelState
247{ 247{
248 /** 248 /**
249 * Uninitialized status, should never appear in operation. 249 * Uninitialized status, should never appear in operation.
250 */ 250 */
251 MESH_PEER_INVALID, 251 MESH_TUNNEL_NEW,
252
253 /**
254 * Peer is the root and owner of the tree
255 */
256 MESH_PEER_ROOT,
257
258 /**
259 * Peer only retransmits traffic, is not a final destination
260 */
261 MESH_PEER_RELAY,
262 252
263 /** 253 /**
264 * Path to the peer not known yet 254 * Path to the peer not known yet
265 */ 255 */
266 MESH_PEER_SEARCHING, 256 MESH_TUNNEL_SEARCHING,
267 257
268 /** 258 /**
269 * Request sent, not yet answered. 259 * Request sent, not yet answered.
270 */ 260 */
271 MESH_PEER_WAITING, 261 MESH_TUNNEL_WAITING,
272 262
273 /** 263 /**
274 * Peer connected and ready to accept data 264 * Peer connected and ready to accept data
275 */ 265 */
276 MESH_PEER_READY, 266 MESH_TUNNEL_READY,
277 267
278 /** 268 /**
279 * Peer connected previosly but not responding 269 * Peer connected previosly but not responding
280 */ 270 */
281 MESH_PEER_RECONNECTING 271 MESH_TUNNEL_RECONNECTING
282}; 272};
283 273
284 274