aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_local.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-01-30 02:11:20 +0000
committerBart Polot <bart@net.in.tum.de>2014-01-30 02:11:20 +0000
commitff21154a0805872ee6dbedb82d2fd64e1a7ed1ac (patch)
tree5370668a8eda5dcc92abbcaa39a2bbbe8de348e3 /src/mesh/gnunet-service-mesh_local.c
parent100eeaebcba97bcea73ff4a29e4a55d068a46e15 (diff)
downloadgnunet-ff21154a0805872ee6dbedb82d2fd64e1a7ed1ac.tar.gz
gnunet-ff21154a0805872ee6dbedb82d2fd64e1a7ed1ac.zip
- document tunnel internal API
- change iterator parameter order
Diffstat (limited to 'src/mesh/gnunet-service-mesh_local.c')
-rw-r--r--src/mesh/gnunet-service-mesh_local.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesh/gnunet-service-mesh_local.c b/src/mesh/gnunet-service-mesh_local.c
index a02ef84c8..b1f974b41 100644
--- a/src/mesh/gnunet-service-mesh_local.c
+++ b/src/mesh/gnunet-service-mesh_local.c
@@ -589,7 +589,7 @@ handle_ack (void *cls, struct GNUNET_SERVER_Client *client,
589 * @return #GNUNET_YES, to keep iterating. 589 * @return #GNUNET_YES, to keep iterating.
590 */ 590 */
591static int 591static int
592monitor_all_tunnels_iterator (void *cls, 592get_all_tunnels_iterator (void *cls,
593 const struct GNUNET_PeerIdentity * peer, 593 const struct GNUNET_PeerIdentity * peer,
594 void *value) 594 void *value)
595{ 595{
@@ -640,7 +640,7 @@ handle_get_tunnels (void *cls, struct GNUNET_SERVER_Client *client,
640 "Received get tunnels request from client %u (%p)\n", 640 "Received get tunnels request from client %u (%p)\n",
641 c->id, client); 641 c->id, client);
642 642
643 GMT_iterate_all (client, monitor_all_tunnels_iterator); 643 GMT_iterate_all (get_all_tunnels_iterator, client);
644 reply.size = htons (sizeof (reply)); 644 reply.size = htons (sizeof (reply));
645 reply.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNELS); 645 reply.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNELS);
646 GNUNET_SERVER_notification_context_unicast (nc, client, &reply, GNUNET_NO); 646 GNUNET_SERVER_notification_context_unicast (nc, client, &reply, GNUNET_NO);