summaryrefslogtreecommitdiff
path: root/src/or/policies.h
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2017-02-01 13:51:31 +1100
committerNick Mathewson <nickm@torproject.org>2017-02-01 09:39:06 -0500
commit7e7b3d3df3e60c28dfa0fc29c192daf1b7e87409 (patch)
tree229da0f3abf9f73c3575b4cecd5223d82e806c0f /src/or/policies.h
parente95b8f7df9faf61dea8f523da7548a7217aa831a (diff)
downloadtor-7e7b3d3df3e60c28dfa0fc29c192daf1b7e87409.tar.gz
tor-7e7b3d3df3e60c28dfa0fc29c192daf1b7e87409.zip
Add unit tests for IPv6 address summaries and IPv4 netblock rejection
These tests currently fail due to bug 21357
Diffstat (limited to 'src/or/policies.h')
-rw-r--r--src/or/policies.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/policies.h b/src/or/policies.h
index 20f58f2beb..850fa863d6 100644
--- a/src/or/policies.h
+++ b/src/or/policies.h
@@ -22,6 +22,9 @@
#define EXIT_POLICY_REJECT_PRIVATE (1 << 1)
#define EXIT_POLICY_ADD_DEFAULT (1 << 2)
#define EXIT_POLICY_REJECT_LOCAL_INTERFACES (1 << 3)
+#define EXIT_POLICY_OPTION_MAX EXIT_POLICY_REJECT_LOCAL_INTERFACES
+/* All options set: used for unit testing */
+#define EXIT_POLICY_OPTION_ALL ((EXIT_POLICY_OPTION_MAX << 1) - 1)
typedef enum firewall_connection_t {
FIREWALL_OR_CONNECTION = 0,