aboutsummaryrefslogtreecommitdiff
path: root/src/or/rephist.h
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2011-02-07 16:31:20 +0100
committerSebastian Hahn <sebastian@torproject.org>2011-02-08 00:38:48 +0100
commit9b64227ffd38e9406c5c88ace137a0eae010771d (patch)
treeb533ef2a0ef94cbc9329a0261ea516dac6f9f9d3 /src/or/rephist.h
parenta68e2043aba4d33e39a8cb47be5dc3082f27ad07 (diff)
downloadtor-9b64227ffd38e9406c5c88ace137a0eae010771d.tar
tor-9b64227ffd38e9406c5c88ace137a0eae010771d.tar.gz
Routers count as down when they change ORPort, too
rransom noticed that a change of ORPort is just as bad as a change of IP address from a client's perspective, because both mean that the relay is not available to them while the new information hasn't propagated. Change the bug1035 fix accordingly. Also make sure we don't log a bridge's IP address (which might happen when we are the bridge authority).
Diffstat (limited to 'src/or/rephist.h')
-rw-r--r--src/or/rephist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rephist.h b/src/or/rephist.h
index 1ddbac4da..610c1a070 100644
--- a/src/or/rephist.h
+++ b/src/or/rephist.h
@@ -34,7 +34,7 @@ int rep_hist_load_state(or_state_t *state, char **err);
void rep_history_clean(time_t before);
void rep_hist_note_router_reachable(const char *id, const tor_addr_t *at_addr,
- time_t when);
+ uint16_t at_port, time_t when);
void rep_hist_note_router_unreachable(const char *id, time_t when);
int rep_hist_record_mtbf_data(time_t now, int missing_means_down);
int rep_hist_load_mtbf_data(time_t now);