From 85c394f637976950c4635529d6198b5f93d4c397 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 6 Jan 2014 04:39:19 +0000 Subject: [PATCH] - missing cli<->serv messages --- src/mesh/mesh.h | 44 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/src/mesh/mesh.h b/src/mesh/mesh.h index 0113f7855..bb71d1668 100644 --- a/src/mesh/mesh.h +++ b/src/mesh/mesh.h @@ -178,11 +178,6 @@ struct GNUNET_MESH_LocalInfo */ MESH_ChannelNumber channel_id GNUNET_PACKED; - /** - * Alignment. - */ - uint32_t reserved GNUNET_PACKED; - /** * ID of the owner of the channel (can be local peer). */ @@ -194,6 +189,45 @@ struct GNUNET_MESH_LocalInfo 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 -- 2.25.1