gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r24271 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r24271 - gnunet/src/mesh
Date: Thu, 11 Oct 2012 18:07:11 +0200

Author: bartpolot
Date: 2012-10-11 18:07:11 +0200 (Thu, 11 Oct 2012)
New Revision: 24271

Modified:
   gnunet/src/mesh/gnunet-service-mesh.c
Log:
- more debug

Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c       2012-10-11 15:43:18 UTC (rev 
24270)
+++ gnunet/src/mesh/gnunet-service-mesh.c       2012-10-11 16:07:11 UTC (rev 
24271)
@@ -4023,6 +4023,12 @@
       send_local_ack (t, t->clients[i], ack);
       clinfo->bck_ack = ack;
     }
+    else
+    {
+      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                  "    not sending ack to client %u (td %u, d %u)\n",
+                  t->clients[i]->id, tunnel_delta, delta);
+    }
   }
 }
 
@@ -5721,8 +5727,8 @@
   struct MeshPeerInfo *peer_info;
   struct MeshTunnel *t;
   size_t size;
+  uint32_t pid;
 
-
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "got a ToOrigin packet from %s\n",
               GNUNET_i2s (peer));
   size = ntohs (message->size);
@@ -5736,12 +5742,16 @@
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " of type %s\n",
               GNUNET_MESH_DEBUG_M2S (ntohs (msg[1].header.type)));
   t = tunnel_get (&msg->oid, ntohl (msg->tid));
+  pid = ntohl (msg->pid);
 
   if (NULL == t)
   {
     /* TODO notify that we dont know this tunnel (whom)? */
     GNUNET_STATISTICS_update (stats, "# data on unknown tunnel", 1, GNUNET_NO);
     GNUNET_break_op (0);
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                "Received PID %u, ACK %u\n",
+                pid, t->bck_ack);
     return GNUNET_OK;
   }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]