tor  0.4.2.0-alpha-dev
circpathbias.h
1 /* Copyright (c) 2001 Matej Pfajfar.
2  * Copyright (c) 2001-2004, Roger Dingledine.
3  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4  * Copyright (c) 2007-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
12 #ifndef TOR_CIRCPATHBIAS_H
13 #define TOR_CIRCPATHBIAS_H
14 
15 double pathbias_get_extreme_rate(const or_options_t *options);
16 double pathbias_get_extreme_use_rate(const or_options_t *options);
17 int pathbias_get_dropguards(const or_options_t *options);
21 int pathbias_check_close(origin_circuit_t *circ, int reason);
22 int pathbias_check_probe_response(circuit_t *circ, const cell_t *cell);
23 void pathbias_count_valid_cells(circuit_t *circ, const cell_t *cell);
27 const char *pathbias_state_to_string(enum path_state_t state);
28 
29 #endif /* !defined(TOR_CIRCPATHBIAS_H) */
void pathbias_count_build_success(origin_circuit_t *circ)
Definition: circpathbias.c:512
void pathbias_count_timeout(origin_circuit_t *circ)
Definition: cell_st.h:12
int pathbias_get_dropguards(const or_options_t *options)
Definition: circpathbias.c:141
double pathbias_get_extreme_use_rate(const or_options_t *options)
Definition: circpathbias.c:232
void pathbias_mark_use_rollback(origin_circuit_t *circ)
Definition: circpathbias.c:700
int pathbias_check_probe_response(circuit_t *circ, const cell_t *cell)
Definition: circpathbias.c:879
double pathbias_get_extreme_rate(const or_options_t *options)
Definition: circpathbias.c:125
int pathbias_check_close(origin_circuit_t *ocirc, int reason)
const char * pathbias_state_to_string(path_state_t state)
Definition: circpathbias.c:265
void pathbias_count_use_attempt(origin_circuit_t *circ)
Definition: circpathbias.c:604
int pathbias_count_build_attempt(origin_circuit_t *circ)
Definition: circpathbias.c:424
void pathbias_count_valid_cells(circuit_t *circ, const cell_t *cell)
Definition: circpathbias.c:939
void pathbias_mark_use_success(origin_circuit_t *circ)
Definition: circpathbias.c:661