diff options
author | Roger Dingledine <arma@torproject.org> | 2004-01-10 23:40:38 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-01-10 23:40:38 +0000 |
commit | 50863008150caa3a71fd2d8f5f9c18292ed13c24 (patch) | |
tree | 0d2306675a83318d1514286f07fcd742e783d621 /src/or/router.c | |
parent | db0c27b36204330a985c6a86be4604856d6d4ca2 (diff) | |
download | tor-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/router.c')
-rw-r--r-- | src/or/router.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c index af1309c9d..9297e2bb9 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -338,7 +338,8 @@ int router_rebuild_descriptor(void) { ri->onion_pkey = crypto_pk_dup_key(get_onion_key()); ri->link_pkey = crypto_pk_dup_key(get_link_key()); ri->identity_pkey = crypto_pk_dup_key(get_identity_key()); - ri->bandwidth = options.TotalBandwidth; + ri->bandwidthrate = options.BandwidthRate; + ri->bandwidthburst = options.BandwidthBurst; ri->exit_policy = NULL; /* zero it out first */ router_add_exit_policy_from_config(ri); if (desc_routerinfo) @@ -421,7 +422,8 @@ int router_dump_router_to_string(char *s, int maxlen, routerinfo_t *router, router->or_port, router->socks_port, router->dir_port, - (int) router->bandwidth, + (int) router->bandwidthrate, +/* XXXBC also write bandwidthburst */ platform, published, onion_pkey, link_pkey, identity_pkey); |