diff options
author | Bart Polot <bart@net.in.tum.de> | 2012-11-14 10:50:52 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2012-11-14 10:50:52 +0000 |
commit | 6884e874ab4d23f8a0d9b2cc1f3a1794e606cdeb (patch) | |
tree | f97f541046d5aca3008e52600c2cf9d0b72745c4 /src/dht | |
parent | cb515930b242a7e33b012a22b227102325a33e0c (diff) | |
download | gnunet-6884e874ab4d23f8a0d9b2cc1f3a1794e606cdeb.tar.gz gnunet-6884e874ab4d23f8a0d9b2cc1f3a1794e606cdeb.zip |
Added GNUNET_BLOCK_EVALUATION_RESULT_IRRELEVANT
Diffstat (limited to 'src/dht')
-rw-r--r-- | src/dht/gnunet-service-dht_clients.c | 2 | ||||
-rw-r--r-- | src/dht/gnunet-service-dht_datacache.c | 6 | ||||
-rw-r--r-- | src/dht/gnunet-service-dht_routing.c | 6 |
3 files changed, 14 insertions, 0 deletions
diff --git a/src/dht/gnunet-service-dht_clients.c b/src/dht/gnunet-service-dht_clients.c index 593674569..f3539dab9 100644 --- a/src/dht/gnunet-service-dht_clients.c +++ b/src/dht/gnunet-service-dht_clients.c | |||
@@ -1058,6 +1058,8 @@ forward_reply (void *cls, const struct GNUNET_HashCode * key, void *value) | |||
1058 | case GNUNET_BLOCK_EVALUATION_REQUEST_INVALID: | 1058 | case GNUNET_BLOCK_EVALUATION_REQUEST_INVALID: |
1059 | GNUNET_break (0); | 1059 | GNUNET_break (0); |
1060 | return GNUNET_NO; | 1060 | return GNUNET_NO; |
1061 | case GNUNET_BLOCK_EVALUATION_RESULT_IRRELEVANT: | ||
1062 | return GNUNET_YES; | ||
1061 | case GNUNET_BLOCK_EVALUATION_TYPE_NOT_SUPPORTED: | 1063 | case GNUNET_BLOCK_EVALUATION_TYPE_NOT_SUPPORTED: |
1062 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 1064 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
1063 | _("Unsupported block type (%u) in request!\n"), record->type); | 1065 | _("Unsupported block type (%u) in request!\n"), record->type); |
diff --git a/src/dht/gnunet-service-dht_datacache.c b/src/dht/gnunet-service-dht_datacache.c index 4768c14fd..87c93f559 100644 --- a/src/dht/gnunet-service-dht_datacache.c +++ b/src/dht/gnunet-service-dht_datacache.c | |||
@@ -176,6 +176,12 @@ datacache_get_iterator (void *cls, | |||
176 | ("# Invalid RESULTS found in datacache"), 1, | 176 | ("# Invalid RESULTS found in datacache"), 1, |
177 | GNUNET_NO); | 177 | GNUNET_NO); |
178 | break; | 178 | break; |
179 | case GNUNET_BLOCK_EVALUATION_RESULT_IRRELEVANT: | ||
180 | GNUNET_STATISTICS_update (GDS_stats, | ||
181 | gettext_noop | ||
182 | ("# Irrelevant RESULTS found in datacache"), 1, | ||
183 | GNUNET_NO); | ||
184 | break; | ||
179 | case GNUNET_BLOCK_EVALUATION_REQUEST_VALID: | 185 | case GNUNET_BLOCK_EVALUATION_REQUEST_VALID: |
180 | GNUNET_break (0); | 186 | GNUNET_break (0); |
181 | break; | 187 | break; |
diff --git a/src/dht/gnunet-service-dht_routing.c b/src/dht/gnunet-service-dht_routing.c index 4c2e69b36..1f2b2a516 100644 --- a/src/dht/gnunet-service-dht_routing.c +++ b/src/dht/gnunet-service-dht_routing.c | |||
@@ -226,6 +226,12 @@ process (void *cls, const struct GNUNET_HashCode * key, void *value) | |||
226 | ("# Invalid REPLIES matched against routing table"), | 226 | ("# Invalid REPLIES matched against routing table"), |
227 | 1, GNUNET_NO); | 227 | 1, GNUNET_NO); |
228 | return GNUNET_SYSERR; | 228 | return GNUNET_SYSERR; |
229 | case GNUNET_BLOCK_EVALUATION_RESULT_IRRELEVANT: | ||
230 | GNUNET_STATISTICS_update (GDS_stats, | ||
231 | gettext_noop | ||
232 | ("# Irrelevant REPLIES matched against routing table"), | ||
233 | 1, GNUNET_NO); | ||
234 | return GNUNET_OK; | ||
229 | case GNUNET_BLOCK_EVALUATION_REQUEST_VALID: | 235 | case GNUNET_BLOCK_EVALUATION_REQUEST_VALID: |
230 | GNUNET_break (0); | 236 | GNUNET_break (0); |
231 | return GNUNET_OK; | 237 | return GNUNET_OK; |