aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/sendme.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-01-11 11:36:08 -0500
committerDavid Goulet <dgoulet@torproject.org>2019-04-29 12:17:57 -0400
commit8e38791baf48ca2a4c865f3b7fc264392e63f426 (patch)
tree8253f1fa78df87ac507efd2fd4c5060c86c46ff9 /src/core/or/sendme.h
parent2d3c600915c22f1e9a7e9dcbba8358556ef64505 (diff)
downloadtor-8e38791baf48ca2a4c865f3b7fc264392e63f426.tar.gz
tor-8e38791baf48ca2a4c865f3b7fc264392e63f426.zip
sendme: Add helper functions for DATA cell packaging
When we are about to send a DATA cell, we have to decrement the package window for both the circuit and stream level. This commit adds helper functions to handle the package window decrement. 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/or/sendme.h b/src/core/or/sendme.h
index 6313e91216..f50ccfbfe2 100644
--- a/src/core/or/sendme.h
+++ b/src/core/or/sendme.h
@@ -28,4 +28,8 @@ int sendme_process_stream_level(edge_connection_t *conn, circuit_t *circ,
int sendme_stream_data_received(edge_connection_t *conn);
int sendme_circuit_data_received(circuit_t *circ, crypt_path_t *layer_hint);
+/* Update package window functions. */
+int sendme_circuit_data_packaged(circuit_t *circ, crypt_path_t *layer_hint);
+int sendme_stream_data_packaged(edge_connection_t *conn);
+
#endif /* !defined(TOR_SENDME_H) */