aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_tunnel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh/gnunet-service-mesh_tunnel.c')
-rw-r--r--src/mesh/gnunet-service-mesh_tunnel.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c
index 0c4e163e5..44ac78567 100644
--- a/src/mesh/gnunet-service-mesh_tunnel.c
+++ b/src/mesh/gnunet-service-mesh_tunnel.c
@@ -21,6 +21,8 @@
21#include "platform.h" 21#include "platform.h"
22#include "gnunet_util_lib.h" 22#include "gnunet_util_lib.h"
23 23
24#include "gnunet_statistics_service.h"
25
24#include "mesh_protocol_enc.h" 26#include "mesh_protocol_enc.h"
25 27
26#include "gnunet-service-mesh_tunnel.h" 28#include "gnunet-service-mesh_tunnel.h"
@@ -180,6 +182,11 @@ struct MeshTunnelQueue
180/******************************************************************************/ 182/******************************************************************************/
181 183
182/** 184/**
185 * Global handle to the statistics service.
186 */
187extern struct GNUNET_STATISTICS_Handle *stats;
188
189/**
183 * Default TTL for payload packets. 190 * Default TTL for payload packets.
184 */ 191 */
185static unsigned long long default_ttl; 192static unsigned long long default_ttl;
@@ -204,7 +211,6 @@ const static struct GNUNET_CRYPTO_EccPrivateKey *my_private_key;
204/******************************** STATIC ***********************************/ 211/******************************** STATIC ***********************************/
205/******************************************************************************/ 212/******************************************************************************/
206 213
207
208/** 214/**
209 * Get string description for tunnel state. 215 * Get string description for tunnel state.
210 * 216 *
@@ -366,6 +372,10 @@ tunnel_send_queued_data (struct MeshTunnel2 *t, int fwd)
366} 372}
367 373
368 374
375/******************************************************************************/
376/******************************** API ***********************************/
377/******************************************************************************/
378
369/** 379/**
370 * Cache a message to be sent once tunnel is online. 380 * Cache a message to be sent once tunnel is online.
371 * 381 *
@@ -394,11 +404,6 @@ GMT_queue_data (struct MeshTunnel2 *t,
394} 404}
395 405
396 406
397
398/******************************************************************************/
399/******************************** API ***********************************/
400/******************************************************************************/
401
402/** 407/**
403 * Initialize the tunnel subsystem. 408 * Initialize the tunnel subsystem.
404 * 409 *