diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-04-01 00:16:46 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-04-01 00:16:46 +0000 |
commit | 9d07ea01f1bb52766b406c2b06af6a081cd42bf5 (patch) | |
tree | 05847226025b3aa33d7122c718a26650df37f47e /src/mesh/gnunet-service-mesh_connection.c | |
parent | d9a27280f2daa21e27f82314184dde388231c73b (diff) | |
download | gnunet-9d07ea01f1bb52766b406c2b06af6a081cd42bf5.tar.gz gnunet-9d07ea01f1bb52766b406c2b06af6a081cd42bf5.zip |
- log
Diffstat (limited to 'src/mesh/gnunet-service-mesh_connection.c')
-rw-r--r-- | src/mesh/gnunet-service-mesh_connection.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c index 5a87db99a..47f555503 100644 --- a/src/mesh/gnunet-service-mesh_connection.c +++ b/src/mesh/gnunet-service-mesh_connection.c | |||
@@ -2750,12 +2750,16 @@ GMC_is_sendable (struct MeshConnection *c, int fwd) | |||
2750 | { | 2750 | { |
2751 | struct MeshFlowControl *fc; | 2751 | struct MeshFlowControl *fc; |
2752 | 2752 | ||
2753 | LOG (GNUNET_ERROR_TYPE_DEBUG, " checking sendability of %s traffic on %s\n", | ||
2754 | GM_f2s (fwd), GMC_2s (c)); | ||
2753 | if (NULL == c) | 2755 | if (NULL == c) |
2754 | { | 2756 | { |
2755 | GNUNET_break (0); | 2757 | GNUNET_break (0); |
2756 | return GNUNET_YES; | 2758 | return GNUNET_YES; |
2757 | } | 2759 | } |
2758 | fc = fwd ? &c->fwd_fc : &c->bck_fc; | 2760 | fc = fwd ? &c->fwd_fc : &c->bck_fc; |
2761 | LOG (GNUNET_ERROR_TYPE_DEBUG, " last ack recv: %u, last pid sent: %u\n", | ||
2762 | fc->last_ack_recv, fc->last_pid_sent); | ||
2759 | if (GM_is_pid_bigger (fc->last_ack_recv, fc->last_pid_sent)) | 2763 | if (GM_is_pid_bigger (fc->last_ack_recv, fc->last_pid_sent)) |
2760 | return GNUNET_YES; | 2764 | return GNUNET_YES; |
2761 | return GNUNET_NO; | 2765 | return GNUNET_NO; |