[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r25594 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r25594 - gnunet/src/mesh |
Date: |
Thu, 20 Dec 2012 17:34:46 +0100 |
Author: bartpolot
Date: 2012-12-20 17:34:46 +0100 (Thu, 20 Dec 2012)
New Revision: 25594
Modified:
gnunet/src/mesh/gnunet-service-mesh.c
gnunet/src/mesh/test_mesh_small.conf
Log:
- initialize message for both directions
Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c 2012-12-20 16:30:01 UTC (rev
25593)
+++ gnunet/src/mesh/gnunet-service-mesh.c 2012-12-20 16:34:46 UTC (rev
25594)
@@ -4387,20 +4387,18 @@
struct GNUNET_PeerIdentity id;
GNUNET_PEER_Id parent;
+ msg.header.size = htons (sizeof (msg));
+ msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_TUNNEL_DESTROY);
+ GNUNET_PEER_resolve (t->id.oid, &msg.oid);
+ msg.tid = htonl (t->id.tid);
if (tree_count_children(t->tree) > 0)
{
- msg.header.size = htons (sizeof (msg));
- msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_TUNNEL_DESTROY);
- GNUNET_PEER_resolve (t->id.oid, &msg.oid);
- msg.tid = htonl (t->id.tid);
tunnel_send_multicast (t, &msg.header);
}
parent = tree_get_predecessor(t->tree);
if (GNUNET_NO == send_back || 0 == parent)
return;
- msg.header.size = htons (sizeof (msg));
- msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_TUNNEL_DESTROY);
GNUNET_PEER_resolve (parent, &id);
send_prebuilt_message(&msg.header, &id, t);
}
Modified: gnunet/src/mesh/test_mesh_small.conf
===================================================================
--- gnunet/src/mesh/test_mesh_small.conf 2012-12-20 16:30:01 UTC (rev
25593)
+++ gnunet/src/mesh/test_mesh_small.conf 2012-12-20 16:34:46 UTC (rev
25594)
@@ -11,7 +11,7 @@
CONNECT_TIMEOUT = 30 s
DEFAULT_TTL = 64
DHT_REPLICAITON_LEVEL = 3
-# PREFIX = valgrind --leak-check=full --suppressions=valgrind-mesh.supp
+PREFIX = valgrind --leak-check=full --suppressions=valgrind-mesh.supp
# PREFIX = xterm -geometry 100x85 -T peer1 -e gdb --args
[testbed]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r25594 - gnunet/src/mesh,
gnunet <=