diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-01-13 15:25:28 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-02-12 12:50:16 -0500 |
commit | c8d41da52d6ae1edd1c4999e328b1e7eadc0ab5b (patch) | |
tree | 93d4f95c839c0cd6442e8f991039ba8d1450382f /src/or/circuitlist.h | |
parent | 48877e24a880be41e4dad50f5ebb6e0671e9f92f (diff) | |
download | tor-c8d41da52d6ae1edd1c4999e328b1e7eadc0ab5b.tar.gz tor-c8d41da52d6ae1edd1c4999e328b1e7eadc0ab5b.zip |
More unit tests for OOM handling.
This gets us up to no interesting untested new or changed lines for
the 10169 code.
Diffstat (limited to 'src/or/circuitlist.h')
-rw-r--r-- | src/or/circuitlist.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/circuitlist.h b/src/or/circuitlist.h index a6340c1f7a..a29c29a49a 100644 --- a/src/or/circuitlist.h +++ b/src/or/circuitlist.h @@ -76,6 +76,9 @@ void channel_note_destroy_not_pending(channel_t *chan, circid_t id); #ifdef CIRCUITLIST_PRIVATE STATIC void circuit_free(circuit_t *circ); STATIC size_t n_cells_in_circ_queues(const circuit_t *c); +STATIC uint32_t circuit_max_queued_data_age(const circuit_t *c, uint32_t now); +STATIC uint32_t circuit_max_queued_cell_age(const circuit_t *c, uint32_t now); +STATIC uint32_t circuit_max_queued_item_age(const circuit_t *c, uint32_t now); #endif #endif |