aboutsummaryrefslogtreecommitdiff
path: root/src/nse/gnunet-service-nse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nse/gnunet-service-nse.c')
-rw-r--r--src/nse/gnunet-service-nse.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c
index c82180dfd..f8d5f76f1 100644
--- a/src/nse/gnunet-service-nse.c
+++ b/src/nse/gnunet-service-nse.c
@@ -1,17 +1,17 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 (C) 2009, 2010, 2011 Christian Grothoff (and other contributing authors) 3 (C) 2009, 2010, 2011 Christian Grothoff (and other contributing authors)
4 4
5 GNUnet is free software; you can redistribute it and/or modify 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 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 7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version. 8 option) any later version.
9 9
10 GNUnet is distributed in the hope that it will be useful, but 10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details. 13 General Public License for more details.
14 14
15 You should have received a copy of the GNU General Public License 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 16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
@@ -207,7 +207,7 @@ static struct GNUNET_CONTAINER_MultiHashMap *peers;
207 207
208/** 208/**
209 * The current network size estimate. Number of bits matching on 209 * The current network size estimate. Number of bits matching on
210 * average thus far. 210 * average thus far.
211 */ 211 */
212static double current_size_estimate; 212static double current_size_estimate;
213 213
@@ -396,7 +396,7 @@ get_matching_bits_delay (uint32_t matching_bits)
396 * What delay randomization should we apply for a given number of matching bits? 396 * What delay randomization should we apply for a given number of matching bits?
397 * 397 *
398 * @param matching_bits number of matching bits 398 * @param matching_bits number of matching bits
399 * @return random delay to apply 399 * @return random delay to apply
400 */ 400 */
401static struct GNUNET_TIME_Relative 401static struct GNUNET_TIME_Relative
402get_delay_randomization (uint32_t matching_bits) 402get_delay_randomization (uint32_t matching_bits)
@@ -439,7 +439,7 @@ get_matching_bits (struct GNUNET_TIME_Absolute timestamp,
439 439
440 440
441/** 441/**
442 * Get the transmission delay that should be applied for a 442 * Get the transmission delay that should be applied for a
443 * particular round. 443 * particular round.
444 * 444 *
445 * @param round_offset -1 for the previous round (random delay between 0 and 50ms) 445 * @param round_offset -1 for the previous round (random delay between 0 and 50ms)
@@ -902,7 +902,7 @@ update_flood_times (void *cls, const GNUNET_HashCode * key, void *value)
902 return GNUNET_OK; /* trigger of the update */ 902 return GNUNET_OK; /* trigger of the update */
903 if (peer_entry->previous_round == GNUNET_NO) 903 if (peer_entry->previous_round == GNUNET_NO)
904 { 904 {
905 /* still stuck in previous round, no point to update, check that 905 /* still stuck in previous round, no point to update, check that
906 * we are active here though... */ 906 * we are active here though... */
907 GNUNET_break ((peer_entry->transmit_task != GNUNET_SCHEDULER_NO_TASK) || 907 GNUNET_break ((peer_entry->transmit_task != GNUNET_SCHEDULER_NO_TASK) ||
908 (peer_entry->th != NULL)); 908 (peer_entry->th != NULL));