summaryrefslogtreecommitdiff
path: root/src/or/policies.h
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-11-16 23:02:49 +1100
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-11-20 10:39:37 +1100
commit6913bdfcc568e880873e92331a3182536c3e653e (patch)
tree03008791d84c0e79bd309fbed221884dcd285918 /src/or/policies.h
parent10dd592d74b638f4643522dfe6e81f03e4acb06e (diff)
downloadtor-6913bdfcc568e880873e92331a3182536c3e653e.tar.gz
tor-6913bdfcc568e880873e92331a3182536c3e653e.zip
Refactor router_dump_exit_policy_to_string
Split out policy_dump_to_string to use it in getinfo_helper_policies.
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 26f92ad077..d7cc5a30ba 100644
--- a/src/or/policies.h
+++ b/src/or/policies.h
@@ -76,6 +76,9 @@ void addr_policy_append_reject_addr_list(smartlist_t **dest,
void policies_set_node_exitpolicy_to_reject_all(node_t *exitrouter);
int exit_policy_is_general_exit(smartlist_t *policy);
int policy_is_reject_star(const smartlist_t *policy, sa_family_t family);
+char * policy_dump_to_string(const smartlist_t *policy_list,
+ int include_ipv4,
+ int include_ipv6);
int getinfo_helper_policies(control_connection_t *conn,
const char *question, char **answer,
const char **errmsg);