aboutsummaryrefslogtreecommitdiff
path: root/src/or/circpathbias.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-10-31 14:17:32 -0400
committerNick Mathewson <nickm@torproject.org>2013-10-31 14:17:49 -0400
commitb4ebf8421ada3edf104ae5fc96d288f11271445b (patch)
tree979d8363643e1e11bca1526b457a5222bcfd7f55 /src/or/circpathbias.h
parent96f92f2062118b61a43134170b92001d3be1c128 (diff)
downloadtor-b4ebf8421ada3edf104ae5fc96d288f11271445b.tar
tor-b4ebf8421ada3edf104ae5fc96d288f11271445b.tar.gz
Move pathbias functions into a new file.
Does not compile yet. This is the "no code changed" diff.
Diffstat (limited to 'src/or/circpathbias.h')
-rw-r--r--src/or/circpathbias.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/or/circpathbias.h b/src/or/circpathbias.h
new file mode 100644
index 000000000..bccc6f6fd
--- /dev/null
+++ b/src/or/circpathbias.h
@@ -0,0 +1,27 @@
+/* Copyright (c) 2001 Matej Pfajfar.
+ * Copyright (c) 2001-2004, Roger Dingledine.
+ * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
+ * Copyright (c) 2007-2013, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+/**
+ * \file circuitbuild.h
+ * \brief Header file for circuitbuild.c.
+ **/
+
+#ifndef TOR_CIRCPATHBIAS_H
+#define TOR_CIRCPATHBIAS_H
+
+double pathbias_get_extreme_rate(const or_options_t *options);
+double pathbias_get_extreme_use_rate(const or_options_t *options);
+int pathbias_get_dropguards(const or_options_t *options);
+void pathbias_count_timeout(origin_circuit_t *circ);
+int pathbias_check_close(origin_circuit_t *circ, int reason);
+int pathbias_check_probe_response(circuit_t *circ, const cell_t *cell);
+void pathbias_count_use_attempt(origin_circuit_t *circ);
+void pathbias_mark_use_success(origin_circuit_t *circ);
+void pathbias_mark_use_rollback(origin_circuit_t *circ);
+const char *pathbias_state_to_string(path_state_t state);
+
+#endif
+