aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-10-10 18:10:59 +0000
committerBart Polot <bart@net.in.tum.de>2013-10-10 18:10:59 +0000
commit0b2836dbc4f3da21c9321caefbaa229500c75adf (patch)
tree2323f17679c63c8dc499cd837f2d4bda4bea5f66 /src/mesh
parent1b5d4aba9d8bbcb62c93f96782e3567f6f79d0cb (diff)
downloadgnunet-0b2836dbc4f3da21c9321caefbaa229500c75adf.tar.gz
gnunet-0b2836dbc4f3da21c9321caefbaa229500c75adf.zip
- fix dht
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/gnunet-service-mesh-enc.c1
-rw-r--r--src/mesh/gnunet-service-mesh_channel.c4
-rw-r--r--src/mesh/gnunet-service-mesh_dht.c1
-rw-r--r--src/mesh/gnunet-service-mesh_local.c6
-rw-r--r--src/mesh/gnunet-service-mesh_local.h11
5 files changed, 11 insertions, 12 deletions
diff --git a/src/mesh/gnunet-service-mesh-enc.c b/src/mesh/gnunet-service-mesh-enc.c
index d36b7803b..22c70308d 100644
--- a/src/mesh/gnunet-service-mesh-enc.c
+++ b/src/mesh/gnunet-service-mesh-enc.c
@@ -46,7 +46,6 @@
46#include "platform.h" 46#include "platform.h"
47#include "gnunet_util_lib.h" 47#include "gnunet_util_lib.h"
48#include "mesh_enc.h" 48#include "mesh_enc.h"
49#include "block_mesh.h"
50#include "gnunet_statistics_service.h" 49#include "gnunet_statistics_service.h"
51 50
52#include "gnunet-service-mesh_local.h" 51#include "gnunet-service-mesh_local.h"
diff --git a/src/mesh/gnunet-service-mesh_channel.c b/src/mesh/gnunet-service-mesh_channel.c
index f59519311..d2935ec4e 100644
--- a/src/mesh/gnunet-service-mesh_channel.c
+++ b/src/mesh/gnunet-service-mesh_channel.c
@@ -338,14 +338,14 @@ send_client_data (struct MeshChannel *ch,
338 if (fwd) 338 if (fwd)
339 { 339 {
340 if (ch->dest_rel->client_ready) 340 if (ch->dest_rel->client_ready)
341 GML_send_data (ch, msg, ch->dest, ch->lid_dest); 341 GML_send_data (ch->dest, msg, ch->lid_dest);
342 else 342 else
343 add_buffered_data (msg, ch->dest_rel); 343 add_buffered_data (msg, ch->dest_rel);
344 } 344 }
345 else 345 else
346 { 346 {
347 if (ch->root_rel->client_ready) 347 if (ch->root_rel->client_ready)
348 GML_send_data (ch, msg, ch->root, ch->lid_root); 348 GML_send_data (ch->root, msg, ch->lid_root);
349 else 349 else
350 add_buffered_data (msg, ch->root_rel); 350 add_buffered_data (msg, ch->root_rel);
351 } 351 }
diff --git a/src/mesh/gnunet-service-mesh_dht.c b/src/mesh/gnunet-service-mesh_dht.c
index 067f7f4e1..baf9d9375 100644
--- a/src/mesh/gnunet-service-mesh_dht.c
+++ b/src/mesh/gnunet-service-mesh_dht.c
@@ -25,6 +25,7 @@
25#include "gnunet_dht_service.h" 25#include "gnunet_dht_service.h"
26#include "gnunet_statistics_service.h" 26#include "gnunet_statistics_service.h"
27 27
28#include "block_mesh.h"
28#include "mesh_path.h" 29#include "mesh_path.h"
29#include "gnunet-service-mesh_dht.h" 30#include "gnunet-service-mesh_dht.h"
30#include "gnunet-service-mesh_peer.h" 31#include "gnunet-service-mesh_peer.h"
diff --git a/src/mesh/gnunet-service-mesh_local.c b/src/mesh/gnunet-service-mesh_local.c
index d4362d5e8..a1ff2b12c 100644
--- a/src/mesh/gnunet-service-mesh_local.c
+++ b/src/mesh/gnunet-service-mesh_local.c
@@ -1099,11 +1099,11 @@ GML_send_channel_destroy (struct MeshClient *c, uint32_t id)
1099/** 1099/**
1100 * Modify the mesh message ID from global to local and send to client. 1100 * Modify the mesh message ID from global to local and send to client.
1101 * 1101 *
1102 * @param msg Message to modify and send.
1103 * @param c Client to send to. 1102 * @param c Client to send to.
1104 * @param tid Tunnel ID to use (c can be both owner and client). 1103 * @param msg Message to modify and send.
1104 * @param id Channel ID to use (c can be both owner and client).
1105 */ 1105 */
1106static void 1106void
1107GML_send_data (struct MeshClient *c, 1107GML_send_data (struct MeshClient *c,
1108 const struct GNUNET_MESH_Data *msg, 1108 const struct GNUNET_MESH_Data *msg,
1109 MESH_ChannelNumber id) 1109 MESH_ChannelNumber id)
diff --git a/src/mesh/gnunet-service-mesh_local.h b/src/mesh/gnunet-service-mesh_local.h
index 6f4507770..e91165dec 100644
--- a/src/mesh/gnunet-service-mesh_local.h
+++ b/src/mesh/gnunet-service-mesh_local.h
@@ -177,17 +177,16 @@ void
177GML_send_channel_destroy (struct MeshClient *c, uint32_t id); 177GML_send_channel_destroy (struct MeshClient *c, uint32_t id);
178 178
179/** 179/**
180 * Modify the mesh message TID from global to local and send to client. 180 * Modify the mesh message ID from global to local and send to client.
181 * 181 *
182 * @param ch Channel on which to send the message.
183 * @param msg Message to modify and send.
184 * @param c Client to send to. 182 * @param c Client to send to.
185 * @param tid Tunnel ID to use (c can be both owner and client). 183 * @param msg Message to modify and send.
184 * @param id Channel ID to use (c can be both owner and client).
186 */ 185 */
187void 186void
188GML_send_data (struct MeshChannel *ch, 187GML_send_data (struct MeshClient *c,
189 const struct GNUNET_MESH_Data *msg, 188 const struct GNUNET_MESH_Data *msg,
190 struct MeshClient *c, MESH_ChannelNumber id); 189 MESH_ChannelNumber id);
191 190
192/** 191/**
193 * Get the static string to represent a client. 192 * Get the static string to represent a client.