From 3a2737d76679c68331fad0be0b89d8efdcde5079 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 28 Feb 2015 21:12:03 +0000 Subject: -extend block API to allow specifying flags, use this to allow reducing checks for replies from local DB --- src/dht/gnunet-service-dht_neighbours.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/dht/gnunet-service-dht_neighbours.c') diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index 9e23be3bc..caa226dad 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c @@ -1708,6 +1708,7 @@ handle_dht_p2p_put (void *cls, const struct GNUNET_PeerIdentity *peer, { switch (GNUNET_BLOCK_evaluate (GDS_block_context, ntohl (put->type), + GNUNET_BLOCK_EO_NONE, NULL, /* query */ NULL, 0, /* bloom filer */ NULL, 0, /* xquery */ @@ -1953,8 +1954,16 @@ handle_dht_p2p_get (void *cls, GNUNET_CONTAINER_bloomfilter_init (&xquery[xquery_size], reply_bf_size, GNUNET_CONSTANTS_BLOOMFILTER_K); eval = - GNUNET_BLOCK_evaluate (GDS_block_context, type, &get->key, &reply_bf, - get->bf_mutator, xquery, xquery_size, NULL, 0); + GNUNET_BLOCK_evaluate (GDS_block_context, + type, + GNUNET_BLOCK_EO_NONE, + &get->key, + &reply_bf, + get->bf_mutator, + xquery, + xquery_size, + NULL, + 0); if (eval != GNUNET_BLOCK_EVALUATION_REQUEST_VALID) { /* request invalid or block type not supported */ -- cgit v1.2.3