struct GNUNET_DHT_RouteHandle *rh = value;
const struct GNUNET_MessageHeader *enc_msg;
size_t enc_size;
- uint64_t uid;
const struct GNUNET_PeerIdentity **outgoing_path;
const struct GNUNET_PeerIdentity *pos;
uint32_t outgoing_path_length;
unsigned int i;
char *path_offset;
+#if HAVE_UID_FOR_TESTING
+ uint64_t uid;
uid = GNUNET_ntohll (dht_msg->unique_id);
-#if HAVE_UID_FOR_TESTING
if (uid != rh->uid)
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
int bucket_num;
int count;
struct PeerInfo *pos;
- unsigned int my_distance;
if (0 == memcmp (&my_identity.hashPubKey, key, sizeof (GNUNET_HashCode)))
return GNUNET_YES;
bucket_num = find_bucket (key);
bits = GNUNET_CRYPTO_hash_matching_bits (&my_identity.hashPubKey, key);
- my_distance = get_distance (&my_identity.hashPubKey, key);
pos = k_buckets[bucket_num].head;
count = 0;
while ((pos != NULL) && (count < bucket_size))