summaryrefslogtreecommitdiff
path: root/src/or/policies.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-07-15 12:58:13 -0400
committerNick Mathewson <nickm@torproject.org>2011-07-15 13:04:12 -0400
commit6aef89bda4800384eddf79e42d965c2b011acdb4 (patch)
tree59bdfe03904c596f884bede76cdddecaa84c9641 /src/or/policies.h
parentf40df02f3e26df792b7e364d1b6ea5dab167405c (diff)
downloadtor-6aef89bda4800384eddf79e42d965c2b011acdb4.tar.gz
tor-6aef89bda4800384eddf79e42d965c2b011acdb4.zip
Remove compare_addr_to_node_policy
Instead, use compare_tor_addr_to_node_policy everywhere. One advantage of this is that compare_tor_addr_to_node_policy can better distinguish 0.0.0.0 from "unknown", which caused a nasty bug with microdesc users.
Diffstat (limited to 'src/or/policies.h')
-rw-r--r--src/or/policies.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/or/policies.h b/src/or/policies.h
index 9859b008cf..51716ab0a7 100644
--- a/src/or/policies.h
+++ b/src/or/policies.h
@@ -38,8 +38,6 @@ int cmp_addr_policies(smartlist_t *a, smartlist_t *b);
addr_policy_result_t compare_tor_addr_to_addr_policy(const tor_addr_t *addr,
uint16_t port, const smartlist_t *policy);
-addr_policy_result_t compare_addr_to_node_policy(uint32_t addr,
- uint16_t port, const node_t *node);
addr_policy_result_t compare_tor_addr_to_node_policy(const tor_addr_t *addr,
uint16_t port, const node_t *node);