aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_tunnel.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-12-17 01:15:34 +0000
committerBart Polot <bart@net.in.tum.de>2013-12-17 01:15:34 +0000
commit93cbfe29d41f059bc2a0ff5b7b39f782dd8d125d (patch)
treee71391b50d66575a0df7277e6569981e34e03062 /src/mesh/gnunet-service-mesh_tunnel.c
parenta5e0d1892b4b25fe56ebe0509053a20121a50cbf (diff)
downloadgnunet-93cbfe29d41f059bc2a0ff5b7b39f782dd8d125d.tar.gz
gnunet-93cbfe29d41f059bc2a0ff5b7b39f782dd8d125d.zip
- debug info
Diffstat (limited to 'src/mesh/gnunet-service-mesh_tunnel.c')
-rw-r--r--src/mesh/gnunet-service-mesh_tunnel.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c
index 946b8a131..448bd4eaf 100644
--- a/src/mesh/gnunet-service-mesh_tunnel.c
+++ b/src/mesh/gnunet-service-mesh_tunnel.c
@@ -1150,7 +1150,7 @@ handle_data (struct MeshTunnel3 *t,
1150 { 1150 {
1151 GNUNET_STATISTICS_update (stats, "# data on unknown channel", 1151 GNUNET_STATISTICS_update (stats, "# data on unknown channel",
1152 1, GNUNET_NO); 1152 1, GNUNET_NO);
1153 LOG (GNUNET_ERROR_TYPE_DEBUG, "WARNING channel %u unknown\n", 1153 LOG (GNUNET_ERROR_TYPE_DEBUG, "WARNING channel %X unknown\n",
1154 ntohl (msg->chid)); 1154 ntohl (msg->chid));
1155 return; 1155 return;
1156 } 1156 }
@@ -2291,8 +2291,7 @@ GMT_send_connection_acks (struct MeshTunnel3 *t)
2291 unsigned int cs; 2291 unsigned int cs;
2292 unsigned int buffer; 2292 unsigned int buffer;
2293 2293
2294 LOG (GNUNET_ERROR_TYPE_DEBUG, 2294 LOG (GNUNET_ERROR_TYPE_DEBUG, "Tunnel send connection ACKs on %s\n",
2295 "Tunnel send connection ACKs on %s\n",
2296 GMT_2s (t)); 2295 GMT_2s (t));
2297 2296
2298 if (NULL == t) 2297 if (NULL == t)
@@ -2302,6 +2301,7 @@ GMT_send_connection_acks (struct MeshTunnel3 *t)
2302 } 2301 }
2303 2302
2304 buffer = GMT_get_channels_buffer (t); 2303 buffer = GMT_get_channels_buffer (t);
2304 LOG (GNUNET_ERROR_TYPE_DEBUG, " buffer %u\n", buffer);
2305 2305
2306 /* Count connections, how many messages are already allowed */ 2306 /* Count connections, how many messages are already allowed */
2307 cs = GMT_count_connections (t); 2307 cs = GMT_count_connections (t);
@@ -2309,6 +2309,7 @@ GMT_send_connection_acks (struct MeshTunnel3 *t)
2309 { 2309 {
2310 allowed += get_connection_allowed (iter); 2310 allowed += get_connection_allowed (iter);
2311 } 2311 }
2312 LOG (GNUNET_ERROR_TYPE_DEBUG, " allowed %u\n", allowed);
2312 2313
2313 /* Make sure there is no overflow */ 2314 /* Make sure there is no overflow */
2314 if (allowed > buffer) 2315 if (allowed > buffer)
@@ -2328,7 +2329,8 @@ GMT_send_connection_acks (struct MeshTunnel3 *t)
2328 { 2329 {
2329 continue; 2330 continue;
2330 } 2331 }
2331 GMC_allow (iter->c, buffer, GMC_is_origin (iter->c, GNUNET_YES)); 2332 GMC_allow (iter->c, allow_per_connection,
2333 GMC_is_origin (iter->c, GNUNET_YES));
2332 } 2334 }
2333 2335
2334 GNUNET_break (to_allow == 0); 2336 GNUNET_break (to_allow == 0);