aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_local.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-01-06 04:38:54 +0000
committerBart Polot <bart@net.in.tum.de>2014-01-06 04:38:54 +0000
commit54fa2add0f3ed4941e7f7c1d7e9a8d11f4d1c3fc (patch)
tree5138b1b797f5ca857a0dc2e586827398773412bb /src/mesh/gnunet-service-mesh_local.c
parent8a63b822c0125f5a5bd0a4ce7113379327f8edfb (diff)
downloadgnunet-54fa2add0f3ed4941e7f7c1d7e9a8d11f4d1c3fc.tar.gz
gnunet-54fa2add0f3ed4941e7f7c1d7e9a8d11f4d1c3fc.zip
- add -i function back to CLI
Diffstat (limited to 'src/mesh/gnunet-service-mesh_local.c')
-rw-r--r--src/mesh/gnunet-service-mesh_local.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/mesh/gnunet-service-mesh_local.c b/src/mesh/gnunet-service-mesh_local.c
index 82743c892..f6b4b8149 100644
--- a/src/mesh/gnunet-service-mesh_local.c
+++ b/src/mesh/gnunet-service-mesh_local.c
@@ -593,20 +593,22 @@ monitor_all_tunnels_iterator (void *cls,
593 void *value) 593 void *value)
594{ 594{
595 struct GNUNET_SERVER_Client *client = cls; 595 struct GNUNET_SERVER_Client *client = cls;
596 struct MeshChannel *ch = value; 596 struct MeshTunnel3 *t = value;
597 struct GNUNET_MESH_LocalInfo *msg; 597 struct GNUNET_MESH_LocalInfoTunnel msg;
598 598
599 msg = GNUNET_new (struct GNUNET_MESH_LocalInfo); 599 msg.header.size = htons (sizeof (msg));
600 msg->channel_id = htonl (GMCH_get_id (ch)); 600 msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNELS);
601 msg->header.size = htons (sizeof (struct GNUNET_MESH_LocalInfo)); 601 msg.destination = *peer;
602 msg->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNELS); 602 msg.channels = htons (42);
603 msg.connections = htons (42);
604 msg.cstate = htons (GMT_get_cstate (t));
605 msg.estate = htons (42);
603 606
604 LOG (GNUNET_ERROR_TYPE_INFO, 607 LOG (GNUNET_ERROR_TYPE_DEBUG, "sending info about tunnel ->%s\n",
605 "* sending info about tunnel %s\n", 608 GNUNET_i2s (peer));
606 GNUNET_i2s (&msg->owner));
607 609
608 GNUNET_SERVER_notification_context_unicast (nc, client, 610 GNUNET_SERVER_notification_context_unicast (nc, client,
609 &msg->header, GNUNET_NO); 611 &msg.header, GNUNET_NO);
610 return GNUNET_YES; 612 return GNUNET_YES;
611} 613}
612 614