aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-10-25 06:16:26 +0000
committerRoger Dingledine <arma@torproject.org>2004-10-25 06:16:26 +0000
commit0113a643a2e32b80931400e07d3b7389875570d1 (patch)
treee60392062eb6222025ca15fc02aed0186895711b /src/or/or.h
parentf084bc07b5157fce4d4b647310f152bcaac46c69 (diff)
downloadtor-0113a643a2e32b80931400e07d3b7389875570d1.tar
tor-0113a643a2e32b80931400e07d3b7389875570d1.tar.gz
quick-and-dirty dir policy since the dirservers are getting hammered
nick, could you abstract this sometime so we don't repeat the sockspolicy code twice? svn:r2589
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 668422c8d..4db838ac9 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -860,6 +860,7 @@ typedef struct {
int _AllowUnverified; /**< Bitmask; derived from AllowUnverifiedNodes; */
struct config_line_t *ExitPolicy; /**< Lists of exit policy components. */
struct config_line_t *SocksPolicy; /**< Lists of socks policy components */
+ struct config_line_t *DirPolicy; /**< Lists of dir policy components */
/** Addresses to bind for listening for SOCKS connections. */
struct config_line_t *SocksBindAddress;
/** Addresses to bind for listening for OR connections. */
@@ -1191,6 +1192,7 @@ int assign_to_cpuworker(connection_t *cpuworker, unsigned char question_type,
/********************************* directory.c ***************************/
+int dir_policy_permits_address(uint32_t addr);
void directory_post_to_dirservers(uint8_t purpose, const char *payload,
size_t payload_len);
void directory_get_from_dirserver(uint8_t purpose, const char *payload,