aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-02-17 07:56:33 +0000
committerNick Mathewson <nickm@torproject.org>2004-02-17 07:56:33 +0000
commit61756b58935fe4fc52472b3247920fe1f935da76 (patch)
tree9d860d556af61b707cc13189b3293a661fe9afaa /src/or/or.h
parentd508a194f7e06e6ae323306fd5d0a54f9d54ec9e (diff)
downloadtor-61756b58935fe4fc52472b3247920fe1f935da76.tar
tor-61756b58935fe4fc52472b3247920fe1f935da76.tar.gz
Fix router_compare_addr_to_exit_policy, and name its return codes. The bug was: "maybe reject,accept" should be "maybe", not "accept".
svn:r1093
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 1e127d517..1ec9ba6f6 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -817,6 +817,9 @@ routerinfo_t *router_get_entry_from_string(const char **s);
int router_add_exit_policy_from_string(routerinfo_t *router, const char *s);
int router_compare_addr_to_exit_policy(uint32_t addr, uint16_t port,
struct exit_policy_t *policy);
+#define ADDR_POLICY_ACCEPTED 0
+#define ADDR_POLICY_REJECTED -1
+#define ADDR_POLICY_UNKNOWN 1
int router_exit_policy_all_routers_reject(uint32_t addr, uint16_t port);
int router_exit_policy_rejects_all(routerinfo_t *router);