aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-09-27 12:50:55 +0000
committerChristian Grothoff <christian@grothoff.org>2011-09-27 12:50:55 +0000
commitbaf92f5983fcc0515a4c477ceabe0ed593b18d66 (patch)
tree2c3f613bf5ee0356f09b49e11bee7af166b464ca
parent1f3e06a9d063aefd82ff5081f340a3ce5783ca9b (diff)
downloadgnunet-baf92f5983fcc0515a4c477ceabe0ed593b18d66.tar.gz
gnunet-baf92f5983fcc0515a4c477ceabe0ed593b18d66.zip
update
-rw-r--r--src/dht/dht_api_new.c2
-rw-r--r--src/dht/gnunet-service-dht_neighbours.c8
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
137 GNUNET_HashCode key; 137 GNUNET_HashCode key;
138 138
139 /** 139 /**
140 * Unique identifier for this request (for key collisions). FIXME: redundant!? 140 * Unique identifier for this request (for key collisions).
141 */ 141 */
142 uint64_t uid; 142 uint64_t uid;
143 143
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,
1763 data = (const void*) &get_path[get_path_length]; 1763 data = (const void*) &get_path[get_path_length];
1764 data_size = msize - (sizeof (struct PeerResultMessage) + 1764 data_size = msize - (sizeof (struct PeerResultMessage) +
1765 (get_path_length + put_path_length) * sizeof (struct GNUNET_PeerIdentity)); 1765 (get_path_length + put_path_length) * sizeof (struct GNUNET_PeerIdentity));
1766
1767 /* if we got a HELLO, consider it for our own routing table */
1766 if (type == GNUNET_BLOCK_TYPE_DHT_HELLO) 1768 if (type == GNUNET_BLOCK_TYPE_DHT_HELLO)
1767 { 1769 {
1768 const struct GNUNET_MessageHeader *h; 1770 const struct GNUNET_MessageHeader *h;
@@ -1850,7 +1852,11 @@ process_hello (void *cls,
1850 const struct GNUNET_HELLO_Message * 1852 const struct GNUNET_HELLO_Message *
1851 hello, const char *err_msg) 1853 hello, const char *err_msg)
1852{ 1854{
1853 // FIXME: track HELLOs, possibly ask core to establish connections 1855 // FIXME: consider moving HELLO processing to another file!
1856 // FIXME: first, filter HELLOs without addresses (!)
1857 // FIXME: track HELLOs (for responding to FIND PEER requests)
1858 // FIXME: add code to possibly ask core to establish connections
1859 // (using our own peerinfo is better than using FIND PEER!)
1854} 1860}
1855 1861
1856 1862