From: colm Date: Mon, 12 Dec 2016 17:04:12 +0000 (-0500) Subject: FS-9775: Define for max nodes in a find_closestnodes query X-Git-Tag: v1.8.0~893^2~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fa53dae50c1635f2f98ed94939e028dab351021;p=thirdparty%2Ffreeswitch.git FS-9775: Define for max nodes in a find_closestnodes query --- 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 {