Tor  0.4.6.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-2020, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * \file circuitbuild.h
9  * \brief Header file for circuitbuild.c.
10  **/
11 
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) */
pathbias_count_use_attempt
void pathbias_count_use_attempt(origin_circuit_t *circ)
Definition: circpathbias.c:604
pathbias_check_probe_response
int pathbias_check_probe_response(circuit_t *circ, const cell_t *cell)
Definition: circpathbias.c:884
cell_t
Definition: cell_st.h:17
origin_circuit_t
Definition: origin_circuit_st.h:79
path_state_t
path_state_t
Definition: origin_circuit_st.h:36
pathbias_count_timeout
void pathbias_count_timeout(origin_circuit_t *circ)
Definition: circpathbias.c:1220
pathbias_get_dropguards
int pathbias_get_dropguards(const or_options_t *options)
Definition: circpathbias.c:141
circuit_t
Definition: circuit_st.h:61
pathbias_state_to_string
const char * pathbias_state_to_string(path_state_t state)
Definition: circpathbias.c:265
pathbias_mark_use_success
void pathbias_mark_use_success(origin_circuit_t *circ)
Definition: circpathbias.c:661
pathbias_check_close
int pathbias_check_close(origin_circuit_t *ocirc, int reason)
Definition: circpathbias.c:1015
pathbias_get_extreme_use_rate
double pathbias_get_extreme_use_rate(const or_options_t *options)
Definition: circpathbias.c:232
pathbias_get_extreme_rate
double pathbias_get_extreme_rate(const or_options_t *options)
Definition: circpathbias.c:125
pathbias_count_build_attempt
int pathbias_count_build_attempt(origin_circuit_t *circ)
Definition: circpathbias.c:424
pathbias_count_valid_cells
void pathbias_count_valid_cells(circuit_t *circ, const cell_t *cell)
Definition: circpathbias.c:944
pathbias_count_build_success
void pathbias_count_build_success(origin_circuit_t *circ)
Definition: circpathbias.c:512
or_options_t
Definition: or_options_st.h:64
pathbias_mark_use_rollback
void pathbias_mark_use_rollback(origin_circuit_t *circ)
Definition: circpathbias.c:700