diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-06-24 10:35:55 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-06-24 10:35:55 +0000 |
commit | 5752e1aa99cae87bda55a05e098e8f8113142f36 (patch) | |
tree | c637459e70cd9c0fd503a3c7a51c741d550b1978 /src/ats/gnunet-service-ats_addresses.h | |
parent | d42e0431346cfa1da13c9ac3156dcf1c96a97393 (diff) |
- 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.h | 14 |
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 0da559d20a..cfc54b2eaa 100644 --- a/src/ats/gnunet-service-ats_addresses.h +++ b/src/ats/gnunet-service-ats_addresses.h @@ -29,6 +29,7 @@ #include "gnunet_util_lib.h" #include "gnunet_ats_service.h" +#include "gnunet-service-ats.h" #include "gnunet_statistics_service.h" #include "ats.h" @@ -232,6 +233,13 @@ struct GAS_Addresses_Handle; + +struct GAS_NormalizationInfo +{ + unsigned int index; + uint32_t atsi_abs[GAS_normalization_queue_length]; +}; + /** * Address with additional information */ @@ -342,6 +350,12 @@ struct ATS_Address * Is this the address for this peer in use? */ int used; + + /** + * Normalized ATS performance information for this address + * Each entry can be accessed using the GNUNET_ATS_QualityProperties index + */ + struct GAS_NormalizationInfo atsin[GNUNET_ATS_QualityPropertiesCount]; }; |