From 5fa53dae50c1635f2f98ed94939e028dab351021 Mon Sep 17 00:00:00 2001 From: colm Date: Mon, 12 Dec 2016 12:04:12 -0500 Subject: [PATCH] FS-9775: Define for max nodes in a find_closestnodes query --- libs/libks/src/dht/ks_dht.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/libks/src/dht/ks_dht.h b/libs/libks/src/dht/ks_dht.h index 508a75277c..f151938237 100644 --- a/libs/libks/src/dht/ks_dht.h +++ b/libs/libks/src/dht/ks_dht.h @@ -29,6 +29,8 @@ KS_BEGIN_EXTERN_C #define KS_DHT_TOKEN_SIZE SHA_DIGEST_LENGTH #define KS_DHT_TOKENSECRET_EXPIRATION 300 +#define KS_DHTRT_MAXQUERYSIZE 20 + typedef struct ks_dht_s ks_dht_t; typedef struct ks_dht_nodeid_s ks_dht_nodeid_t; typedef struct ks_dht_token_s ks_dht_token_t; @@ -77,7 +79,7 @@ struct ks_dhtrt_querynodes_s { enum ks_dht_nodetype_t type; /* remote, local, or both */ uint8_t max; /* in: maximum to return */ uint8_t count; /* out: number returned */ - ks_dht_node_t* nodes[ KS_DHT_MESSAGE_QUERY_MAX_SIZE]; /* out: array of peers (ks_dht_node_t* nodes[incount]) */ + ks_dht_node_t* nodes[ KS_DHTRT_MAXQUERYSIZE ]; /* out: array of peers (ks_dht_node_t* nodes[incount]) */ }; struct ks_dht_token_s {