[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r17151 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r17151 - gnunet/src/mesh |
Date: |
Mon, 3 Oct 2011 18:35:16 +0200 |
Author: bartpolot
Date: 2011-10-03 18:35:16 +0200 (Mon, 03 Oct 2011)
New Revision: 17151
Modified:
gnunet/src/mesh/gnunet-service-mesh.c
gnunet/src/mesh/mesh_api_new.c
gnunet/src/mesh/test_mesh_small.conf
Log:
Fixed a bug in create path handling, extended debug info.
Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c 2011-10-02 22:38:36 UTC (rev
17150)
+++ gnunet/src/mesh/gnunet-service-mesh.c 2011-10-03 16:35:16 UTC (rev
17151)
@@ -1221,7 +1221,10 @@
if (size < size_needed || NULL == buf)
{
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: Retransmitting create path\n");
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: create path retransmit!\n");
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: buf: %p\n", buf);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: size: (%u/%u)\n",
+ size, size_needed);
GNUNET_CORE_notify_transmit_ready (core_handle, 0, 0,
GNUNET_TIME_UNIT_FOREVER_REL,
path_get_first_hop (t->tree, peer->id),
@@ -1639,11 +1642,11 @@
path_add_to_origin (orig_peer_info, path); /* inverts path! */
info = GNUNET_malloc (sizeof (struct MeshDataDescriptor));
info->origin = &t->id;
- info->peer = GNUNET_CONTAINER_multihashmap_get (peers, &id.hashPubKey);
+ info->peer = GNUNET_CONTAINER_multihashmap_get (peers, &peer->hashPubKey);
GNUNET_assert (NULL != info->peer);
for (j = 0; info->peer->core_transmit[j]; j++)
{
- if (j == 9)
+ if (j == (CORE_QUEUE_SIZE - 1))
{
GNUNET_break (0);
return GNUNET_OK;
Modified: gnunet/src/mesh/mesh_api_new.c
===================================================================
--- gnunet/src/mesh/mesh_api_new.c 2011-10-02 22:38:36 UTC (rev 17150)
+++ gnunet/src/mesh/mesh_api_new.c 2011-10-03 16:35:16 UTC (rev 17151)
@@ -105,7 +105,7 @@
uint32_t priority;
/**
- * Target of the message, 0 for broadcast. This field
+ * Target of the message, 0 for multicast. This field
* is only valid if 'notify' is non-NULL.
*/
GNUNET_PEER_Id target;
Modified: gnunet/src/mesh/test_mesh_small.conf
===================================================================
--- gnunet/src/mesh/test_mesh_small.conf 2011-10-02 22:38:36 UTC (rev
17150)
+++ gnunet/src/mesh/test_mesh_small.conf 2011-10-03 16:35:16 UTC (rev
17151)
@@ -76,6 +76,6 @@
DELETE_FILES = YES
[test_mesh_small]
-WAIT_TIME = 60
+WAIT_TIME = 70
CONNECTION_LIMIT = 10
DATA_OUTPUT_FILE=data_output
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r17151 - gnunet/src/mesh,
gnunet <=