2 This file is part of GNUnet.
3 (C) 2009, 2010, 2011 Christian Grothoff (and other contributing authors)
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
22 * @file dht/gnunet-service-dht_clients.c
23 * @brief GNUnet DHT service's client management code
24 * @author Christian Grothoff
25 * @author Nathan Evans
29 #include "gnunet_constants.h"
30 #include "gnunet_protocols.h"
31 #include "gnunet_statistics_service.h"
32 #include "gnunet-service-dht.h"
33 #include "gnunet-service-dht_clients.h"
34 #include "gnunet-service-dht_datacache.h"
35 #include "gnunet-service-dht_neighbours.h"
40 * Linked list of messages to send to clients.
45 * Pointer to next item in the list
47 struct PendingMessage *next;
50 * Pointer to previous item in the list
52 struct PendingMessage *prev;
55 * Actual message to be sent, allocated at the end of the struct:
56 * // msg = (cast) &pm[1];
57 * // memcpy (&pm[1], data, len);
59 const struct GNUNET_MessageHeader *msg;
65 * Struct containing information about a client,
66 * handle to connect to it, and any pending messages
67 * that need to be sent to it.
72 * Linked list of active clients
74 struct ClientList *next;
77 * Linked list of active clients
79 struct ClientList *prev;
82 * The handle to this client
84 struct GNUNET_SERVER_Client *client_handle;
87 * Handle to the current transmission request, NULL
90 struct GNUNET_CONNECTION_TransmitHandle *transmit_handle;
93 * Linked list of pending messages for this client
95 struct PendingMessage *pending_head;
98 * Tail of linked list of pending messages for this client
100 struct PendingMessage *pending_tail;
106 * Entry in the DHT routing table for a client's GET request.
108 struct ClientQueryRecord
112 * The key this request was about
117 * Client responsible for the request.
119 struct ClientList *client;
122 * Extended query (see gnunet_block_lib.h), allocated at the end of this struct.
127 * Replies we have already seen for this request.
129 GNUNET_HashCode *seen_replies;
132 * Pointer to this nodes heap location in the retry-heap (for fast removal)
134 struct GNUNET_CONTAINER_HeapNode *hnode;
137 * What's the delay between re-try operations that we currently use for this
140 struct GNUNET_TIME_Relative retry_frequency;
143 * What's the next time we should re-try this request?
145 struct GNUNET_TIME_Absolute retry_time;
148 * The unique identifier of this request
153 * Number of bytes in xquery.
158 * Number of entries in 'seen_replies'.
160 unsigned int seen_replies_count;
163 * Desired replication level
165 uint32_t replication;
168 * Any message options for this request
170 uint32_t msg_options;
173 * The type for the data for the GET request.
175 enum GNUNET_BLOCK_Type type;
181 * List of active clients.
183 static struct ClientList *client_head;
186 * List of active clients.
188 static struct ClientList *client_tail;
191 * Hashmap for fast key based lookup, maps keys to 'struct ClientQueryRecord' entries.
193 static struct GNUNET_CONTAINER_MultiHashMap *forward_map;
196 * Heap with all of our client's request, sorted by retry time (earliest on top).
198 static struct GNUNET_CONTAINER_Heap *retry_heap;
201 * Task that re-transmits requests (using retry_heap).
203 static GNUNET_SCHEDULER_TaskIdentifier retry_task;
207 * Find a client if it exists, add it otherwise.
209 * @param client the server handle to the client
211 * @return the client if found, a new client otherwise
213 static struct ClientList *
214 find_active_client (struct GNUNET_SERVER_Client *client)
216 struct ClientList *pos = client_head;
217 struct ClientList *ret;
221 if (pos->client_handle == client)
225 ret = GNUNET_malloc (sizeof (struct ClientList));
226 ret->client_handle = client;
227 GNUNET_CONTAINER_DLL_insert (client_head,
235 * Iterator over hash map entries that frees all entries
236 * associated with the given client.
238 * @param cls client to search for in source routes
239 * @param key current key code (ignored)
240 * @param value value in the hash map, a ClientQueryRecord
241 * @return GNUNET_YES (we should continue to iterate)
244 remove_client_records (void *cls, const GNUNET_HashCode * key, void *value)
246 struct ClientList *client = cls;
247 struct ClientQueryRecord *record = value;
249 if (record->client != client)
251 GNUNET_assert (GNUNET_YES ==
252 GNUNET_CONTAINER_multihashmap_remove (forward_map,
254 if (NULL != record->hnode)
255 GNUNET_CONTAINER_heap_remove_node (record->hnode);
256 GNUNET_array_grow (record->seen_replies,
257 record->seen_replies_count,
259 GNUNET_free (record);
265 * Functions with this signature are called whenever a client
266 * is disconnected on the network level.
268 * @param cls closure (NULL for dht)
269 * @param client identification of the client; NULL
270 * for the last call when the server is destroyed
273 handle_client_disconnect (void *cls,
274 struct GNUNET_SERVER_Client *client)
276 struct ClientList *pos;
277 struct PendingMessage *reply;
279 pos = find_active_client (client);
280 GNUNET_CONTAINER_DLL_remove (client_head,
283 if (pos->transmit_handle != NULL)
284 GNUNET_CONNECTION_notify_transmit_ready_cancel (pos->transmit_handle);
285 while (NULL != (reply = pos->pending_head))
287 GNUNET_CONTAINER_DLL_remove (pos->pending_head, pos->pending_tail,
291 GNUNET_CONTAINER_multihashmap_iterate (forward_map,
292 &remove_client_records, pos);
298 * Route the given request via the DHT. This includes updating
299 * the bloom filter and retransmission times, building the P2P
300 * message and initiating the routing operation.
303 transmit_request (struct ClientQueryRecord *cqr)
305 int32_t reply_bf_mutator;
306 struct GNUNET_CONTAINER_BloomFilter *reply_bf;
307 struct GNUNET_CONTAINER_BloomFilter *peer_bf;
309 GNUNET_STATISTICS_update (GDS_stats,
310 gettext_noop ("# GET requests from clients injected"), 1,
312 reply_bf_mutator = (int32_t) GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK,
314 reply_bf = GNUNET_BLOCK_construct_bloomfilter (reply_bf_mutator,
316 cqr->seen_replies_count);
317 peer_bf = GNUNET_CONTAINER_bloomfilter_init (NULL,
319 GNUNET_CONSTANTS_BLOOMFILTER_K);
320 GDS_NEIGHBOURS_handle_get (cqr->type,
330 GNUNET_CONTAINER_bloomfilter_free (reply_bf);
331 GNUNET_CONTAINER_bloomfilter_free (peer_bf);
333 /* exponential back-off for retries, max 1h */
334 cqr->retry_frequency =
335 GNUNET_TIME_relative_max (GNUNET_TIME_UNIT_HOURS,
336 GNUNET_TIME_relative_multiply (cqr->retry_frequency, 2));
337 cqr->retry_time = GNUNET_TIME_relative_to_absolute (cqr->retry_frequency);
342 * Task that looks at the 'retry_heap' and transmits all of the requests
343 * on the heap that are ready for transmission. Then re-schedules
344 * itself (unless the heap is empty).
347 * @param tc scheduler context
350 transmit_next_request_task (void *cls,
351 const struct GNUNET_SCHEDULER_TaskContext *tc)
353 struct ClientQueryRecord *cqr;
354 struct GNUNET_TIME_Relative delay;
356 retry_task = GNUNET_SCHEDULER_NO_TASK;
357 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
359 while (NULL != (cqr = GNUNET_CONTAINER_heap_remove_root (retry_heap)))
362 delay = GNUNET_TIME_absolute_get_remaining (cqr->retry_time);
363 if (delay.rel_value > 0)
365 cqr->hnode = GNUNET_CONTAINER_heap_insert (retry_heap, cqr,
366 cqr->retry_time.abs_value);
367 retry_task = GNUNET_SCHEDULER_add_delayed (delay,
368 &transmit_next_request_task,
372 transmit_request (cqr);
378 * Handler for PUT messages.
380 * @param cls closure for the service
381 * @param client the client we received this message from
382 * @param message the actual message received
385 handle_dht_local_put (void *cls, struct GNUNET_SERVER_Client *client,
386 const struct GNUNET_MessageHeader *message)
388 const struct GNUNET_DHT_ClientPutMessage *dht_msg;
389 struct GNUNET_CONTAINER_BloomFilter *peer_bf;
392 size = ntohs (message->size);
393 if (size < sizeof (struct GNUNET_DHT_ClientPutMessage))
396 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
399 GNUNET_STATISTICS_update (GDS_stats,
400 gettext_noop ("# PUT requests received from clients"), 1,
402 dht_msg = (const struct GNUNET_DHT_ClientPutMessage *) message;
403 /* give to local clients */
404 GDS_CLIENTS_handle_reply (GNUNET_TIME_absolute_ntoh (dht_msg->expiration),
408 ntohl (dht_msg->type),
409 size - sizeof (struct GNUNET_DHT_ClientPutMessage),
412 GDS_DATACACHE_handle_put (GNUNET_TIME_absolute_ntoh (dht_msg->expiration),
415 ntohl (dht_msg->type),
416 size - sizeof (struct GNUNET_DHT_ClientPutMessage),
418 /* route to other peers */
419 peer_bf = GNUNET_CONTAINER_bloomfilter_init (NULL,
421 GNUNET_CONSTANTS_BLOOMFILTER_K);
422 GDS_NEIGHBOURS_handle_put (ntohl (dht_msg->type),
423 ntohl (dht_msg->options),
424 ntohl (dht_msg->desired_replication_level),
425 GNUNET_TIME_absolute_ntoh (dht_msg->expiration),
431 size - sizeof (struct GNUNET_DHT_ClientPutMessage));
432 GNUNET_CONTAINER_bloomfilter_free (peer_bf);
433 GNUNET_SERVER_receive_done (client, GNUNET_OK);
438 * Handler for any generic DHT messages, calls the appropriate handler
439 * depending on message type, sends confirmation if responses aren't otherwise
442 * @param cls closure for the service
443 * @param client the client we received this message from
444 * @param message the actual message received
447 handle_dht_local_get (void *cls, struct GNUNET_SERVER_Client *client,
448 const struct GNUNET_MessageHeader *message)
450 const struct GNUNET_DHT_ClientGetMessage *get;
451 struct ClientQueryRecord *cqr;
456 size = ntohs (message->size);
457 if (size < sizeof (struct GNUNET_DHT_ClientGetMessage))
460 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
463 xquery_size = size - sizeof (struct GNUNET_DHT_ClientGetMessage);
464 get = (const struct GNUNET_DHT_ClientGetMessage *) message;
465 xquery = (const char*) &get[1];
466 GNUNET_STATISTICS_update (GDS_stats,
467 gettext_noop ("# GET requests received from clients"), 1,
470 cqr = GNUNET_malloc (sizeof (struct ClientQueryRecord) + xquery_size);
472 cqr->client = find_active_client (client);
473 cqr->xquery = (void*) &cqr[1];
474 memcpy (&cqr[1], xquery, xquery_size);
475 cqr->hnode = GNUNET_CONTAINER_heap_insert (retry_heap, cqr, 0);
476 cqr->retry_frequency = GNUNET_TIME_UNIT_MILLISECONDS;
477 cqr->retry_time = GNUNET_TIME_absolute_get ();
478 cqr->unique_id = get->unique_id;
479 cqr->xquery_size = xquery_size;
480 cqr->replication = ntohl (get->desired_replication_level);
481 cqr->msg_options = ntohl (get->options);
482 cqr->type = ntohl (get->type);
483 GNUNET_CONTAINER_multihashmap_put (forward_map, &get->key, cqr,
484 GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE);
485 /* start remote requests */
486 if (GNUNET_SCHEDULER_NO_TASK != retry_task)
487 GNUNET_SCHEDULER_cancel (retry_task);
488 retry_task = GNUNET_SCHEDULER_add_now (&transmit_next_request_task, NULL);
489 /* perform local lookup */
490 GDS_DATACACHE_handle_get (&get->key,
495 GNUNET_SERVER_receive_done (client, GNUNET_OK);
500 * Closure for 'remove_by_unique_id'.
502 struct RemoveByUniqueIdContext
505 * Client that issued the removal request.
507 struct ClientList *client;
510 * Unique ID of the request.
517 * Iterator over hash map entries that frees all entries
518 * that match the given client and unique ID.
520 * @param cls unique ID and client to search for in source routes
521 * @param key current key code
522 * @param value value in the hash map, a ClientQueryRecord
523 * @return GNUNET_YES (we should continue to iterate)
526 remove_by_unique_id (void *cls, const GNUNET_HashCode * key, void *value)
528 const struct RemoveByUniqueIdContext *ctx = cls;
529 struct ClientQueryRecord *record = value;
531 if (record->unique_id != ctx->unique_id)
533 return remove_client_records (ctx->client, key, record);
538 * Handler for any generic DHT stop messages, calls the appropriate handler
539 * depending on message type (if processed locally)
541 * @param cls closure for the service
542 * @param client the client we received this message from
543 * @param message the actual message received
547 handle_dht_local_get_stop (void *cls, struct GNUNET_SERVER_Client *client,
548 const struct GNUNET_MessageHeader *message)
550 const struct GNUNET_DHT_ClientGetStopMessage *dht_stop_msg =
551 (const struct GNUNET_DHT_ClientGetStopMessage *) message;
552 struct RemoveByUniqueIdContext ctx;
554 GNUNET_STATISTICS_update (GDS_stats,
555 gettext_noop ("# GET STOP requests received from clients"), 1,
557 ctx.client = find_active_client (client);
558 ctx.unique_id = dht_stop_msg->unique_id;
559 GNUNET_CONTAINER_multihashmap_get_multiple (forward_map,
561 &remove_by_unique_id,
563 GNUNET_SERVER_receive_done (client, GNUNET_OK);
568 * Task run to check for messages that need to be sent to a client.
570 * @param client a ClientList, containing the client and any messages to be sent to it
573 process_pending_messages (struct ClientList *client);
577 * Callback called as a result of issuing a GNUNET_SERVER_notify_transmit_ready
578 * request. A ClientList is passed as closure, take the head of the list
579 * and copy it into buf, which has the result of sending the message to the
582 * @param cls closure to this call
583 * @param size maximum number of bytes available to send
584 * @param buf where to copy the actual message to
586 * @return the number of bytes actually copied, 0 indicates failure
589 send_reply_to_client (void *cls, size_t size, void *buf)
591 struct ClientList *client = cls;
593 struct PendingMessage *reply;
597 client->transmit_handle = NULL;
600 /* client disconnected */
604 while ((NULL != (reply = client->pending_head)) &&
605 (size >= off + (msize = ntohs (reply->msg->size))))
607 GNUNET_CONTAINER_DLL_remove (client->pending_head, client->pending_tail,
609 memcpy (&cbuf[off], reply->msg, msize);
613 process_pending_messages (client);
619 * Task run to check for messages that need to be sent to a client.
621 * @param client a ClientList, containing the client and any messages to be sent to it
624 process_pending_messages (struct ClientList *client)
626 if ((client->pending_head == NULL) || (client->transmit_handle != NULL))
628 client->transmit_handle =
629 GNUNET_SERVER_notify_transmit_ready (client->client_handle,
630 ntohs (client->pending_head->
632 GNUNET_TIME_UNIT_FOREVER_REL,
633 &send_reply_to_client, client);
638 * Add a PendingMessage to the clients list of messages to be sent
640 * @param client the active client to send the message to
641 * @param pending_message the actual message to send
644 add_pending_message (struct ClientList *client,
645 struct PendingMessage *pending_message)
647 GNUNET_CONTAINER_DLL_insert_tail (client->pending_head, client->pending_tail,
649 process_pending_messages (client);
654 * Closure for 'forward_reply'
656 struct ForwardReplyContext
660 * Actual message to send to matching clients.
662 struct PendingMessage *pm;
672 enum GNUNET_BLOCK_Type type;
675 * Number of bytes in data.
680 * Do we need to copy 'pm' because it was already used?
688 * Iterator over hash map entries that send a given reply to
689 * each of the matching clients. With some tricky recycling
692 * @param cls the 'struct ForwardReplyContext'
693 * @param key current key
694 * @param value value in the hash map, a ClientQueryRecord
695 * @return GNUNET_YES (we should continue to iterate),
696 * if the result is mal-formed, GNUNET_NO
699 forward_reply (void *cls, const GNUNET_HashCode * key, void *value)
701 struct ForwardReplyContext *frc = cls;
702 struct ClientQueryRecord *record = value;
703 struct PendingMessage *pm;
704 struct GNUNET_DHT_ClientResultMessage *reply;
705 enum GNUNET_BLOCK_EvaluationResult eval;
710 if ( (record->type != GNUNET_BLOCK_TYPE_ANY) &&
711 (record->type != frc->type) )
713 GNUNET_STATISTICS_update (GDS_stats,
714 gettext_noop ("# Key match, type mismatches in REPLY to CLIENT"), 1,
716 return GNUNET_YES; /* type mismatch */
718 GNUNET_CRYPTO_hash (frc->data,
721 for (i=0;i<record->seen_replies_count;i++)
722 if (0 == memcmp (&record->seen_replies[i],
724 sizeof (GNUNET_HashCode)))
726 GNUNET_STATISTICS_update (GDS_stats,
727 gettext_noop ("# Duplicate REPLIES to CLIENT request dropped"), 1,
729 return GNUNET_YES; /* duplicate */
732 GNUNET_BLOCK_evaluate (GDS_block_context,
741 case GNUNET_BLOCK_EVALUATION_OK_LAST:
742 do_free = GNUNET_YES;
744 case GNUNET_BLOCK_EVALUATION_OK_MORE:
745 GNUNET_array_append (record->seen_replies,
746 record->seen_replies_count,
750 case GNUNET_BLOCK_EVALUATION_OK_DUPLICATE:
751 /* should be impossible to encounter here */
754 case GNUNET_BLOCK_EVALUATION_RESULT_INVALID:
757 case GNUNET_BLOCK_EVALUATION_REQUEST_VALID:
760 case GNUNET_BLOCK_EVALUATION_REQUEST_INVALID:
763 case GNUNET_BLOCK_EVALUATION_TYPE_NOT_SUPPORTED:
764 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
765 _("Unsupported block type (%u) in request!\n"),
769 if (GNUNET_NO == frc->do_copy)
771 /* first time, we can use the original data */
773 frc->do_copy = GNUNET_YES;
777 /* two clients waiting for same reply, must copy for queueing */
778 pm = GNUNET_malloc (sizeof (struct PendingMessage) +
779 ntohs (frc->pm->msg->size));
781 sizeof (struct PendingMessage) + ntohs (frc->pm->msg->size));
782 pm->next = pm->prev = NULL;
784 GNUNET_STATISTICS_update (GDS_stats,
785 gettext_noop ("# RESULTS queued for clients"), 1,
787 reply = (struct GNUNET_DHT_ClientResultMessage*) &pm[1];
788 reply->unique_id = record->unique_id;
789 add_pending_message (record->client, pm);
790 if (GNUNET_YES == do_free)
791 remove_client_records (record->client, key, record);
797 * Handle a reply we've received from another peer. If the reply
798 * matches any of our pending queries, forward it to the respective
801 * @param expiration when will the reply expire
802 * @param key the query this reply is for
803 * @param get_path_length number of peers in 'get_path'
804 * @param get_path path the reply took on get
805 * @param put_path_length number of peers in 'put_path'
806 * @param put_path path the reply took on put
807 * @param type type of the reply
808 * @param data_size number of bytes in 'data'
809 * @param data application payload data
812 GDS_CLIENTS_handle_reply (struct GNUNET_TIME_Absolute expiration,
813 const GNUNET_HashCode *key,
814 unsigned int get_path_length,
815 const struct GNUNET_PeerIdentity *get_path,
816 unsigned int put_path_length,
817 const struct GNUNET_PeerIdentity *put_path,
818 enum GNUNET_BLOCK_Type type,
822 struct ForwardReplyContext frc;
823 struct PendingMessage *pm;
824 struct GNUNET_DHT_ClientResultMessage *reply;
825 struct GNUNET_PeerIdentity *paths;
829 GNUNET_CONTAINER_multihashmap_get (forward_map, key))
831 GNUNET_STATISTICS_update (GDS_stats,
832 gettext_noop ("# REPLIES ignored for CLIENTS (no match)"), 1,
834 return; /* no matching request, fast exit! */
836 msize = sizeof(struct GNUNET_DHT_ClientResultMessage) + data_size +
837 (get_path_length + put_path_length) * sizeof (struct GNUNET_PeerIdentity);
838 if (msize >= GNUNET_SERVER_MAX_MESSAGE_SIZE)
840 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
841 _("Could not pass reply to client, message too big!\n"));
844 pm = (struct PendingMessage *) GNUNET_malloc (msize + sizeof (struct PendingMessage));
845 reply = (struct GNUNET_DHT_ClientResultMessage*) &pm[1];
846 pm->msg = &reply->header;
847 reply->header.size = htons ((uint16_t) msize);
848 reply->header.type = htons (GNUNET_MESSAGE_TYPE_DHT_CLIENT_RESULT);
849 reply->type = htonl (type);
850 reply->get_path_length = htonl (get_path_length);
851 reply->put_path_length = htonl (put_path_length);
852 reply->unique_id = 0; /* filled in later */
853 reply->expiration = GNUNET_TIME_absolute_hton (expiration);
855 paths = (struct GNUNET_PeerIdentity*) &reply[1];
856 memcpy (paths, get_path,
857 sizeof (struct GNUNET_PeerIdentity) * get_path_length);
858 memcpy (&paths[get_path_length],
859 put_path, sizeof (struct GNUNET_PeerIdentity) * put_path_length);
860 memcpy (&paths[get_path_length + put_path_length],
863 frc.do_copy = GNUNET_NO;
866 frc.data_size = data_size;
868 GNUNET_CONTAINER_multihashmap_get_multiple (forward_map, key,
871 if (GNUNET_NO == frc.do_copy)
873 /* did not match any of the requests, free! */
880 * Initialize client subsystem.
882 * @param server the initialized server
885 GDS_CLIENTS_init (struct GNUNET_SERVER_Handle *server)
887 static struct GNUNET_SERVER_MessageHandler plugin_handlers[] = {
888 {&handle_dht_local_put, NULL,
889 GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT, 0},
890 {&handle_dht_local_get, NULL,
891 GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET, 0},
892 {&handle_dht_local_get_stop, NULL,
893 GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_STOP,
894 sizeof (struct GNUNET_DHT_ClientGetStopMessage) },
897 forward_map = GNUNET_CONTAINER_multihashmap_create (1024);
898 retry_heap = GNUNET_CONTAINER_heap_create (GNUNET_CONTAINER_HEAP_ORDER_MIN);
899 GNUNET_SERVER_add_handlers (server, plugin_handlers);
900 GNUNET_SERVER_disconnect_notify (server, &handle_client_disconnect, NULL);
905 * Shutdown client subsystem.
910 GNUNET_assert (client_head == NULL);
911 GNUNET_assert (client_tail == NULL);
912 if (GNUNET_SCHEDULER_NO_TASK != retry_task)
914 GNUNET_SCHEDULER_cancel (retry_task);
915 retry_task = GNUNET_SCHEDULER_NO_TASK;
917 GNUNET_assert (0 == GNUNET_CONTAINER_heap_get_size (retry_heap));
918 GNUNET_CONTAINER_heap_destroy (retry_heap);
920 GNUNET_assert (0 == GNUNET_CONTAINER_multihashmap_size (forward_map));
921 GNUNET_CONTAINER_multihashmap_destroy (forward_map);
925 /* end of gnunet-service-dht_clients.c */