aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-01-10 23:40:38 +0000
committerRoger Dingledine <arma@torproject.org>2004-01-10 23:40:38 +0000
commit50863008150caa3a71fd2d8f5f9c18292ed13c24 (patch)
tree0d2306675a83318d1514286f07fcd742e783d621 /src/or/or.h
parentdb0c27b36204330a985c6a86be4604856d6d4ca2 (diff)
downloadtor-50863008150caa3a71fd2d8f5f9c18292ed13c24.tar
tor-50863008150caa3a71fd2d8f5f9c18292ed13c24.tar.gz
split the token bucket into 'rate' and 'burst' params
we're not entirely migrated to burst yet, for backward compatibility note some win32 probable-bugs clean up routerlist.c svn:r982
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/or.h b/src/or/or.h
index b7e323b3d..fff833bcd 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -389,7 +389,8 @@ typedef struct {
int is_running;
/* link info */
- uint32_t bandwidth;
+ uint32_t bandwidthrate;
+ uint32_t bandwidthburst;
struct exit_policy_t *exit_policy;
} routerinfo_t;
@@ -505,7 +506,8 @@ typedef struct {
int KeepalivePeriod;
int MaxOnionsPending;
int NewCircuitPeriod;
- int TotalBandwidth;
+ int BandwidthRate;
+ int BandwidthBurst;
int NumCpus;
int loglevel;
} or_options_t;
@@ -800,8 +802,6 @@ int router_get_router_hash(const char *s, char *digest);
int router_set_routerlist_from_directory(const char *s, crypto_pk_env_t *pkey);
routerinfo_t *router_get_entry_from_string(const char **s);
int router_add_exit_policy_from_string(routerinfo_t *router, const char *s);
-int router_supports_exit_address(uint32_t addr, uint16_t port,
- routerinfo_t *router);
int router_compare_addr_to_exit_policy(uint32_t addr, uint16_t port,
struct exit_policy_t *policy);
int router_exit_policy_all_routers_reject(uint32_t addr, uint16_t port);