From 397b5c300a1c0ea3521191c69a325f6d9166ebb0 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Wed, 18 Dec 2013 16:31:43 +0000 Subject: idea: try to prefer 'newer' addresses to improve mobility issues adding time of add and time of last activity information, to allow to choose 'newer' address --- src/ats/gnunet-service-ats_addresses.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/ats/gnunet-service-ats_addresses.h') diff --git a/src/ats/gnunet-service-ats_addresses.h b/src/ats/gnunet-service-ats_addresses.h index 887eeee81..8b7a58d52 100644 --- a/src/ats/gnunet-service-ats_addresses.h +++ b/src/ats/gnunet-service-ats_addresses.h @@ -362,6 +362,16 @@ struct ATS_Address */ struct GNUNET_TIME_Absolute blocked_until; + /** + * Time when address had last activity (update, in uses) + */ + struct GNUNET_TIME_Absolute t_last_activity; + + /** + * Time when address was added + */ + struct GNUNET_TIME_Absolute t_added; + /** * Is this the active address for this peer? */ -- cgit v1.2.3