gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r29000 - gnunet/src/mesh
Date: Thu, 5 Sep 2013 05:01:31 +0200

Author: bartpolot
Date: 2013-09-05 05:01:30 +0200 (Thu, 05 Sep 2013)
New Revision: 29000

Modified:
   gnunet/src/mesh/gnunet-service-mesh-enc.c
Log:
- record channel number correctly


Modified: gnunet/src/mesh/gnunet-service-mesh-enc.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh-enc.c   2013-09-05 02:02:30 UTC (rev 
28999)
+++ gnunet/src/mesh/gnunet-service-mesh-enc.c   2013-09-05 03:01:30 UTC (rev 
29000)
@@ -4485,7 +4485,11 @@
   if (NULL != owner)
   {
     while (NULL != channel_get (t, t->next_chid))
+    {
+      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Channel %u exists (%p)...\n",
+                  t->next_chid, channel_get (t, t->next_chid));
       t->next_chid = (t->next_chid + 1) & ~GNUNET_MESH_LOCAL_CHANNEL_ID_CLI;
+    }
     ch->gid = t->next_chid;
     t->next_chid = (t->next_chid + 1) & ~GNUNET_MESH_LOCAL_CHANNEL_ID_CLI;
 
@@ -5148,7 +5152,8 @@
   if (NULL == ch)
   {
     GNUNET_STATISTICS_update (stats, "# data on unknown channel", 1, 
GNUNET_NO);
-    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "WARNING channel unknown\n");
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "WARNING channel %u unknown\n",
+                ntohl (msg->chid));
     return;
   }
 
@@ -5664,6 +5669,7 @@
 
   /* Check if channel exists */
   chid = ntohl (msg->chid);
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "   chid %u\n", chid);
   ch = channel_get (t, chid);
   if (NULL != ch)
   {
@@ -5680,6 +5686,7 @@
   {
     /* Create channel */
     ch = channel_new (t, NULL, 0);
+    ch->gid = chid;
     channel_set_options (ch, ntohl (msg->opt));
   }
 




reply via email to

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