aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/sendme.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-04-24 10:25:29 -0400
committerDavid Goulet <dgoulet@torproject.org>2019-04-29 12:17:57 -0400
commit7c8e519b3452ce3eb3d3c854d80be5b7e49164b4 (patch)
tree646b171eaebe4e7f29f35515d68df624115ec7bd /src/core/or/sendme.h
parentaef7095c3e52e2f98850e72c68b00f54a39608a6 (diff)
downloadtor-7c8e519b3452ce3eb3d3c854d80be5b7e49164b4.tar.gz
tor-7c8e519b3452ce3eb3d3c854d80be5b7e49164b4.zip
sendme: Helper to know if next cell is a SENDME
We'll use it this in order to know when to hash the cell for the SENDME instead of doing it at every cell. Part of #26288 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core/or/sendme.h')
-rw-r--r--src/core/or/sendme.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/or/sendme.h b/src/core/or/sendme.h
index 71df9b6f07..0965b5b22a 100644
--- a/src/core/or/sendme.h
+++ b/src/core/or/sendme.h
@@ -37,6 +37,9 @@ int sendme_note_stream_data_packaged(edge_connection_t *conn);
/* Track cell digest. */
void sendme_note_cell_digest(circuit_t *circ);
+/* Circuit level information. */
+bool sendme_circuit_is_next_cell(int window);
+
/* Private section starts. */
#ifdef SENDME_PRIVATE