diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-05-23 09:29:24 -0400 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2019-05-27 14:20:36 +0300 |
commit | fcd51fd49f8c30ab8d5d1d099d43e510187150c6 (patch) | |
tree | 32f4acb7bd15ef2e56caec65717203141c5c9442 /src/core | |
parent | 0bc1241494a118d5319207a9f4683b993d389e77 (diff) | |
download | tor-fcd51fd49f8c30ab8d5d1d099d43e510187150c6.tar.gz tor-fcd51fd49f8c30ab8d5d1d099d43e510187150c6.zip |
Tests for deciding how full our relay cells should be
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/or/relay.c | 2 | ||||
-rw-r--r-- | src/core/or/relay.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/core/or/relay.c b/src/core/or/relay.c index c48147dff8..9f90a09699 100644 --- a/src/core/or/relay.c +++ b/src/core/or/relay.c @@ -2055,7 +2055,7 @@ circuit_reset_sendme_randomness(circuit_t *circ) * Helper. Return the number of bytes that should be put into a cell from a * given edge connection on which <b>n_available</b> bytes are available. */ -static size_t +STATIC size_t connection_edge_get_inbuf_bytes_to_package(size_t n_available, int package_partial, circuit_t *on_circuit) diff --git a/src/core/or/relay.h b/src/core/or/relay.h index 0fc308f7df..79036f97bd 100644 --- a/src/core/or/relay.h +++ b/src/core/or/relay.h @@ -123,6 +123,9 @@ STATIC int connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ, edge_connection_t *conn, crypt_path_t *layer_hint); STATIC size_t get_pad_cell_offset(size_t payload_len); +STATIC size_t connection_edge_get_inbuf_bytes_to_package(size_t n_available, + int package_partial, + circuit_t *on_circuit); #endif /* defined(RELAY_PRIVATE) */ |