summaryrefslogtreecommitdiff
path: root/src/or/channeltls.h
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@torproject.org>2018-09-14 18:50:40 +0000
committerMike Perry <mikeperry-git@torproject.org>2018-09-17 22:19:42 +0000
commitbbaa398d268cda00e1b52fc2ebbe28f038b7db8f (patch)
tree29a56c8471e9e28395355e128526a5281dbfbd13 /src/or/channeltls.h
parent7dc435e6bc4361ab52eac834eac5d30351f4f7b7 (diff)
downloadtor-bbaa398d268cda00e1b52fc2ebbe28f038b7db8f.tar.gz
tor-bbaa398d268cda00e1b52fc2ebbe28f038b7db8f.zip
Bug 23512: Report queued cells on or circs as written.
This avoids asymmetry in our public relay stats, which can be exploited for guard discovery and other attacks.
Diffstat (limited to 'src/or/channeltls.h')
-rw-r--r--src/or/channeltls.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/channeltls.h b/src/or/channeltls.h
index 8b5863a461..463f7d928c 100644
--- a/src/or/channeltls.h
+++ b/src/or/channeltls.h
@@ -12,6 +12,8 @@
#include "or.h"
#include "channel.h"
+#define TLS_PER_CELL_OVERHEAD 29
+
#define BASE_CHAN_TO_TLS(c) (channel_tls_from_base((c)))
#define TLS_CHAN_TO_BASE(c) (channel_tls_to_base((c)))