gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r31796 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r31796 - gnunet/src/mesh
Date: Mon, 6 Jan 2014 05:39:19 +0100

Author: bartpolot
Date: 2014-01-06 05:39:19 +0100 (Mon, 06 Jan 2014)
New Revision: 31796

Modified:
   gnunet/src/mesh/mesh.h
Log:
- missing cli<->serv messages


Modified: gnunet/src/mesh/mesh.h
===================================================================
--- gnunet/src/mesh/mesh.h      2014-01-06 04:38:54 UTC (rev 31795)
+++ gnunet/src/mesh/mesh.h      2014-01-06 04:39:19 UTC (rev 31796)
@@ -179,11 +179,6 @@
   MESH_ChannelNumber channel_id GNUNET_PACKED;
 
   /**
-   * Alignment.
-   */
-  uint32_t reserved GNUNET_PACKED;
-
-  /**
    * ID of the owner of the channel (can be local peer).
    */
   struct GNUNET_PeerIdentity owner;
@@ -194,7 +189,46 @@
   struct GNUNET_PeerIdentity destination;
 };
 
+/**
+ * Message to inform the client about one of the tunnels in the service.
+ */
+struct GNUNET_MESH_LocalInfoTunnel
+{
+  /**
+   * Type: GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNEL[S]
+   */
+  struct GNUNET_MessageHeader header;
 
+  /**
+   * Number of channels.
+   */
+  uint32_t channels GNUNET_PACKED;
+
+  /**
+   * ID of the destination of the tunnel (can be local peer).
+   */
+  struct GNUNET_PeerIdentity destination;
+
+  /**
+   * Number of connections.
+   */
+  uint32_t connections GNUNET_PACKED;
+
+  /**
+   * Encryption state.
+   */
+  uint16_t estate GNUNET_PACKED;
+
+  /**
+   * Connection state.
+   */
+  uint16_t cstate GNUNET_PACKED;
+
+  /* If TUNNEL (no 'S'): GNUNET_PeerIdentity connection_ids[connections] */
+  /* If TUNNEL (no 'S'): uint32_t channel_ids[channels] */
+};
+
+
 GNUNET_NETWORK_STRUCT_END
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]