aboutsummaryrefslogtreecommitdiff
path: root/src/dns
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-28 21:12:03 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-28 21:12:03 +0000
commit3a2737d76679c68331fad0be0b89d8efdcde5079 (patch)
tree5bd4ef163438954cdcb75558e6368a297629b56d /src/dns
parent9c46ed792caae948fd99cca44deaf5a265af7614 (diff)
downloadgnunet-3a2737d76679c68331fad0be0b89d8efdcde5079.tar.gz
gnunet-3a2737d76679c68331fad0be0b89d8efdcde5079.zip
-extend block API to allow specifying flags, use this to allow reducing checks for replies from local DB
Diffstat (limited to 'src/dns')
-rw-r--r--src/dns/plugin_block_dns.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/dns/plugin_block_dns.c b/src/dns/plugin_block_dns.c
index a5ed8fea2..f24bfda80 100644
--- a/src/dns/plugin_block_dns.c
+++ b/src/dns/plugin_block_dns.c
@@ -39,6 +39,7 @@
39 * 39 *
40 * @param cls closure 40 * @param cls closure
41 * @param type block type 41 * @param type block type
42 * @param eo control flags
42 * @param query original query (hash) 43 * @param query original query (hash)
43 * @param bf pointer to bloom filter associated with query; possibly updated (!) 44 * @param bf pointer to bloom filter associated with query; possibly updated (!)
44 * @param bf_mutator mutation value for bf 45 * @param bf_mutator mutation value for bf
@@ -49,11 +50,15 @@
49 * @return characterization of result 50 * @return characterization of result
50 */ 51 */
51static enum GNUNET_BLOCK_EvaluationResult 52static enum GNUNET_BLOCK_EvaluationResult
52block_plugin_dns_evaluate (void *cls, enum GNUNET_BLOCK_Type type, 53block_plugin_dns_evaluate (void *cls,
54 enum GNUNET_BLOCK_Type type,
55 enum GNUNET_BLOCK_EvaluationOptions eo,
53 const struct GNUNET_HashCode * query, 56 const struct GNUNET_HashCode * query,
54 struct GNUNET_CONTAINER_BloomFilter **bf, 57 struct GNUNET_CONTAINER_BloomFilter **bf,
55 int32_t bf_mutator, const void *xquery, 58 int32_t bf_mutator,
56 size_t xquery_size, const void *reply_block, 59 const void *xquery,
60 size_t xquery_size,
61 const void *reply_block,
57 size_t reply_block_size) 62 size_t reply_block_size)
58{ 63{
59 const struct GNUNET_DNS_Advertisement *ad; 64 const struct GNUNET_DNS_Advertisement *ad;