* @param cls Closure.
* @param peer Peer, or NULL on "EOF".
* @param tunnel Do we have a tunnel towards this peer?
+ * @param n_paths Number of known paths towards this peer.
* @param best_path How long is the best path?
* (0 = unknown, 1 = ourselves, 2 = neighbor)
*/
static void
peers_callback (void *cls, const struct GNUNET_PeerIdentity *peer,
- int tunnel, unsigned int best_path)
+ int tunnel, unsigned int n_paths, unsigned int best_path)
{
if (NULL == peer)
{
}
return;
}
- FPRINTF (stdout, "%s tunnel: %c, best path %u hops]\n",
- GNUNET_i2s_full (peer), tunnel ? 'Y' : 'N', best_path);
+ FPRINTF (stdout, "%s tunnel: %c, paths: %u\n",
+ GNUNET_i2s_full (peer), tunnel ? 'Y' : 'N', n_paths);
}
unsigned int estate,
unsigned int cstate)
{
+ unsigned int i;
+
if (NULL != peer)
{
FPRINTF (stdout, "Tunnel %s\n", GNUNET_i2s_full (peer));
FPRINTF (stdout, "- %u channels\n", n_channels);
+ for (i = 0; i < n_channels; i++)
+ FPRINTF (stdout, " %u\n", channels[i]);
FPRINTF (stdout, "- %u connections\n", n_connections);
+ for (i = 0; i < n_connections; i++)
+ FPRINTF (stdout, " %s\n", GNUNET_h2s_full (&connections[i]));
FPRINTF (stdout, "- enc state: %u\n", estate);
FPRINTF (stdout, "- con state: %u\n", cstate);
}