struct MeshChannel *ch;
MESH_ChannelNumber chid;
- LOG (GNUNET_ERROR_TYPE_DEBUG, "\n\nGot a DESTROY CHANNEL from client!\n");
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "Got a DESTROY CHANNEL from client!\n");
/* Sanity check for client registration */
if (NULL == (c = GML_client_get (client)))
size_t size;
int fwd;
- LOG (GNUNET_ERROR_TYPE_DEBUG, "\n\nGot data from a client!\n");
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "Got data from a client!\n");
/* Sanity check for client registration */
if (NULL == (c = GML_client_get (client)))
msg.header.size = htons (sizeof (msg));
msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_PEERS);
msg.destination = *peer;
- msg.paths = GMP_count_paths (p);
- msg.tunnel = NULL != GMP_get_tunnel (p);
+ msg.paths = htons (GMP_count_paths (p));
+ msg.tunnel = htons (NULL != GMP_get_tunnel (p));
- LOG (GNUNET_ERROR_TYPE_DEBUG, "sending info about tunnel ->%s\n",
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "sending info about peer %s\n",
GNUNET_i2s (peer));
GNUNET_SERVER_notification_context_unicast (nc, client,
iter_connection (void *cls, struct MeshConnection *c)
{
struct GNUNET_MESH_LocalInfoTunnel *msg = cls;
- struct GNUNET_HashCode *h = (struct GNUNET_HashCode *) &msg[1];
+ struct GNUNET_MeshHash *h = (struct GNUNET_MeshHash *) &msg[1];
h[msg->connections] = *(GMC_get_id (c));
msg->connections++;