diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-12-18 16:31:43 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-12-18 16:31:43 +0000 |
commit | 397b5c300a1c0ea3521191c69a325f6d9166ebb0 (patch) | |
tree | 4fbe80dde2cb52d4c96a423ff14228dcb4458418 /src/ats/gnunet-service-ats_addresses.h | |
parent | a4ae4a97527fc6532aa9b7a0f20d1a2f5d7b73ba (diff) | |
download | gnunet-397b5c300a1c0ea3521191c69a325f6d9166ebb0.tar.gz gnunet-397b5c300a1c0ea3521191c69a325f6d9166ebb0.zip |
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
Diffstat (limited to 'src/ats/gnunet-service-ats_addresses.h')
-rw-r--r-- | src/ats/gnunet-service-ats_addresses.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 | |||
@@ -363,6 +363,16 @@ struct ATS_Address | |||
363 | struct GNUNET_TIME_Absolute blocked_until; | 363 | struct GNUNET_TIME_Absolute blocked_until; |
364 | 364 | ||
365 | /** | 365 | /** |
366 | * Time when address had last activity (update, in uses) | ||
367 | */ | ||
368 | struct GNUNET_TIME_Absolute t_last_activity; | ||
369 | |||
370 | /** | ||
371 | * Time when address was added | ||
372 | */ | ||
373 | struct GNUNET_TIME_Absolute t_added; | ||
374 | |||
375 | /** | ||
366 | * Is this the active address for this peer? | 376 | * Is this the active address for this peer? |
367 | */ | 377 | */ |
368 | int active; | 378 | int active; |