circpathbias.h 1.1 KB

12345678910111213141516171819202122232425262728
  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-2018, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. /**
  7. * \file circuitbuild.h
  8. * \brief Header file for circuitbuild.c.
  9. **/
  10. #ifndef TOR_CIRCPATHBIAS_H
  11. #define TOR_CIRCPATHBIAS_H
  12. double pathbias_get_extreme_rate(const or_options_t *options);
  13. double pathbias_get_extreme_use_rate(const or_options_t *options);
  14. int pathbias_get_dropguards(const or_options_t *options);
  15. void pathbias_count_timeout(origin_circuit_t *circ);
  16. void pathbias_count_build_success(origin_circuit_t *circ);
  17. int pathbias_count_build_attempt(origin_circuit_t *circ);
  18. int pathbias_check_close(origin_circuit_t *circ, int reason);
  19. int pathbias_check_probe_response(circuit_t *circ, const cell_t *cell);
  20. void pathbias_count_use_attempt(origin_circuit_t *circ);
  21. void pathbias_mark_use_success(origin_circuit_t *circ);
  22. void pathbias_mark_use_rollback(origin_circuit_t *circ);
  23. const char *pathbias_state_to_string(enum path_state_t state);
  24. #endif /* !defined(TOR_CIRCPATHBIAS_H) */