From 18bbac44ca22c2546f66097ca3458f086608c022 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 7 Apr 2003 04:38:19 +0000 Subject: parse exit policy lines svn:r225 --- src/or/or.h | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'src/or/or.h') 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; -- cgit v1.2.3