diff options
author | Roger Dingledine <arma@torproject.org> | 2009-10-14 17:07:32 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2009-10-14 17:07:32 -0400 |
commit | 23943364263b8cb38e81a63715f872691269d5ed (patch) | |
tree | 263f2411ed01a8f25307a33b00197141657f0f3e /src/or/or.h | |
parent | 83c3f118db0ae3911ea72403856df9fb08b2d0e5 (diff) | |
download | tor-23943364263b8cb38e81a63715f872691269d5ed.tar.gz tor-23943364263b8cb38e81a63715f872691269d5ed.zip |
read the "circwindow" parameter from the consensus
backport of c43859c5c12361fad505
backport of 0d13e0ed145f4c1b5bd1
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h index 0c0d8e869e..ae65127e36 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1853,9 +1853,9 @@ typedef struct crypt_path_t { struct crypt_path_t *prev; /**< Link to previous crypt_path_t in the * circuit. */ - int package_window; /**< How many bytes are we allowed to originate ending + int package_window; /**< How many cells are we allowed to originate ending * at this step? */ - int deliver_window; /**< How many bytes are we willing to deliver originating + int deliver_window; /**< How many cells are we willing to deliver originating * at this step? */ } crypt_path_t; @@ -2789,6 +2789,7 @@ void circuit_set_n_circid_orconn(circuit_t *circ, circid_t id, or_connection_t *conn); void circuit_set_state(circuit_t *circ, uint8_t state); void circuit_close_all_marked(void); +int32_t circuit_initial_package_window(void); origin_circuit_t *origin_circuit_new(void); or_circuit_t *or_circuit_new(circid_t p_circ_id, or_connection_t *p_conn); circuit_t *circuit_get_by_circid_orconn(circid_t circ_id, |