gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r24369 - gnunet/src/mesh
Date: Wed, 17 Oct 2012 18:31:57 +0200

Author: bartpolot
Date: 2012-10-17 18:31:57 +0200 (Wed, 17 Oct 2012)
New Revision: 24369

Modified:
   gnunet/src/mesh/gnunet-service-mesh.c
Log:
- fix counter used for bck ACKs, style

Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c       2012-10-17 16:22:32 UTC (rev 
24368)
+++ gnunet/src/mesh/gnunet-service-mesh.c       2012-10-17 16:31:57 UTC (rev 
24369)
@@ -3997,11 +3997,15 @@
   GNUNET_PEER_resolve (id, &peer);
   cinfo = tunnel_get_neighbor_fc (t, &peer);
 
-  if (cinfo->bck_ack != cinfo->fwd_pid &&
-      GNUNET_NO == GMC_is_pid_bigger (cinfo->bck_ack, cinfo->fwd_pid))
+  if (cinfo->bck_ack != cinfo->bck_pid &&
+      GNUNET_NO == GMC_is_pid_bigger (cinfo->bck_ack, cinfo->bck_pid))
+  {
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                "    Not sending ACK, not needed\n");
     return;
+  }
 
-  cinfo->bck_ack++; // FIXME window size?
+  cinfo->bck_ack++; // FIXME fc window size?
   send_ack (t, &peer, cinfo->bck_ack);
 }
 
@@ -5104,7 +5108,8 @@
     n = &t->bck_queue_n;
     max = &t->bck_queue_max;
   }
-  if (NULL != n) {
+  if (NULL != n)
+  {
     if (*n >= *max)
     {
       struct MeshTransmissionDescriptor *td = cls;




reply via email to

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