#include "platform.h"
#include "gnunet_util_lib.h"
#include "gnunet_mesh_service.h"
+#include "mesh.h"
/**
unsigned int n_channels,
unsigned int n_connections,
uint32_t *channels,
- struct GNUNET_HashCode *connections,
+ struct GNUNET_MeshHash *connections,
unsigned int estate,
unsigned int cstate)
{
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, " %s\n", GM_h2s (&connections[i]));
FPRINTF (stdout, "- enc state: %u\n", estate);
FPRINTF (stdout, "- con state: %u\n", cstate);
}
// {'a', "channel", "TUNNEL_ID:CHANNEL_ID",
// gettext_noop ("provide information about a particular channel"),
// GNUNET_YES, &GNUNET_GETOPT_set_string, &channel_id},
-// {'b', "connection", "TUNNEL_ID:CONNECTION_ID",
-// gettext_noop ("provide information about a particular connection"),
-// GNUNET_YES, &GNUNET_GETOPT_set_string, &conn_id},
+ {'C', "connection", "CONNECTION_ID",
+ gettext_noop ("provide information about a particular connection"),
+ GNUNET_YES, &GNUNET_GETOPT_set_string, &conn_id},
{'e', "echo", NULL,
gettext_noop ("activate echo mode"),
GNUNET_NO, &GNUNET_GETOPT_set_one, &echo},
size_t msize;
unsigned int ch_n;
unsigned int c_n;
- struct GNUNET_HashCode *conns;
+ struct GNUNET_MeshHash *conns;
MESH_ChannelNumber *chns;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Get Tunnel messasge received\n");
ch_n = ntohl (msg->channels);
c_n = ntohl (msg->connections);
esize += ch_n * sizeof (MESH_ChannelNumber);
- esize += c_n * sizeof (struct GNUNET_HashCode);
+ esize += c_n * sizeof (struct GNUNET_MeshHash);
if (msize != esize)
{
GNUNET_break_op (0);
}
/* Call Callback with tunnel info. */
- conns = (struct GNUNET_HashCode *) &msg[1];
+ conns = (struct GNUNET_MeshHash *) &msg[1];
chns = (MESH_ChannelNumber *) &conns[c_n];
h->info_cb.tunnel_cb (h->info_cls, &msg->destination,
ch_n, c_n, chns, conns,