diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-22 17:53:04 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-22 17:53:04 +0000 |
commit | 1e5f4574613be3f26cd05f2873fd54ee526a63d7 (patch) | |
tree | 614832936d9b2e3592f76f400a001d933fcaf14f /src/or/policies.c | |
parent | 167d266dbf618c856a87ac482668cd848651ab62 (diff) | |
download | tor-1e5f4574613be3f26cd05f2873fd54ee526a63d7.tar.gz tor-1e5f4574613be3f26cd05f2873fd54ee526a63d7.zip |
Fix most DOCDOCs remaining and/or added by redox.
svn:r17734
Diffstat (limited to 'src/or/policies.c')
-rw-r--r-- | src/or/policies.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/or/policies.c b/src/or/policies.c index a9553774b4..ece48b16e3 100644 --- a/src/or/policies.c +++ b/src/or/policies.c @@ -235,7 +235,10 @@ addr_policy_permits_tor_addr(const tor_addr_t *addr, uint16_t port, } } -/* DOCDOC XXXX deprecate when possible. */ +/** Return true iff <b> policy</b> (possibly NULL) will allow a connection to + * <b>addr</b>:<b>port</b>. <b>addr</b> is an IPv4 address given in host + * order. */ +/* XXXX deprecate when possible. */ static int addr_policy_permits_address(uint32_t addr, uint16_t port, smartlist_t *policy) @@ -254,7 +257,8 @@ fascist_firewall_allows_address_or(const tor_addr_t *addr, uint16_t port) reachable_or_addr_policy); } -/** DOCDOC */ +/** Return true iff we think our firewall will let us make an OR connection to + * <b>ri</b>. */ int fascist_firewall_allows_or(routerinfo_t *ri) { @@ -552,7 +556,8 @@ addr_policy_get_canonical_entry(addr_policy_t *e) return found->policy; } -/** DOCDOC */ +/** As compare_to_addr_to_addr_policy, but instead of a tor_addr_t, takes + * in host order. */ addr_policy_result_t compare_addr_to_addr_policy(uint32_t addr, uint16_t port, smartlist_t *policy) { |