diff options
author | Roger Dingledine <arma@torproject.org> | 2009-09-15 06:33:33 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2009-09-15 06:33:33 -0400 |
commit | c43859c5c12361fad50580cd76f6484dfaa6b88d (patch) | |
tree | 51b9a69d25e6c9923452aee270518de554968098 /src/or/or.h | |
parent | 40bcab1faf26dd26de48b5ea6c1846c562a11f9d (diff) | |
download | tor-c43859c5c12361fad50580cd76f6484dfaa6b88d.tar.gz tor-c43859c5c12361fad50580cd76f6484dfaa6b88d.zip |
Read "circwindow=x" from the consensus and use it
Tor now reads the "circwindow" parameter out of the consensus,
and uses that value for its circuit package window rather than the
default of 1000 cells. Begins the implementation of proposal 168.
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 c93b8ed0fd..8587ea61fc 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1870,9 +1870,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; @@ -2864,6 +2864,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, |