aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-04-07 04:38:19 +0000
committerRoger Dingledine <arma@torproject.org>2003-04-07 04:38:19 +0000
commit18bbac44ca22c2546f66097ca3458f086608c022 (patch)
treea6b187b298aae65bb8801074d6bec7c972fd93ae /src/or/or.h
parentc217b1ca711538d5c6e49a56c1047e021eb0fb3c (diff)
downloadtor-18bbac44ca22c2546f66097ca3458f086608c022.tar
tor-18bbac44ca22c2546f66097ca3458f086608c022.tar.gz
parse exit policy lines
svn:r225
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/or/or.h b/src/or/or.h
index eebac263b..0487d5b93 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -290,6 +290,18 @@ struct connection_t {
typedef struct connection_t connection_t;
+#define EXIT_POLICY_ACCEPT 1
+#define EXIT_POLICY_REJECT 2
+
+struct exit_policy_t {
+ char policy_type;
+ char *string;
+ char *address;
+ char *port;
+
+ struct exit_policy_t *next;
+};
+
/* config stuff we know about the other ORs in the network */
typedef struct {
char *address;
@@ -304,14 +316,7 @@ typedef struct {
/* link info */
uint32_t bandwidth;
-
-// struct timeval min_interval;
-
- /* time when last data was sent to that router */
-// struct timeval lastsend;
-
- /* socket */
-// int s;
+ struct exit_policy_t *exit_policy;
void *next;
} routerinfo_t;