summaryrefslogtreecommitdiff
path: root/src/or/channeltls.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-03-10 10:07:41 -0400
committerNick Mathewson <nickm@torproject.org>2015-03-10 10:07:41 -0400
commitd29a8ad564757866dee8d2cbd940c5028a03f2e3 (patch)
tree23ed85f8b159baee2037d43f0e2571da70f66fd2 /src/or/channeltls.c
parent99b59dee7046b04854ac263a1cf810dceb80df12 (diff)
downloadtor-d29a8ad564757866dee8d2cbd940c5028a03f2e3.tar.gz
tor-d29a8ad564757866dee8d2cbd940c5028a03f2e3.zip
Add link protocol version counts to the heartbeat message
Closes ticket 15212
Diffstat (limited to 'src/or/channeltls.c')
-rw-r--r--src/or/channeltls.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/channeltls.c b/src/or/channeltls.c
index e194c1c4df..1cf697ccc5 100644
--- a/src/or/channeltls.c
+++ b/src/or/channeltls.c
@@ -23,6 +23,7 @@
#include "connection_or.h"
#include "control.h"
#include "relay.h"
+#include "rephist.h"
#include "router.h"
#include "routerlist.h"
#include "scheduler.h"
@@ -1463,6 +1464,8 @@ channel_tls_process_versions_cell(var_cell_t *cell, channel_tls_t *chan)
return;
}
+ rep_hist_note_negotiated_link_proto(highest_supported_version, started_here);
+
chan->conn->link_proto = highest_supported_version;
chan->conn->handshake_state->received_versions = 1;