Fixed id counters' cycling
[oweals/gnunet.git] / src / mesh / mesh.h
index e816e5ddcab91cc6a825cb7f00440686df4219a3..d0648bd3e4f56f786d828984b81c590a4897073a 100644 (file)
@@ -36,7 +36,7 @@
 #include "gnunet_peer_lib.h"
 #include "gnunet_core_service.h"
 #include "gnunet_protocols.h"
-#include <gnunet_mesh_service_new.h>
+#include <gnunet_mesh_service.h>
 
 /******************************************************************************/
 /********************        MESH LOCAL MESSAGES      *************************/
@@ -107,7 +107,8 @@ struct GNUNET_MESH_ClientConnect
 
 /**
  * Type for tunnel numbering.
- * - Local tunnel numbers are >= 0x80000000
+ * - Local tunnel numbers given by the service (incoming) are >= 0xB0000000
+ * - Local tunnel numbers given by the client (created) are >= 0x80000000
  * - Global tunnel numbers are < 0x80000000
  */
 typedef uint32_t MESH_TunnelNumber;
@@ -219,6 +220,11 @@ struct GNUNET_MESH_ConnectPeerByType
  */
 enum MeshPeerState
 {
+    /**
+     * Peer is the root and owner of the tree
+     */
+  MESH_PEER_ROOT,
+
     /**
      * Peer only retransmits traffic, is not a final destination
      */