- log traffic size
authorBart Polot <bart@net.in.tum.de>
Thu, 19 Dec 2013 13:25:27 +0000 (13:25 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 19 Dec 2013 13:25:27 +0000 (13:25 +0000)
src/mesh/gnunet-service-mesh_channel.c

index c06ebef5f13411b57ff95e446b348736207423b8..a11210a38881f6370336be0a604410bf33565e24 100644 (file)
@@ -1264,6 +1264,8 @@ handle_loopback (struct MeshChannel *ch,
   {
     case GNUNET_MESSAGE_TYPE_MESH_DATA:
       /* Don't send hop ACK, wait for client to ACK */
+      LOG (GNUNET_ERROR_TYPE_DEBUG, "!!! SEND loopback %u (%u)\n",
+           ntohl (((struct GNUNET_MESH_Data *) msgh)->mid), ntohs (msgh->size));
       GMCH_handle_data (ch, (struct GNUNET_MESH_Data *) msgh, fwd);
       break;
 
@@ -1910,7 +1912,8 @@ GMCH_handle_data (struct MeshChannel *ch,
       ( !GM_is_pid_bigger (rel->mid_recv, mid) &&
         GM_is_pid_bigger (rel->mid_recv + 64, mid) ) )
   {
-    LOG (GNUNET_ERROR_TYPE_DEBUG, "!!! RECV %u\n", mid);
+    LOG (GNUNET_ERROR_TYPE_DEBUG, "!!! RECV %u (%u)\n",
+         mid, ntohs (msg->header.size));
     if (GNUNET_YES == ch->reliable)
     {
       /* Is this the exact next expected messasge? */