2 This file is part of GNUnet.
3 Copyright (C) 2012, 2013, 2014, 2017, 2018 GNUnet e.V.
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., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
22 * @file zonemaster/gnunet-service-zonemaster.c
23 * @brief publish records from namestore to GNUnet name system
24 * @author Christian Grothoff
27 #include "gnunet_util_lib.h"
28 #include "gnunet_dnsparser_lib.h"
29 #include "gnunet_dht_service.h"
30 #include "gnunet_namestore_service.h"
31 #include "gnunet_statistics_service.h"
34 #define LOG_STRERROR_FILE(kind,syscall,filename) GNUNET_log_from_strerror_file (kind, "util", syscall, filename)
38 * How often should we (re)publish each record before
41 #define PUBLISH_OPS_PER_EXPIRATION 4
44 * How often do we measure the delta between desired zone
45 * iteration speed and actual speed, and tell statistics
48 #define DELTA_INTERVAL 100
51 * How many records do we fetch in one shot from the namestore?
53 #define NS_BLOCK_SIZE 1000
56 * How many pending DHT operations do we allow at most?
58 #define DHT_QUEUE_LIMIT 2000
61 * How many events may the namestore give us before it has to wait
64 #define NAMESTORE_QUEUE_LIMIT 50
67 * The initial interval in milliseconds btween puts in
70 #define INITIAL_ZONE_ITERATION_INTERVAL GNUNET_TIME_UNIT_MILLISECONDS
73 * The upper bound for the zone iteration interval
76 #define MAXIMUM_ZONE_ITERATION_INTERVAL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 15)
79 * The default put interval for the zone iteration. In case
82 #define DEFAULT_ZONE_PUBLISH_TIME_WINDOW GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 4)
85 * The factor the current zone iteration interval is divided by for each
86 * additional new record
88 #define LATE_ITERATION_SPEEDUP_FACTOR 2
91 * What replication level do we use for DHT PUT operations?
93 #define DHT_GNS_REPLICATION_LEVEL 5
97 * Handle for DHT PUT activity triggered from the namestore monitor.
104 struct DhtPutActivity *next;
109 struct DhtPutActivity *prev;
112 * Handle for the DHT PUT operation.
114 struct GNUNET_DHT_PutHandle *ph;
117 * When was this PUT initiated?
119 struct GNUNET_TIME_Absolute start_date;
124 * Handle to the statistics service
126 static struct GNUNET_STATISTICS_Handle *statistics;
129 * Our handle to the DHT
131 static struct GNUNET_DHT_Handle *dht_handle;
134 * Our handle to the namestore service
136 static struct GNUNET_NAMESTORE_Handle *namestore_handle;
139 * Handle to iterate over our authoritative zone in namestore
141 static struct GNUNET_NAMESTORE_ZoneIterator *namestore_iter;
144 * Head of iteration put activities; kept in a DLL.
146 static struct DhtPutActivity *it_head;
149 * Tail of iteration put activities; kept in a DLL.
151 static struct DhtPutActivity *it_tail;
154 * Number of entries in the DHT queue #it_head.
156 static unsigned int dht_queue_length;
159 * Useful for zone update for DHT put
161 static unsigned long long num_public_records;
164 * Last seen record count
166 static unsigned long long last_num_public_records;
169 * Number of successful put operations performed in the current
170 * measurement cycle (as measured in #check_zone_namestore_next()).
172 static unsigned long long put_cnt;
175 * What is the frequency at which we currently would like
176 * to perform DHT puts (per record)? Calculated in
177 * update_velocity() from the #zone_publish_time_window()
178 * and the total number of record sets we have (so far)
179 * observed in the zone.
181 static struct GNUNET_TIME_Relative target_iteration_velocity_per_record;
184 * Minimum relative expiration time of records seem during the current
187 static struct GNUNET_TIME_Relative min_relative_record_time;
190 * Minimum relative expiration time of records seem during the last
193 static struct GNUNET_TIME_Relative last_min_relative_record_time;
196 * Default time window for zone iteration
198 static struct GNUNET_TIME_Relative zone_publish_time_window_default;
201 * Time window for zone iteration, adjusted based on relative record
202 * expiration times in our zone.
204 static struct GNUNET_TIME_Relative zone_publish_time_window;
207 * When did we last start measuring the #DELTA_INTERVAL successful
208 * DHT puts? Used for velocity calculations.
210 static struct GNUNET_TIME_Absolute last_put_100;
213 * By how much should we try to increase our per-record iteration speed
214 * (over the desired speed calculated directly from the #put_interval)?
215 * Basically this value corresponds to the per-record CPU time overhead
218 static struct GNUNET_TIME_Relative sub_delta;
223 static struct GNUNET_SCHEDULER_Task *zone_publish_task;
226 * How many more values are left for the current query before we need
227 * to explicitly ask the namestore for more?
229 static unsigned int ns_iteration_left;
232 * #GNUNET_YES if zone has never been published before
234 static int first_zone_iteration;
237 * Optimize block insertion by caching map of private keys to
238 * public keys in memory?
240 static int cache_keys;
244 * Task run during shutdown.
250 shutdown_task (void *cls)
252 struct DhtPutActivity *ma;
255 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
257 while (NULL != (ma = it_head))
259 GNUNET_DHT_put_cancel (ma->ph);
261 GNUNET_CONTAINER_DLL_remove (it_head,
267 if (NULL != statistics)
269 GNUNET_STATISTICS_destroy (statistics,
273 if (NULL != zone_publish_task)
275 GNUNET_SCHEDULER_cancel (zone_publish_task);
276 zone_publish_task = NULL;
278 if (NULL != namestore_iter)
280 GNUNET_NAMESTORE_zone_iteration_stop (namestore_iter);
281 namestore_iter = NULL;
283 if (NULL != namestore_handle)
285 GNUNET_NAMESTORE_disconnect (namestore_handle);
286 namestore_handle = NULL;
288 if (NULL != dht_handle)
290 GNUNET_DHT_disconnect (dht_handle);
297 * Method called periodically that triggers iteration over authoritative records
302 publish_zone_namestore_next (void *cls)
305 zone_publish_task = NULL;
306 GNUNET_assert (NULL != namestore_iter);
307 GNUNET_assert (0 == ns_iteration_left);
308 ns_iteration_left = NS_BLOCK_SIZE;
309 GNUNET_NAMESTORE_zone_iterator_next (namestore_iter,
315 * Periodically iterate over our zone and store everything in dht
320 publish_zone_dht_start (void *cls);
324 * Calculate #target_iteration_velocity_per_record.
327 calculate_put_interval ()
329 if (0 == num_public_records)
332 * If no records are known (startup) or none present
333 * we can safely set the interval to the value for a single
336 target_iteration_velocity_per_record = zone_publish_time_window;
337 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG | GNUNET_ERROR_TYPE_BULK,
338 "No records in namestore database.\n");
342 last_min_relative_record_time
343 = GNUNET_TIME_relative_min (last_min_relative_record_time,
344 min_relative_record_time);
345 zone_publish_time_window
346 = GNUNET_TIME_relative_min (GNUNET_TIME_relative_divide (last_min_relative_record_time,
347 PUBLISH_OPS_PER_EXPIRATION),
348 zone_publish_time_window_default);
349 target_iteration_velocity_per_record
350 = GNUNET_TIME_relative_divide (zone_publish_time_window,
351 last_num_public_records);
353 target_iteration_velocity_per_record
354 = GNUNET_TIME_relative_min (target_iteration_velocity_per_record,
355 MAXIMUM_ZONE_ITERATION_INTERVAL);
356 GNUNET_STATISTICS_set (statistics,
357 "Minimum relative record expiration (in μs)",
358 last_min_relative_record_time.rel_value_us,
360 GNUNET_STATISTICS_set (statistics,
361 "Zone publication time window (in μs)",
362 zone_publish_time_window.rel_value_us,
364 GNUNET_STATISTICS_set (statistics,
365 "Target zone iteration velocity (μs)",
366 target_iteration_velocity_per_record.rel_value_us,
372 * Re-calculate our velocity and the desired velocity.
373 * We have succeeded in making #DELTA_INTERVAL puts, so
374 * now calculate the new desired delay between puts.
376 * @param cnt how many records were processed since the last call?
379 update_velocity (unsigned int cnt)
381 struct GNUNET_TIME_Relative delta;
382 unsigned long long pct = 0;
386 /* How fast were we really? */
387 delta = GNUNET_TIME_absolute_get_duration (last_put_100);
388 delta.rel_value_us /= cnt;
389 last_put_100 = GNUNET_TIME_absolute_get ();
391 /* calculate expected frequency */
392 if ( (num_public_records > last_num_public_records) &&
393 (GNUNET_NO == first_zone_iteration) )
395 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
396 "Last record count was lower than current record count. Reducing interval.\n");
397 last_num_public_records = num_public_records * LATE_ITERATION_SPEEDUP_FACTOR;
398 calculate_put_interval ();
400 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
401 "Desired global zone iteration interval is %s/record!\n",
402 GNUNET_STRINGS_relative_time_to_string (target_iteration_velocity_per_record,
405 /* Tell statistics actual vs. desired speed */
406 GNUNET_STATISTICS_set (statistics,
407 "Current zone iteration velocity (μs/record)",
410 /* update "sub_delta" based on difference, taking
411 previous sub_delta into account! */
412 if (target_iteration_velocity_per_record.rel_value_us > delta.rel_value_us)
414 /* We were too fast, reduce sub_delta! */
415 struct GNUNET_TIME_Relative corr;
417 corr = GNUNET_TIME_relative_subtract (target_iteration_velocity_per_record,
419 if (sub_delta.rel_value_us > delta.rel_value_us)
421 /* Reduce sub_delta by corr */
422 sub_delta = GNUNET_TIME_relative_subtract (sub_delta,
427 /* We're doing fine with waiting the full time, this
428 should theoretically only happen if we run at
430 sub_delta = GNUNET_TIME_UNIT_ZERO;
433 else if (target_iteration_velocity_per_record.rel_value_us < delta.rel_value_us)
435 /* We were too slow, increase sub_delta! */
436 struct GNUNET_TIME_Relative corr;
438 corr = GNUNET_TIME_relative_subtract (delta,
439 target_iteration_velocity_per_record);
440 sub_delta = GNUNET_TIME_relative_add (sub_delta,
442 if (sub_delta.rel_value_us > target_iteration_velocity_per_record.rel_value_us)
444 /* CPU overload detected, we cannot go at desired speed,
445 as this would mean using a negative delay. */
446 /* compute how much faster we would want to be for
447 the desired velocity */
448 if (0 == target_iteration_velocity_per_record.rel_value_us)
449 pct = UINT64_MAX; /* desired speed is infinity ... */
451 pct = (sub_delta.rel_value_us -
452 target_iteration_velocity_per_record.rel_value_us) * 100LLU
453 / target_iteration_velocity_per_record.rel_value_us;
454 sub_delta = target_iteration_velocity_per_record;
457 GNUNET_STATISTICS_set (statistics,
458 "# size of the DHT queue (it)",
461 GNUNET_STATISTICS_set (statistics,
462 "% speed increase needed for target velocity",
465 GNUNET_STATISTICS_set (statistics,
466 "# records processed in current iteration",
473 * Check if the current zone iteration needs to be continued
474 * by calling #publish_zone_namestore_next(), and if so with what delay.
477 check_zone_namestore_next ()
479 struct GNUNET_TIME_Relative delay;
481 if (0 != ns_iteration_left)
482 return; /* current NAMESTORE iteration not yet done */
483 update_velocity (put_cnt);
485 delay = GNUNET_TIME_relative_subtract (target_iteration_velocity_per_record,
487 /* We delay *once* per #NS_BLOCK_SIZE, so we need to multiply the
488 per-record delay calculated so far with the #NS_BLOCK_SIZE */
489 GNUNET_STATISTICS_set (statistics,
490 "Current artificial NAMESTORE delay (μs/record)",
493 delay = GNUNET_TIME_relative_multiply (delay,
495 /* make sure we do not overshoot because of the #NS_BLOCK_SIZE factor */
496 delay = GNUNET_TIME_relative_min (MAXIMUM_ZONE_ITERATION_INTERVAL,
498 /* no delays on first iteration */
499 if (GNUNET_YES == first_zone_iteration)
500 delay = GNUNET_TIME_UNIT_ZERO;
501 GNUNET_assert (NULL == zone_publish_task);
502 zone_publish_task = GNUNET_SCHEDULER_add_delayed (delay,
503 &publish_zone_namestore_next,
509 * Continuation called from DHT once the PUT operation is done.
511 * @param cls a `struct DhtPutActivity`
514 dht_put_continuation (void *cls)
516 struct DhtPutActivity *ma = cls;
518 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
521 GNUNET_CONTAINER_DLL_remove (it_head,
529 * Convert namestore records from the internal format to that
530 * suitable for publication (removes private records, converts
531 * to absolute expiration time).
533 * @param rd input records
534 * @param rd_count size of the @a rd and @a rd_public arrays
535 * @param rd_public where to write the converted records
536 * @return number of records written to @a rd_public
539 convert_records_for_export (const struct GNUNET_GNSRECORD_Data *rd,
540 unsigned int rd_count,
541 struct GNUNET_GNSRECORD_Data *rd_public)
543 struct GNUNET_TIME_Absolute now;
544 unsigned int rd_public_count;
547 now = GNUNET_TIME_absolute_get ();
548 for (unsigned int i=0;i<rd_count;i++)
549 if (0 == (rd[i].flags & GNUNET_GNSRECORD_RF_PRIVATE))
551 rd_public[rd_public_count] = rd[i];
552 if (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION))
554 /* GNUNET_GNSRECORD_block_create will convert to absolute time;
555 we just need to adjust our iteration frequency */
556 min_relative_record_time.rel_value_us =
557 GNUNET_MIN (rd_public[rd_public_count].expiration_time,
558 min_relative_record_time.rel_value_us);
560 else if (rd_public[rd_public_count].expiration_time < now.abs_value_us)
562 /* record already expired, skip it */
567 return rd_public_count;
572 * Store GNS records in the DHT.
574 * @param key key of the zone
575 * @param label label to store under
576 * @param rd_public public record data
577 * @param rd_public_count number of records in @a rd_public
578 * @param ma handle for the put operation
579 * @return DHT PUT handle, NULL on error
581 static struct GNUNET_DHT_PutHandle *
582 perform_dht_put (const struct GNUNET_CRYPTO_EcdsaPrivateKey *key,
584 const struct GNUNET_GNSRECORD_Data *rd_public,
585 unsigned int rd_public_count,
586 struct DhtPutActivity *ma)
588 struct GNUNET_GNSRECORD_Block *block;
589 struct GNUNET_HashCode query;
590 struct GNUNET_TIME_Absolute expire;
592 struct GNUNET_DHT_PutHandle *ret;
594 expire = GNUNET_GNSRECORD_record_get_expiration_time (rd_public_count,
597 block = GNUNET_GNSRECORD_block_create2 (key,
603 block = GNUNET_GNSRECORD_block_create (key,
611 return NULL; /* whoops */
613 block_size = ntohl (block->purpose.size)
614 + sizeof (struct GNUNET_CRYPTO_EcdsaSignature)
615 + sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey);
616 GNUNET_GNSRECORD_query_from_private_key (key,
619 GNUNET_STATISTICS_update (statistics,
620 "DHT put operations initiated",
623 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
624 "Storing %u record(s) for label `%s' in DHT with expiration `%s' under key %s\n",
627 GNUNET_STRINGS_absolute_time_to_string (expire),
628 GNUNET_h2s (&query));
629 num_public_records++;
630 ret = GNUNET_DHT_put (dht_handle,
632 DHT_GNS_REPLICATION_LEVEL,
633 GNUNET_DHT_RO_DEMULTIPLEX_EVERYWHERE,
634 GNUNET_BLOCK_TYPE_GNS_NAMERECORD,
638 &dht_put_continuation,
646 * We encountered an error in our zone iteration.
651 zone_iteration_error (void *cls)
654 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
655 "Got disconnected from namestore database, retrying.\n");
656 namestore_iter = NULL;
657 /* We end up here on error/disconnect/shutdown, so potentially
658 while a zone publish task or a DHT put is still running; hence
659 we need to cancel those. */
660 if (NULL != zone_publish_task)
662 GNUNET_SCHEDULER_cancel (zone_publish_task);
663 zone_publish_task = NULL;
665 zone_publish_task = GNUNET_SCHEDULER_add_now (&publish_zone_dht_start,
671 * Zone iteration is completed.
676 zone_iteration_finished (void *cls)
679 /* we're done with one iteration, calculate when to do the next one */
680 namestore_iter = NULL;
681 last_num_public_records = num_public_records;
682 first_zone_iteration = GNUNET_NO;
683 last_min_relative_record_time = min_relative_record_time;
684 calculate_put_interval ();
685 /* reset for next iteration */
686 min_relative_record_time
687 = GNUNET_TIME_relative_multiply (GNUNET_DHT_DEFAULT_REPUBLISH_FREQUENCY,
688 PUBLISH_OPS_PER_EXPIRATION);
689 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
690 "Zone iteration finished. Adjusted zone iteration interval to %s\n",
691 GNUNET_STRINGS_relative_time_to_string (target_iteration_velocity_per_record,
693 GNUNET_STATISTICS_set (statistics,
694 "Target zone iteration velocity (μs)",
695 target_iteration_velocity_per_record.rel_value_us,
697 GNUNET_STATISTICS_set (statistics,
698 "Number of public records in DHT",
699 last_num_public_records,
701 GNUNET_assert (NULL == zone_publish_task);
702 if (0 == last_num_public_records)
704 zone_publish_task = GNUNET_SCHEDULER_add_delayed (target_iteration_velocity_per_record,
705 &publish_zone_dht_start,
710 zone_publish_task = GNUNET_SCHEDULER_add_now (&publish_zone_dht_start,
717 * Function used to put all records successively into the DHT.
719 * @param cls the closure (NULL)
720 * @param key the private key of the authority (ours)
721 * @param label the name of the records, NULL once the iteration is done
722 * @param rd_count the number of records in @a rd
723 * @param rd the record data
726 put_gns_record (void *cls,
727 const struct GNUNET_CRYPTO_EcdsaPrivateKey *key,
729 unsigned int rd_count,
730 const struct GNUNET_GNSRECORD_Data *rd)
732 struct GNUNET_GNSRECORD_Data rd_public[rd_count];
733 unsigned int rd_public_count;
734 struct DhtPutActivity *ma;
738 rd_public_count = convert_records_for_export (rd,
741 if (0 == rd_public_count)
743 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
744 "Record set empty, moving to next record set\n");
745 check_zone_namestore_next ();
748 /* We got a set of records to publish */
749 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
750 "Starting DHT PUT\n");
751 ma = GNUNET_new (struct DhtPutActivity);
752 ma->start_date = GNUNET_TIME_absolute_get ();
753 ma->ph = perform_dht_put (key,
759 if (0 == put_cnt % DELTA_INTERVAL)
760 update_velocity (DELTA_INTERVAL);
761 check_zone_namestore_next ();
764 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
765 "Could not perform DHT PUT, is the DHT running?\n");
770 GNUNET_CONTAINER_DLL_insert_tail (it_head,
773 if (dht_queue_length > DHT_QUEUE_LIMIT)
776 GNUNET_CONTAINER_DLL_remove (it_head,
779 GNUNET_DHT_put_cancel (ma->ph);
781 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
782 "DHT PUT unconfirmed after %s, aborting PUT\n",
783 GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration (ma->start_date),
791 * Periodically iterate over all zones and store everything in DHT
796 publish_zone_dht_start (void *cls)
799 zone_publish_task = NULL;
800 GNUNET_STATISTICS_update (statistics,
801 "Full zone iterations launched",
804 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
805 "Starting DHT zone update!\n");
806 /* start counting again */
807 num_public_records = 0;
808 GNUNET_assert (NULL == namestore_iter);
809 ns_iteration_left = 1;
811 = GNUNET_NAMESTORE_zone_iteration_start (namestore_handle,
812 NULL, /* All zones */
813 &zone_iteration_error,
817 &zone_iteration_finished,
819 GNUNET_assert (NULL != namestore_iter);
824 * Performe zonemaster duties: watch namestore, publish records.
827 * @param server the initialized server
828 * @param c configuration to use
832 const struct GNUNET_CONFIGURATION_Handle *c,
833 struct GNUNET_SERVICE_Handle *service)
835 unsigned long long max_parallel_bg_queries = 128;
839 last_put_100 = GNUNET_TIME_absolute_get (); /* first time! */
840 min_relative_record_time
841 = GNUNET_TIME_relative_multiply (GNUNET_DHT_DEFAULT_REPUBLISH_FREQUENCY,
842 PUBLISH_OPS_PER_EXPIRATION);
843 target_iteration_velocity_per_record = INITIAL_ZONE_ITERATION_INTERVAL;
844 namestore_handle = GNUNET_NAMESTORE_connect (c);
845 if (NULL == namestore_handle)
847 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
848 _("Failed to connect to the namestore!\n"));
849 GNUNET_SCHEDULER_shutdown ();
852 cache_keys = GNUNET_CONFIGURATION_get_value_yesno (c,
855 zone_publish_time_window_default = DEFAULT_ZONE_PUBLISH_TIME_WINDOW;
857 GNUNET_CONFIGURATION_get_value_time (c,
859 "ZONE_PUBLISH_TIME_WINDOW",
860 &zone_publish_time_window_default))
862 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
863 "Time window for zone iteration: %s\n",
864 GNUNET_STRINGS_relative_time_to_string (zone_publish_time_window,
867 zone_publish_time_window = zone_publish_time_window_default;
869 GNUNET_CONFIGURATION_get_value_number (c,
871 "MAX_PARALLEL_BACKGROUND_QUERIES",
872 &max_parallel_bg_queries))
874 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
875 "Number of allowed parallel background queries: %llu\n",
876 max_parallel_bg_queries);
878 if (0 == max_parallel_bg_queries)
879 max_parallel_bg_queries = 1;
880 dht_handle = GNUNET_DHT_connect (c,
881 (unsigned int) max_parallel_bg_queries);
882 if (NULL == dht_handle)
884 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
885 _("Could not connect to DHT!\n"));
886 GNUNET_SCHEDULER_add_now (&shutdown_task,
891 /* Schedule periodic put for our records. */
892 first_zone_iteration = GNUNET_YES;
893 statistics = GNUNET_STATISTICS_create ("zonemaster",
895 GNUNET_STATISTICS_set (statistics,
896 "Target zone iteration velocity (μs)",
897 target_iteration_velocity_per_record.rel_value_us,
899 zone_publish_task = GNUNET_SCHEDULER_add_now (&publish_zone_dht_start,
901 GNUNET_SCHEDULER_add_shutdown (&shutdown_task,
907 * Define "main" method using service macro.
911 GNUNET_SERVICE_OPTION_NONE,
916 GNUNET_MQ_handler_end());
919 /* end of gnunet-service-zonemaster.c */