diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-06-07 22:08:36 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-06-07 22:08:36 +0000 |
commit | 4cb7e23cef8a149ac1334519ff898cc05811ac66 (patch) | |
tree | 74701b6ef23c97b508a8a382fc929ed4ca783bbf /src/fs/gnunet-service-fs.c | |
parent | a75ced83ea0041bc72e615743aa192f141ead643 (diff) | |
download | gnunet-4cb7e23cef8a149ac1334519ff898cc05811ac66.tar.gz gnunet-4cb7e23cef8a149ac1334519ff898cc05811ac66.zip |
add support for delays
Diffstat (limited to 'src/fs/gnunet-service-fs.c')
-rw-r--r-- | src/fs/gnunet-service-fs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c index 87cdd8322..d95aec6bf 100644 --- a/src/fs/gnunet-service-fs.c +++ b/src/fs/gnunet-service-fs.c | |||
@@ -128,6 +128,10 @@ struct GNUNET_BLOCK_Context *GSF_block_ctx; | |||
128 | */ | 128 | */ |
129 | struct GNUNET_CORE_Handle *GSF_core; | 129 | struct GNUNET_CORE_Handle *GSF_core; |
130 | 130 | ||
131 | /** | ||
132 | * Are we introducing randomized delays for better anonymity? | ||
133 | */ | ||
134 | int GSF_enable_randomized_delays; | ||
131 | 135 | ||
132 | /* ***************************** locals ******************************* */ | 136 | /* ***************************** locals ******************************* */ |
133 | 137 | ||
@@ -235,6 +239,7 @@ handle_p2p_put (void *cls, | |||
235 | GNUNET_break (0); | 239 | GNUNET_break (0); |
236 | return GNUNET_OK; | 240 | return GNUNET_OK; |
237 | } | 241 | } |
242 | GSF_cover_content_count++; | ||
238 | return GSF_handle_p2p_content_ (cp, message); | 243 | return GSF_handle_p2p_content_ (cp, message); |
239 | } | 244 | } |
240 | 245 | ||
@@ -568,6 +573,7 @@ run (void *cls, | |||
568 | const struct GNUNET_CONFIGURATION_Handle *cfg) | 573 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
569 | { | 574 | { |
570 | GSF_cfg = cfg; | 575 | GSF_cfg = cfg; |
576 | GSF_enable_randomized_delays = GNUNET_CONFIGURATION_get_value_yesno (cfg, "fs", "DELAY"); | ||
571 | GSF_dsh = GNUNET_DATASTORE_connect (cfg); | 577 | GSF_dsh = GNUNET_DATASTORE_connect (cfg); |
572 | if (NULL == GSF_dsh) | 578 | if (NULL == GSF_dsh) |
573 | { | 579 | { |