aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-cadet.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2015-04-27 19:14:54 +0000
committerBart Polot <bart@net.in.tum.de>2015-04-27 19:14:54 +0000
commita4a55d676df04d3359cb5407afe157dce7f839ef (patch)
tree9cb3f845e36a67f3838ba6ce8c9be9643857ded0 /src/cadet/gnunet-cadet.c
parent6de396c6ed1e51a115c7f478192985d74e4922fe (diff)
downloadgnunet-a4a55d676df04d3359cb5407afe157dce7f839ef.tar.gz
gnunet-a4a55d676df04d3359cb5407afe157dce7f839ef.zip
- implement single peer info
Diffstat (limited to 'src/cadet/gnunet-cadet.c')
-rw-r--r--src/cadet/gnunet-cadet.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/cadet/gnunet-cadet.c b/src/cadet/gnunet-cadet.c
index 3ce87a882..958c1ad7f 100644
--- a/src/cadet/gnunet-cadet.c
+++ b/src/cadet/gnunet-cadet.c
@@ -508,6 +508,23 @@ peer_callback (void *cls,
508 unsigned int n_paths, 508 unsigned int n_paths,
509 struct GNUNET_PeerIdentity *paths) 509 struct GNUNET_PeerIdentity *paths)
510{ 510{
511 unsigned int i;
512 struct GNUNET_PeerIdentity *p;
513
514 FPRINTF (stdout, "%s [TUNNEL: %s, NEIGHBOR: %s, PATHS: %u]\n",
515 GNUNET_i2s_full (peer),
516 tunnel ? "Y" : "N", neighbor ? "Y" : "N", n_paths);
517 p = paths;
518 for (i = 0; i < n_paths && NULL != p; i++)
519 {
520 FPRINTF (stdout, "%s ", GNUNET_i2s_full (p));
521 if (0 == memcmp (p, peer, sizeof (*p)))
522 {
523 FPRINTF (stdout, "\n");
524 }
525 p++;
526 }
527 GNUNET_SCHEDULER_shutdown();
511} 528}
512 529
513 530