aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-10-23 03:48:52 +0000
committerNick Mathewson <nickm@torproject.org>2006-10-23 03:48:52 +0000
commited69c10b3f20dc727f9281d22a4b9a9a35ba8482 (patch)
tree5388b0ba3a5ba293502cc6eb0338ae36129dd3b6 /src/or
parent42bab1c6d32dc023482bfe9adef365652dd65497 (diff)
downloadtor-ed69c10b3f20dc727f9281d22a4b9a9a35ba8482.tar
tor-ed69c10b3f20dc727f9281d22a4b9a9a35ba8482.tar.gz
r9319@Kushana: nickm | 2006-10-22 15:25:18 -0400
oops; include or.h changes for last patch. svn:r8795
Diffstat (limited to 'src/or')
-rw-r--r--src/or/or.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 0550be302..5cf1fe1e4 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1572,10 +1572,14 @@ typedef struct {
config_line_t *RedirectExit; /**< List of config lines for simple
* addr/port redirection */
smartlist_t *RedirectExitList; /**< List of exit_redirect_t */
+ config_line_t *AuthDirBadExit; /**< Address policy for descriptors to
+ * mark as bad exits. */
config_line_t *AuthDirReject; /**< Address policy for descriptors to
* reject. */
config_line_t *AuthDirInvalid; /**< Address policy for descriptors to
* never mark as valid. */
+ int AuthDirListBadExits; /**< True iff we should list bad exits,
+ * and vote for all other exits as good. */
int AuthDirRejectUnlisted; /**< Boolean: do we reject all routers that
* aren't named in our fingerprint file? */
char *AccountingStart; /**< How long is the accounting interval, and when
@@ -2321,6 +2325,7 @@ int dir_policy_permits_address(uint32_t addr);
int socks_policy_permits_address(uint32_t addr);
int authdir_policy_permits_address(uint32_t addr, uint16_t port);
int authdir_policy_valid_address(uint32_t addr, uint16_t port);
+int authdir_policy_badexit_address(uint32_t addr, uint16_t port);
int validate_addr_policies(or_options_t *options, char **msg);
void policies_parse_from_options(or_options_t *options);
@@ -2349,8 +2354,8 @@ int circuit_receive_relay_cell(cell_t *cell, circuit_t *circ,
void relay_header_pack(char *dest, const relay_header_t *src);
void relay_header_unpack(relay_header_t *dest, const char *src);
int relay_send_command_from_edge(uint16_t stream_id, circuit_t *circ,
- int relay_command, const char *payload,
- size_t payload_len, crypt_path_t *cpath_layer);
+ int relay_command, const char *payload,
+ size_t payload_len, crypt_path_t *cpath_layer);
int connection_edge_send_command(edge_connection_t *fromconn, circuit_t *circ,
int relay_command, const char *payload,
size_t payload_len,