[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r22001 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r22001 - gnunet/src/mesh |
Date: |
Thu, 14 Jun 2012 15:52:47 +0200 |
Author: bartpolot
Date: 2012-06-14 15:52:47 +0200 (Thu, 14 Jun 2012)
New Revision: 22001
Modified:
gnunet/src/mesh/mesh_api.c
Log:
- debug messages
Modified: gnunet/src/mesh/mesh_api.c
===================================================================
--- gnunet/src/mesh/mesh_api.c 2012-06-14 12:50:27 UTC (rev 22000)
+++ gnunet/src/mesh/mesh_api.c 2012-06-14 13:52:47 UTC (rev 22001)
@@ -379,6 +379,8 @@
struct GNUNET_MESH_TransmitHandle *next;
unsigned int i;
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "destroy_tunnel %X\n", t->tid);
+
if (NULL == t)
{
GNUNET_break (0);
@@ -948,7 +950,7 @@
t = retrieve_tunnel (h, ntohl (ucast->tid));
payload = (struct GNUNET_MessageHeader *) &ucast[1];
peer = &ucast->oid;
- LOG (GNUNET_ERROR_TYPE_DEBUG, " ucast on tunnel %s [%x]\n",
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " ucast on tunnel %s [%X]\n",
GNUNET_i2s (peer), ntohl (ucast->tid));
break;
case GNUNET_MESSAGE_TYPE_MESH_MULTICAST:
@@ -956,7 +958,7 @@
t = retrieve_tunnel (h, ntohl (mcast->tid));
payload = (struct GNUNET_MessageHeader *) &mcast[1];
peer = &mcast->oid;
- LOG (GNUNET_ERROR_TYPE_DEBUG, " mcast on tunnel %s [%x]\n",
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " mcast on tunnel %s [%X]\n",
GNUNET_i2s (peer), ntohl (mcast->tid));
break;
case GNUNET_MESSAGE_TYPE_MESH_TO_ORIGIN:
@@ -964,7 +966,7 @@
t = retrieve_tunnel (h, ntohl (to_orig->tid));
payload = (struct GNUNET_MessageHeader *) &to_orig[1];
peer = &to_orig->sender;
- LOG (GNUNET_ERROR_TYPE_DEBUG, " torig on tunnel %s [%x]\n",
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " torig on tunnel %s [%X]\n",
GNUNET_i2s (peer), ntohl (to_orig->tid));
break;
default:
@@ -1167,6 +1169,9 @@
}
else
{
+ struct GNUNET_MessageHeader *mh = (struct GNUNET_MessageHeader *) &th[1];
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " mesh traffic, type %u\n",
+ ntohs (mh->type));
memcpy (cbuf, &th[1], th->size);
psize = th->size;
}
@@ -1318,6 +1323,8 @@
struct GNUNET_MESH_Tunnel *aux;
struct GNUNET_MESH_TransmitHandle *th;
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "MESH DISCONNECT\n");
+
t = handle->tunnels_head;
while (NULL != t)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r22001 - gnunet/src/mesh,
gnunet <=