diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-05-27 09:10:21 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-05-27 09:10:21 +0000 |
commit | c729ba3d33c044ffac990237330c11a15ae487fd (patch) | |
tree | dbbebe3382855667d0348d1875b3b8b675986841 /src/dht/gnunet-service-dht_neighbours.h | |
parent | f73ef0a224749c6cda11a01506fcdb47531f9206 (diff) | |
download | gnunet-c729ba3d33c044ffac990237330c11a15ae487fd.tar.gz gnunet-c729ba3d33c044ffac990237330c11a15ae487fd.zip |
enable DHT monitors to distinguish routing requests from requests that terminate at the local node (for GET/PUT, not for replies)
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.h')
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.h b/src/dht/gnunet-service-dht_neighbours.h index 6eac593a0..1c0b24c1b 100644 --- a/src/dht/gnunet-service-dht_neighbours.h +++ b/src/dht/gnunet-service-dht_neighbours.h | |||
@@ -49,8 +49,9 @@ | |||
49 | * @param put_path peers this request has traversed so far (if tracked) | 49 | * @param put_path peers this request has traversed so far (if tracked) |
50 | * @param data payload to store | 50 | * @param data payload to store |
51 | * @param data_size number of bytes in data | 51 | * @param data_size number of bytes in data |
52 | * @return #GNUNET_OK if the request was forwarded, #GNUNET_NO if not | ||
52 | */ | 53 | */ |
53 | void | 54 | int |
54 | GDS_NEIGHBOURS_handle_put (enum GNUNET_BLOCK_Type type, | 55 | GDS_NEIGHBOURS_handle_put (enum GNUNET_BLOCK_Type type, |
55 | enum GNUNET_DHT_RouteOption options, | 56 | enum GNUNET_DHT_RouteOption options, |
56 | uint32_t desired_replication_level, | 57 | uint32_t desired_replication_level, |
@@ -79,8 +80,9 @@ GDS_NEIGHBOURS_handle_put (enum GNUNET_BLOCK_Type type, | |||
79 | * @param reply_bf bloomfilter to filter duplicates | 80 | * @param reply_bf bloomfilter to filter duplicates |
80 | * @param reply_bf_mutator mutator for @a reply_bf | 81 | * @param reply_bf_mutator mutator for @a reply_bf |
81 | * @param peer_bf filter for peers not to select (again, updated) | 82 | * @param peer_bf filter for peers not to select (again, updated) |
83 | * @return #GNUNET_OK if the request was forwarded, #GNUNET_NO if not | ||
82 | */ | 84 | */ |
83 | void | 85 | int |
84 | GDS_NEIGHBOURS_handle_get (enum GNUNET_BLOCK_Type type, | 86 | GDS_NEIGHBOURS_handle_get (enum GNUNET_BLOCK_Type type, |
85 | enum GNUNET_DHT_RouteOption options, | 87 | enum GNUNET_DHT_RouteOption options, |
86 | uint32_t desired_replication_level, | 88 | uint32_t desired_replication_level, |