aboutsummaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats_addresses.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-06-24 10:35:55 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-06-24 10:35:55 +0000
commit5752e1aa99cae87bda55a05e098e8f8113142f36 (patch)
treec637459e70cd9c0fd503a3c7a51c741d550b1978 /src/ats/gnunet-service-ats_addresses.h
parentd42e0431346cfa1da13c9ac3156dcf1c96a97393 (diff)
downloadgnunet-5752e1aa99cae87bda55a05e098e8f8113142f36.tar.gz
gnunet-5752e1aa99cae87bda55a05e098e8f8113142f36.zip
- fixed info message in test
- added data structure for property normalization - added property averaging
Diffstat (limited to 'src/ats/gnunet-service-ats_addresses.h')
-rw-r--r--src/ats/gnunet-service-ats_addresses.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.h b/src/ats/gnunet-service-ats_addresses.h
index 0da559d20..cfc54b2ea 100644
--- a/src/ats/gnunet-service-ats_addresses.h
+++ b/src/ats/gnunet-service-ats_addresses.h
@@ -29,6 +29,7 @@
29 29
30#include "gnunet_util_lib.h" 30#include "gnunet_util_lib.h"
31#include "gnunet_ats_service.h" 31#include "gnunet_ats_service.h"
32#include "gnunet-service-ats.h"
32#include "gnunet_statistics_service.h" 33#include "gnunet_statistics_service.h"
33#include "ats.h" 34#include "ats.h"
34 35
@@ -232,6 +233,13 @@
232 233
233struct GAS_Addresses_Handle; 234struct GAS_Addresses_Handle;
234 235
236
237struct GAS_NormalizationInfo
238{
239 unsigned int index;
240 uint32_t atsi_abs[GAS_normalization_queue_length];
241};
242
235/** 243/**
236 * Address with additional information 244 * Address with additional information
237 */ 245 */
@@ -342,6 +350,12 @@ struct ATS_Address
342 * Is this the address for this peer in use? 350 * Is this the address for this peer in use?
343 */ 351 */
344 int used; 352 int used;
353
354 /**
355 * Normalized ATS performance information for this address
356 * Each entry can be accessed using the GNUNET_ATS_QualityProperties index
357 */
358 struct GAS_NormalizationInfo atsin[GNUNET_ATS_QualityPropertiesCount];
345}; 359};
346 360
347 361