summaryrefslogtreecommitdiff
path: root/src/or/policies.h
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-02-20 20:09:07 +1100
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-02-20 23:30:17 +1100
commita4853f1bc1815a185702ef197c002e89d82dbee0 (patch)
tree13eedf3f49822da05831b0a7d0f6f4747a1301ea /src/or/policies.h
parenta4eddfff666226014545efd6f5bf390173c0fdfa (diff)
downloadtor-a4853f1bc1815a185702ef197c002e89d82dbee0.tar.gz
tor-a4853f1bc1815a185702ef197c002e89d82dbee0.zip
Make some fascist_firewall_choose_address* functions static
Diffstat (limited to 'src/or/policies.h')
-rw-r--r--src/or/policies.h24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/or/policies.h b/src/or/policies.h
index 65f10e2ed7..8b330eb807 100644
--- a/src/or/policies.h
+++ b/src/or/policies.h
@@ -35,16 +35,11 @@ int fascist_firewall_use_ipv6(const or_options_t *options);
int fascist_firewall_prefer_ipv6_orport(const or_options_t *options);
int fascist_firewall_prefer_ipv6_dirport(const or_options_t *options);
-int fascist_firewall_allows_address_addr(const tor_addr_t *addr, uint16_t port,
+int fascist_firewall_allows_address_addr(const tor_addr_t *addr,
+ uint16_t port,
firewall_connection_t fw_connection,
int pref_only);
-int fascist_firewall_allows_address_ap(const tor_addr_port_t *ap,
- firewall_connection_t fw_connection,
- int pref_only);
-int fascist_firewall_allows_address_ipv4h(uint32_t ipv4h_or_addr,
- uint16_t ipv4_or_port,
- firewall_connection_t fw_connection,
- int pref_only);
+
int fascist_firewall_allows_rs(const routerstatus_t *rs,
firewall_connection_t fw_connection,
int pref_only);
@@ -55,12 +50,6 @@ int fascist_firewall_allows_dir_server(const dir_server_t *ds,
firewall_connection_t fw_connection,
int pref_only);
-const tor_addr_port_t * fascist_firewall_choose_address(
- const tor_addr_port_t *a,
- const tor_addr_port_t *b,
- int want_a,
- firewall_connection_t fw_connection,
- int pref_only);
int fascist_firewall_choose_address_rs(const routerstatus_t *rs,
firewall_connection_t fw_connection,
int pref_only, tor_addr_port_t* ap);
@@ -140,6 +129,13 @@ STATIC int fascist_firewall_allows_address(const tor_addr_t *addr,
uint16_t port,
smartlist_t *firewall_policy,
int pref_only, int pref_ipv6);
+STATIC const tor_addr_port_t * fascist_firewall_choose_address(
+ const tor_addr_port_t *a,
+ const tor_addr_port_t *b,
+ int want_a,
+ firewall_connection_t fw_connection,
+ int pref_only);
+
#endif
#endif