aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht_neighbours.c
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-12-24 18:38:14 +0100
committerChristian Grothoff <grothoff@gnunet.org>2022-12-24 18:38:14 +0100
commita448889bdabd46de4e0308ae791c343639da8dff (patch)
treee2d2dcf9e00a27174fe0efd62d7805230be0a3a2 /src/dht/gnunet-service-dht_neighbours.c
parent1557a73295e29a74d4b2bb66775a4b367184a69b (diff)
downloadgnunet-a448889bdabd46de4e0308ae791c343639da8dff.tar.gz
gnunet-a448889bdabd46de4e0308ae791c343639da8dff.zip
-rename to deconfuse Martin about which block type is actually used these days, hopefully
Diffstat (limited to 'src/dht/gnunet-service-dht_neighbours.c')
-rw-r--r--src/dht/gnunet-service-dht_neighbours.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c
index 25d69ac65..b55a28929 100644
--- a/src/dht/gnunet-service-dht_neighbours.c
+++ b/src/dht/gnunet-service-dht_neighbours.c
@@ -662,7 +662,7 @@ send_find_peer_message (void *cls)
662 struct GNUNET_CONTAINER_BloomFilter *peer_bf; 662 struct GNUNET_CONTAINER_BloomFilter *peer_bf;
663 663
664 bg = GNUNET_BLOCK_group_create (GDS_block_context, 664 bg = GNUNET_BLOCK_group_create (GDS_block_context,
665 GNUNET_BLOCK_TYPE_DHT_URL_HELLO, 665 GNUNET_BLOCK_TYPE_DHT_HELLO,
666 NULL, 666 NULL,
667 0, 667 0,
668 "filter-size", 668 "filter-size",
@@ -676,7 +676,7 @@ send_find_peer_message (void *cls)
676 DHT_BLOOM_SIZE, 676 DHT_BLOOM_SIZE,
677 GNUNET_CONSTANTS_BLOOMFILTER_K); 677 GNUNET_CONSTANTS_BLOOMFILTER_K);
678 if (GNUNET_OK != 678 if (GNUNET_OK !=
679 GDS_NEIGHBOURS_handle_get (GNUNET_BLOCK_TYPE_DHT_URL_HELLO, 679 GDS_NEIGHBOURS_handle_get (GNUNET_BLOCK_TYPE_DHT_HELLO,
680 GNUNET_DHT_RO_FIND_APPROXIMATE 680 GNUNET_DHT_RO_FIND_APPROXIMATE
681 | GNUNET_DHT_RO_RECORD_ROUTE, 681 | GNUNET_DHT_RO_RECORD_ROUTE,
682 FIND_PEER_REPLICATION_LEVEL, 682 FIND_PEER_REPLICATION_LEVEL,
@@ -1303,7 +1303,7 @@ hello_check (const struct GNUNET_DATACACHE_Block *bd)
1303 struct GNUNET_PeerIdentity pid; 1303 struct GNUNET_PeerIdentity pid;
1304 struct GNUNET_HELLO_Builder *b; 1304 struct GNUNET_HELLO_Builder *b;
1305 1305
1306 if (GNUNET_BLOCK_TYPE_DHT_URL_HELLO != bd->type) 1306 if (GNUNET_BLOCK_TYPE_DHT_HELLO != bd->type)
1307 return; 1307 return;
1308 1308
1309 b = GNUNET_HELLO_builder_from_block (bd->data, 1309 b = GNUNET_HELLO_builder_from_block (bd->data,
@@ -2168,7 +2168,7 @@ handle_find_my_hello (struct PeerInfo *pi,
2168 } 2168 }
2169 else if (GNUNET_BLOCK_REPLY_OK_MORE == 2169 else if (GNUNET_BLOCK_REPLY_OK_MORE ==
2170 GNUNET_BLOCK_check_reply (GDS_block_context, 2170 GNUNET_BLOCK_check_reply (GDS_block_context,
2171 GNUNET_BLOCK_TYPE_DHT_URL_HELLO, 2171 GNUNET_BLOCK_TYPE_DHT_HELLO,
2172 bg, 2172 bg,
2173 &GDS_my_identity_hash, 2173 &GDS_my_identity_hash,
2174 NULL, 0, 2174 NULL, 0,
@@ -2176,7 +2176,7 @@ handle_find_my_hello (struct PeerInfo *pi,
2176 block_size)) 2176 block_size))
2177 { 2177 {
2178 struct GNUNET_DATACACHE_Block bd = { 2178 struct GNUNET_DATACACHE_Block bd = {
2179 .type = GNUNET_BLOCK_TYPE_DHT_URL_HELLO, 2179 .type = GNUNET_BLOCK_TYPE_DHT_HELLO,
2180 .expiration_time 2180 .expiration_time
2181 = GNUNET_TIME_relative_to_absolute ( 2181 = GNUNET_TIME_relative_to_absolute (
2182 GNUNET_HELLO_ADDRESS_EXPIRATION), 2182 GNUNET_HELLO_ADDRESS_EXPIRATION),
@@ -2225,7 +2225,7 @@ handle_find_local_hello (struct PeerInfo *pi,
2225 (GNUNET_BLOCK_REPLY_OK_MORE == 2225 (GNUNET_BLOCK_REPLY_OK_MORE ==
2226 GNUNET_BLOCK_check_reply ( 2226 GNUNET_BLOCK_check_reply (
2227 GDS_block_context, 2227 GDS_block_context,
2228 GNUNET_BLOCK_TYPE_DHT_URL_HELLO, 2228 GNUNET_BLOCK_TYPE_DHT_HELLO,
2229 bg, 2229 bg,
2230 &peer->phash, 2230 &peer->phash,
2231 NULL, 0, /* xquery */ 2231 NULL, 0, /* xquery */
@@ -2233,7 +2233,7 @@ handle_find_local_hello (struct PeerInfo *pi,
2233 peer->hello_size)) ) 2233 peer->hello_size)) )
2234 { 2234 {
2235 struct GNUNET_DATACACHE_Block bd = { 2235 struct GNUNET_DATACACHE_Block bd = {
2236 .type = GNUNET_BLOCK_TYPE_DHT_URL_HELLO, 2236 .type = GNUNET_BLOCK_TYPE_DHT_HELLO,
2237 .expiration_time = peer->hello_expiration, 2237 .expiration_time = peer->hello_expiration,
2238 .key = peer->phash, 2238 .key = peer->phash,
2239 .data = peer->hello, 2239 .data = peer->hello,
@@ -2362,7 +2362,7 @@ handle_dht_p2p_get (void *cls,
2362 (GDS_am_closest_peer (&get->key, 2362 (GDS_am_closest_peer (&get->key,
2363 peer_bf)) ) 2363 peer_bf)) )
2364 { 2364 {
2365 if ( (GNUNET_BLOCK_TYPE_DHT_URL_HELLO == type) || 2365 if ( (GNUNET_BLOCK_TYPE_DHT_HELLO == type) ||
2366 (GNUNET_BLOCK_TYPE_ANY == type) ) 2366 (GNUNET_BLOCK_TYPE_ANY == type) )
2367 { 2367 {
2368 GNUNET_STATISTICS_update (GDS_stats, 2368 GNUNET_STATISTICS_update (GDS_stats,
@@ -2377,7 +2377,7 @@ handle_dht_p2p_get (void *cls,
2377 &get->key, 2377 &get->key,
2378 bg); 2378 bg);
2379 } 2379 }
2380 if (GNUNET_BLOCK_TYPE_DHT_URL_HELLO != type) 2380 if (GNUNET_BLOCK_TYPE_DHT_HELLO != type)
2381 { 2381 {
2382 if (0 != (options & GNUNET_DHT_RO_FIND_APPROXIMATE)) 2382 if (0 != (options & GNUNET_DHT_RO_FIND_APPROXIMATE))
2383 eval = GDS_DATACACHE_get_closest (&get->key, 2383 eval = GDS_DATACACHE_get_closest (&get->key,