From 0113a643a2e32b80931400e07d3b7389875570d1 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 25 Oct 2004 06:16:26 +0000 Subject: 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 --- src/or/or.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/or/or.h') 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, -- cgit v1.2.3