aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-10-30 14:29:24 +0000
committerBart Polot <bart@net.in.tum.de>2012-10-30 14:29:24 +0000
commit1e6c749b1630de6d7ab0ea6915ce0226cd90482d (patch)
treeab9a0ceac6f97bcdf39514b0f9b978a9deb11356
parent1267da6ec732de0c5f86c6aecaf77e65778734b0 (diff)
downloadgnunet-1e6c749b1630de6d7ab0ea6915ce0226cd90482d.tar.gz
gnunet-1e6c749b1630de6d7ab0ea6915ce0226cd90482d.zip
- refactoring, clinfo -> fcinfo
-rw-r--r--src/mesh/gnunet-service-mesh-new.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/mesh/gnunet-service-mesh-new.c b/src/mesh/gnunet-service-mesh-new.c
index 15abfa1a8..12ac42a67 100644
--- a/src/mesh/gnunet-service-mesh-new.c
+++ b/src/mesh/gnunet-service-mesh-new.c
@@ -3369,13 +3369,16 @@ tunnel_add_path (struct MeshTunnel *t, struct MeshPeerPath *p,
3369static void 3369static void
3370tunnel_add_client (struct MeshTunnel *t, struct MeshClient *c) 3370tunnel_add_client (struct MeshTunnel *t, struct MeshClient *c)
3371{ 3371{
3372 struct MeshTunnelClientInfo clinfo; 3372 struct MeshTunnelFlowControlInfo fcinfo;
3373 3373
3374 GNUNET_array_append (t->clients, t->nclients, c); 3374 GNUNET_array_append (t->clients, t->nclients, c);
3375 clinfo.fwd_ack = t->fwd_pid + 1; 3375 fcinfo.client = c;
3376 clinfo.bck_ack = t->nobuffer ? 1 : INITIAL_WINDOW_SIZE - 1; 3376 fcinfo.fwd_ack = t->fwd_pid + 1;
3377 clinfo.fwd_pid = t->fwd_pid; 3377 fcinfo.bck_ack = t->nobuffer ? 1 : INITIAL_WINDOW_SIZE - 1;
3378 clinfo.bck_pid = (uint32_t) -1; // Expected next: 0 3378 fcinfo.fwd_pid = t->fwd_pid;
3379 fcinfo.bck_pid = (uint32_t) -1; // Expected next: 0
3380 // FIXME fc buffering is done by context_notify. Confirm this is OK.
3381
3379 t->nclients--; 3382 t->nclients--;
3380 GNUNET_array_append (t->clients_fc, t->nclients, clinfo); 3383 GNUNET_array_append (t->clients_fc, t->nclients, clinfo);
3381} 3384}