diff options
Diffstat (limited to 'src/dht/plugin_block_dht.c')
-rw-r--r-- | src/dht/plugin_block_dht.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/dht/plugin_block_dht.c b/src/dht/plugin_block_dht.c index dc26e0351..c5d902fa9 100644 --- a/src/dht/plugin_block_dht.c +++ b/src/dht/plugin_block_dht.c | |||
@@ -36,10 +36,11 @@ | |||
36 | 36 | ||
37 | /** | 37 | /** |
38 | * Function called to validate a reply or a request. For | 38 | * Function called to validate a reply or a request. For |
39 | * request evaluation, simply pass "NULL" for the reply_block. | 39 | * request evaluation, simply pass "NULL" for the @a reply_block. |
40 | * | 40 | * |
41 | * @param cls closure | 41 | * @param cls closure |
42 | * @param type block type | 42 | * @param type block type |
43 | * @param eo control flags | ||
43 | * @param query original query (hash) | 44 | * @param query original query (hash) |
44 | * @param bf pointer to bloom filter associated with query; possibly updated (!) | 45 | * @param bf pointer to bloom filter associated with query; possibly updated (!) |
45 | * @param bf_mutator mutation value for @a bf | 46 | * @param bf_mutator mutation value for @a bf |
@@ -50,11 +51,15 @@ | |||
50 | * @return characterization of result | 51 | * @return characterization of result |
51 | */ | 52 | */ |
52 | static enum GNUNET_BLOCK_EvaluationResult | 53 | static enum GNUNET_BLOCK_EvaluationResult |
53 | block_plugin_dht_evaluate (void *cls, enum GNUNET_BLOCK_Type type, | 54 | block_plugin_dht_evaluate (void *cls, |
54 | const struct GNUNET_HashCode * query, | 55 | enum GNUNET_BLOCK_Type type, |
56 | enum GNUNET_BLOCK_EvaluationOptions eo, | ||
57 | const struct GNUNET_HashCode *query, | ||
55 | struct GNUNET_CONTAINER_BloomFilter **bf, | 58 | struct GNUNET_CONTAINER_BloomFilter **bf, |
56 | int32_t bf_mutator, const void *xquery, | 59 | int32_t bf_mutator, |
57 | size_t xquery_size, const void *reply_block, | 60 | const void *xquery, |
61 | size_t xquery_size, | ||
62 | const void *reply_block, | ||
58 | size_t reply_block_size) | 63 | size_t reply_block_size) |
59 | { | 64 | { |
60 | struct GNUNET_HashCode mhash; | 65 | struct GNUNET_HashCode mhash; |
@@ -100,9 +105,8 @@ block_plugin_dht_evaluate (void *cls, enum GNUNET_BLOCK_Type type, | |||
100 | } | 105 | } |
101 | else | 106 | else |
102 | { | 107 | { |
103 | *bf = | 108 | *bf = GNUNET_CONTAINER_bloomfilter_init (NULL, 8, |
104 | GNUNET_CONTAINER_bloomfilter_init (NULL, 8, | 109 | GNUNET_CONSTANTS_BLOOMFILTER_K); |
105 | GNUNET_CONSTANTS_BLOOMFILTER_K); | ||
106 | } | 110 | } |
107 | GNUNET_CONTAINER_bloomfilter_add (*bf, &mhash); | 111 | GNUNET_CONTAINER_bloomfilter_add (*bf, &mhash); |
108 | } | 112 | } |