diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-16 22:37:08 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-16 22:37:08 +0000 |
commit | a1bf39f698cf2a27a7e73d05f37cba3a76d6e03d (patch) | |
tree | e9af35595fd8a534e929d46dda54be35efbb5af3 /src/or/or.h | |
parent | 6d873e57431bf3566bb698ec966bcb5630cadf81 (diff) | |
download | tor-a1bf39f698cf2a27a7e73d05f37cba3a76d6e03d.tar.gz tor-a1bf39f698cf2a27a7e73d05f37cba3a76d6e03d.zip |
Code to parse (but not yet actually use) RedirectExit lines
svn:r2546
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index da321a44c0..2193a853ca 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -818,6 +818,16 @@ typedef struct circuit_t circuit_t; #define ALLOW_UNVERIFIED_RENDEZVOUS 8 #define ALLOW_UNVERIFIED_INTRODUCTION 16 +typedef struct exit_redirect_t { + uint32_t addr; + uint32_t mask; + uint16_t port_min; + uint16_t port_max; + + uint32_t addr_dest; + uint32_t port_dest; +} exit_redirect_t; + /** Configuration options for a Tor process */ typedef struct { struct config_line_t *LogOptions; /**< List of configuration lines @@ -905,6 +915,9 @@ typedef struct { char *MyFamily; /**< Declared family for this OR. */ struct config_line_t *NodeFamilies; /**< List of config lines for * node families */ + struct config_line_t *RedirectExit; /**< List of config lines for simple + * addr/port redirection */ + smartlist_t *RedirectExitList; /** List of exit_redirect_t */ } or_options_t; /* XXX are these good enough defaults? */ |