diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-12-28 14:30:51 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-12-28 14:30:51 +0000 |
commit | 4493d69b8625d799167e82edc1aca52617ba913d (patch) | |
tree | 288f4fc16c185c4d62b8680302014ab58badd90a /src/mesh/gnunet-service-mesh_tunnel.c | |
parent | c4cba40c252dd423fc4876c9def15f0f8efe51f3 (diff) | |
download | gnunet-4493d69b8625d799167e82edc1aca52617ba913d.tar.gz gnunet-4493d69b8625d799167e82edc1aca52617ba913d.zip |
- Add some of the tunnel introscpecion back
Diffstat (limited to 'src/mesh/gnunet-service-mesh_tunnel.c')
-rw-r--r-- | src/mesh/gnunet-service-mesh_tunnel.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index 6976d576d..61a66a7b2 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c | |||
@@ -2542,6 +2542,11 @@ GMT_2s (const struct MeshTunnel3 *t) | |||
2542 | } | 2542 | } |
2543 | 2543 | ||
2544 | 2544 | ||
2545 | /******************************************************************************/ | ||
2546 | /***************************** INFO/DEBUG *******************************/ | ||
2547 | /******************************************************************************/ | ||
2548 | |||
2549 | |||
2545 | /** | 2550 | /** |
2546 | * Log all possible info about the tunnel state. | 2551 | * Log all possible info about the tunnel state. |
2547 | * | 2552 | * |
@@ -2581,3 +2586,16 @@ GMT_debug (const struct MeshTunnel3 *t) | |||
2581 | 2586 | ||
2582 | LOG (GNUNET_ERROR_TYPE_DEBUG, "DEBUG TUNNEL END\n"); | 2587 | LOG (GNUNET_ERROR_TYPE_DEBUG, "DEBUG TUNNEL END\n"); |
2583 | } | 2588 | } |
2589 | |||
2590 | |||
2591 | void | ||
2592 | GMT_iterate_all (void *cls, GNUNET_CONTAINER_PeerMapIterator iter) | ||
2593 | { | ||
2594 | GNUNET_CONTAINER_multipeermap_iterate (tunnels, iter, cls); | ||
2595 | } | ||
2596 | |||
2597 | unsigned int | ||
2598 | GMT_count_all (void) | ||
2599 | { | ||
2600 | return GNUNET_CONTAINER_multipeermap_size (tunnels); | ||
2601 | } | ||