aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-01-30 02:11:18 +0000
committerBart Polot <bart@net.in.tum.de>2014-01-30 02:11:18 +0000
commit100eeaebcba97bcea73ff4a29e4a55d068a46e15 (patch)
tree9499281a36fa1ee79ad0982654763b4e016ec5dc /src
parent32dafdb8cc0be8a06853a5e212cea9d6de961b58 (diff)
downloadgnunet-100eeaebcba97bcea73ff4a29e4a55d068a46e15.tar.gz
gnunet-100eeaebcba97bcea73ff4a29e4a55d068a46e15.zip
- show connections and channels on stdout
Diffstat (limited to 'src')
-rw-r--r--src/mesh/gnunet-mesh.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesh/gnunet-mesh.c b/src/mesh/gnunet-mesh.c
index 97b0e26b4..208d2ce44 100644
--- a/src/mesh/gnunet-mesh.c
+++ b/src/mesh/gnunet-mesh.c
@@ -513,11 +513,17 @@ tunnel_callback (void *cls,
513 unsigned int estate, 513 unsigned int estate,
514 unsigned int cstate) 514 unsigned int cstate)
515{ 515{
516 unsigned int i;
517
516 if (NULL != peer) 518 if (NULL != peer)
517 { 519 {
518 FPRINTF (stdout, "Tunnel %s\n", GNUNET_i2s_full (peer)); 520 FPRINTF (stdout, "Tunnel %s\n", GNUNET_i2s_full (peer));
519 FPRINTF (stdout, "- %u channels\n", n_channels); 521 FPRINTF (stdout, "- %u channels\n", n_channels);
522 for (i = 0; i < n_channels; i++)
523 FPRINTF (stdout, " %u\n", channels[i]);
520 FPRINTF (stdout, "- %u connections\n", n_connections); 524 FPRINTF (stdout, "- %u connections\n", n_connections);
525 for (i = 0; i < n_connections; i++)
526 FPRINTF (stdout, " %s\n", GNUNET_h2s_full (&connections[i]));
521 FPRINTF (stdout, "- enc state: %u\n", estate); 527 FPRINTF (stdout, "- enc state: %u\n", estate);
522 FPRINTF (stdout, "- con state: %u\n", cstate); 528 FPRINTF (stdout, "- con state: %u\n", cstate);
523 } 529 }