From baf92f5983fcc0515a4c477ceabe0ed593b18d66 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 27 Sep 2011 12:50:55 +0000 Subject: [PATCH] update --- src/dht/dht_api_new.c | 2 +- src/dht/gnunet-service-dht_neighbours.c | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/dht/dht_api_new.c b/src/dht/dht_api_new.c index 3fdd79a85..9f7097d34 100644 --- a/src/dht/dht_api_new.c +++ b/src/dht/dht_api_new.c @@ -137,7 +137,7 @@ struct GNUNET_DHT_RouteHandle GNUNET_HashCode key; /** - * Unique identifier for this request (for key collisions). FIXME: redundant!? + * Unique identifier for this request (for key collisions). */ uint64_t uid; diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index 705168b17..cebf0e91f 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c @@ -1763,6 +1763,8 @@ handle_dht_p2p_result (void *cls, const struct GNUNET_PeerIdentity *peer, data = (const void*) &get_path[get_path_length]; data_size = msize - (sizeof (struct PeerResultMessage) + (get_path_length + put_path_length) * sizeof (struct GNUNET_PeerIdentity)); + + /* if we got a HELLO, consider it for our own routing table */ if (type == GNUNET_BLOCK_TYPE_DHT_HELLO) { const struct GNUNET_MessageHeader *h; @@ -1850,7 +1852,11 @@ process_hello (void *cls, const struct GNUNET_HELLO_Message * hello, const char *err_msg) { - // FIXME: track HELLOs, possibly ask core to establish connections + // FIXME: consider moving HELLO processing to another file! + // FIXME: first, filter HELLOs without addresses (!) + // FIXME: track HELLOs (for responding to FIND PEER requests) + // FIXME: add code to possibly ask core to establish connections + // (using our own peerinfo is better than using FIND PEER!) } -- 2.25.1