aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_dht.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh/gnunet-service-mesh_dht.c')
-rw-r--r--src/mesh/gnunet-service-mesh_dht.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mesh/gnunet-service-mesh_dht.c b/src/mesh/gnunet-service-mesh_dht.c
index 01fb4a30f..b187e3cd9 100644
--- a/src/mesh/gnunet-service-mesh_dht.c
+++ b/src/mesh/gnunet-service-mesh_dht.c
@@ -25,12 +25,12 @@
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 "mesh_path.h" 28#include "cadet_path.h"
29#include "gnunet-service-mesh_dht.h" 29#include "gnunet-service-cadet_dht.h"
30#include "gnunet-service-mesh_peer.h" 30#include "gnunet-service-cadet_peer.h"
31#include "gnunet-service-mesh_hello.h" 31#include "gnunet-service-cadet_hello.h"
32 32
33#define LOG(level, ...) GNUNET_log_from (level,"mesh-dht",__VA_ARGS__) 33#define LOG(level, ...) GNUNET_log_from (level,"cadet-dht",__VA_ARGS__)
34 34
35 35
36/******************************************************************************/ 36/******************************************************************************/
@@ -113,13 +113,13 @@ static struct GNUNET_CONTAINER_MultiHashMap32 *get_requests;
113 * 113 *
114 * FIXME refactor and use build_path_from_peer_ids 114 * FIXME refactor and use build_path_from_peer_ids
115 */ 115 */
116static struct MeshPeerPath * 116static struct CadetPeerPath *
117path_build_from_dht (const struct GNUNET_PeerIdentity *get_path, 117path_build_from_dht (const struct GNUNET_PeerIdentity *get_path,
118 unsigned int get_path_length, 118 unsigned int get_path_length,
119 const struct GNUNET_PeerIdentity *put_path, 119 const struct GNUNET_PeerIdentity *put_path,
120 unsigned int put_path_length) 120 unsigned int put_path_length)
121{ 121{
122 struct MeshPeerPath *p; 122 struct CadetPeerPath *p;
123 GNUNET_PEER_Id id; 123 GNUNET_PEER_Id id;
124 int i; 124 int i;
125 125
@@ -172,7 +172,7 @@ path_build_from_dht (const struct GNUNET_PeerIdentity *get_path,
172 p->peers[p->length - 1] = id; 172 p->peers[p->length - 1] = id;
173 } 173 }
174 } 174 }
175#if MESH_DEBUG 175#if CADET_DEBUG
176 if (get_path_length > 0) 176 if (get_path_length > 0)
177 LOG (GNUNET_ERROR_TYPE_DEBUG, " (first of GET: %s)\n", 177 LOG (GNUNET_ERROR_TYPE_DEBUG, " (first of GET: %s)\n",
178 GNUNET_i2s (&get_path[0])); 178 GNUNET_i2s (&get_path[0]));
@@ -221,8 +221,8 @@ dht_get_id_handler (void *cls, struct GNUNET_TIME_Absolute exp,
221{ 221{
222 struct GMD_search_handle *h = cls; 222 struct GMD_search_handle *h = cls;
223 struct GNUNET_HELLO_Message *hello; 223 struct GNUNET_HELLO_Message *hello;
224 struct MeshPeerPath *p; 224 struct CadetPeerPath *p;
225 struct MeshPeer *peer; 225 struct CadetPeer *peer;
226 char *s; 226 char *s;
227 227
228 p = path_build_from_dht (get_path, get_path_length, 228 p = path_build_from_dht (get_path, get_path_length,
@@ -334,20 +334,20 @@ GMD_init (const struct GNUNET_CONFIGURATION_Handle *c)
334{ 334{
335 LOG (GNUNET_ERROR_TYPE_DEBUG, "init\n"); 335 LOG (GNUNET_ERROR_TYPE_DEBUG, "init\n");
336 if (GNUNET_OK != 336 if (GNUNET_OK !=
337 GNUNET_CONFIGURATION_get_value_number (c, "MESH", "DHT_REPLICATION_LEVEL", 337 GNUNET_CONFIGURATION_get_value_number (c, "CADET", "DHT_REPLICATION_LEVEL",
338 &dht_replication_level)) 338 &dht_replication_level))
339 { 339 {
340 GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_WARNING, 340 GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_WARNING,
341 "MESH", "DHT_REPLICATION_LEVEL", "USING DEFAULT"); 341 "CADET", "DHT_REPLICATION_LEVEL", "USING DEFAULT");
342 dht_replication_level = 3; 342 dht_replication_level = 3;
343 } 343 }
344 344
345 if (GNUNET_OK != 345 if (GNUNET_OK !=
346 GNUNET_CONFIGURATION_get_value_time (c, "MESH", "ID_ANNOUNCE_TIME", 346 GNUNET_CONFIGURATION_get_value_time (c, "CADET", "ID_ANNOUNCE_TIME",
347 &id_announce_time)) 347 &id_announce_time))
348 { 348 {
349 GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR, 349 GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
350 "MESH", "ID_ANNOUNCE_TIME", "MISSING"); 350 "CADET", "ID_ANNOUNCE_TIME", "MISSING");
351 GNUNET_SCHEDULER_shutdown (); 351 GNUNET_SCHEDULER_shutdown ();
352 return; 352 return;
353 } 353 }