[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r28091 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r28091 - gnunet/src/mesh |
Date: |
Tue, 16 Jul 2013 14:49:33 +0200 |
Author: bartpolot
Date: 2013-07-16 14:49:33 +0200 (Tue, 16 Jul 2013)
New Revision: 28091
Modified:
gnunet/src/mesh/mesh_api.c
Log:
debug tunnel destroy
Modified: gnunet/src/mesh/mesh_api.c
===================================================================
--- gnunet/src/mesh/mesh_api.c 2013-07-16 12:07:40 UTC (rev 28090)
+++ gnunet/src/mesh/mesh_api.c 2013-07-16 12:49:33 UTC (rev 28091)
@@ -865,11 +865,13 @@
struct GNUNET_MESH_Tunnel *t;
MESH_TunnelNumber tid;
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "Destroying tunnel from service\n");
tid = ntohl (msg->tunnel_id);
t = retrieve_tunnel (h, tid);
if (NULL == t)
{
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "tunnel %X unknown\n", tid);
return;
}
LOG (GNUNET_ERROR_TYPE_DEBUG, "tunnel %X destroyed\n", t->tid);
@@ -1070,6 +1072,7 @@
msg_received (void *cls, const struct GNUNET_MessageHeader *msg)
{
struct GNUNET_MESH_Handle *h = cls;
+ uint16_t type;
if (msg == NULL)
{
@@ -1078,11 +1081,11 @@
reconnect (h);
return;
}
- LOG (GNUNET_ERROR_TYPE_DEBUG, "\n",
- GNUNET_MESH_DEBUG_M2S (ntohs (msg->type)));
+ type = ntohs (msg->type);
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "\n");
LOG (GNUNET_ERROR_TYPE_DEBUG, "Received a message: %s\n",
- GNUNET_MESH_DEBUG_M2S (ntohs (msg->type)));
- switch (ntohs (msg->type))
+ GNUNET_MESH_DEBUG_M2S (type));
+ switch (type)
{
/* Notify of a new incoming tunnel */
case GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_CREATE:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r28091 - gnunet/src/mesh,
gnunet <=