diff options
author | Linus Nordberg <linus@nordberg.se> | 2012-03-27 15:00:34 +0200 |
---|---|---|
committer | Linus Nordberg <linus@torproject.org> | 2012-07-19 18:21:20 +0200 |
commit | 631ec5c4fe4d5535d91e8e1e3597fbaa687b8790 (patch) | |
tree | 050aa6d4a7ab18ed66617412bfb31aeb709aaaf0 /src/or/or.h | |
parent | 24451e6f7d6813642cc3b092bf085fdbb4a9aefc (diff) | |
download | tor-631ec5c4fe4d5535d91e8e1e3597fbaa687b8790.tar.gz tor-631ec5c4fe4d5535d91e8e1e3597fbaa687b8790.zip |
Move last_reachable and testing_since from routerinfo_t to node_t.
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/or/or.h b/src/or/or.h index 3a53e5ed86..a330f770e8 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1793,15 +1793,6 @@ typedef struct { * things; see notes on ROUTER_PURPOSE_* macros above. */ uint8_t purpose; - - /* The below items are used only by authdirservers for - * reachability testing. */ - - /** When was the last time we could reach this OR? */ - time_t last_reachable; - /** When did we start testing reachability for this OR? */ - time_t testing_since; - } routerinfo_t; /** Information needed to keep and cache a signed extra-info document. */ @@ -2037,6 +2028,14 @@ typedef struct node_t { /** According to the geoip db what country is this router in? */ country_t country; + + /* The below items are used only by authdirservers for + * reachability testing. */ + + /** When was the last time we could reach this OR? */ + time_t last_reachable; /* IPv4 */ + /** When did we start testing reachability for this OR? */ + time_t testing_since; /* IPv4 */ } node_t; /** How many times will we try to download a router's descriptor before giving |