gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r29004 - gnunet/src/mesh
Date: Thu, 5 Sep 2013 05:36:22 +0200

Author: bartpolot
Date: 2013-09-05 05:36:22 +0200 (Thu, 05 Sep 2013)
New Revision: 29004

Modified:
   gnunet/src/mesh/gnunet-service-mesh-enc.c
Log:
- use queue, not ack, for buffer size calculation

Modified: gnunet/src/mesh/gnunet-service-mesh-enc.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh-enc.c   2013-09-05 03:28:43 UTC (rev 
29003)
+++ gnunet/src/mesh/gnunet-service-mesh-enc.c   2013-09-05 03:36:22 UTC (rev 
29004)
@@ -1719,6 +1719,11 @@
 
 /**
  * Get the total buffer space for a tunnel.
+ *
+ * @param t Tunnel.
+ * @param fwd Is this for FWD traffic?
+ *
+ * @return Buffer space offered by all connections in the tunnel.
  */
 static unsigned int
 tunnel_get_buffer (struct MeshTunnel2 *t, int fwd)
@@ -1764,7 +1769,7 @@
     }
 
     fc = fwd ? &c->fwd_fc : &c->bck_fc;
-    buffer += fc->last_ack_recv - fc->last_pid_sent;
+    buffer += fc->queue_max - fc->queue_n;
     c = c->next;
   }
 




reply via email to

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