summaryrefslogtreecommitdiff
path: root/toxcore/DHT.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/DHT.c')
-rw-r--r--toxcore/DHT.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c
index 15f554e2..75a485b7 100644
--- a/toxcore/DHT.c
+++ b/toxcore/DHT.c
@@ -1294,7 +1294,7 @@ static void returnedip_ports(DHT *dht, IP_Port ip_port, const uint8_t *public_ke
1294} 1294}
1295 1295
1296/* Send a getnodes request. 1296/* Send a getnodes request.
1297 sendback_node is the node that it will send back the response to (set to NULL to disable this) */ 1297 * sendback_node is the node that it will send back the response to (set to NULL to disable this) */
1298static int getnodes(DHT *dht, IP_Port ip_port, const uint8_t *public_key, const uint8_t *client_id, 1298static int getnodes(DHT *dht, IP_Port ip_port, const uint8_t *public_key, const uint8_t *client_id,
1299 const Node_format *sendback_node) 1299 const Node_format *sendback_node)
1300{ 1300{
@@ -1427,7 +1427,7 @@ static int handle_getnodes(void *object, IP_Port source, const uint8_t *packet,
1427} 1427}
1428 1428
1429/* return false if no 1429/* return false if no
1430 return true if yes */ 1430 * return true if yes */
1431static bool sent_getnode_to_node(DHT *dht, const uint8_t *public_key, IP_Port node_ip_port, uint64_t ping_id, 1431static bool sent_getnode_to_node(DHT *dht, const uint8_t *public_key, IP_Port node_ip_port, uint64_t ping_id,
1432 Node_format *sendback_node) 1432 Node_format *sendback_node)
1433{ 1433{
@@ -2447,7 +2447,7 @@ static int handle_hardening(void *object, IP_Port source, const uint8_t *source_
2447 length_nodes, 0); 2447 length_nodes, 0);
2448 2448
2449 /* TODO(irungentoo): MAX_SENT_NODES nodes should be returned at all times 2449 /* TODO(irungentoo): MAX_SENT_NODES nodes should be returned at all times
2450 (right now we have a small network size so it could cause problems for testing and etc..) */ 2450 * (right now we have a small network size so it could cause problems for testing and etc..) */
2451 if (num_nodes <= 0) { 2451 if (num_nodes <= 0) {
2452 return 1; 2452 return 1;
2453 } 2453 }