diff options
author | Roger Dingledine <arma@torproject.org> | 2004-08-15 08:15:12 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-08-15 08:15:12 +0000 |
commit | cd3da3fc12602eb4b4c60ce18f88b1dbb3586d14 (patch) | |
tree | 32a4a65dd7942aa71d995901af92faf39024dece /src/or/test.c | |
parent | 10c73764f8c5099e2d85c544a356824d1084b424 (diff) | |
download | tor-cd3da3fc12602eb4b4c60ce18f88b1dbb3586d14.tar.gz tor-cd3da3fc12602eb4b4c60ce18f88b1dbb3586d14.zip |
o clients choose nodes proportional to advertised bandwidth
o and/or while avoiding unreliable nodes, depending on goals
o 'fascistfirewall' option to pick dirservers on port 80 and ORs on
port 443.
o if a begin failed due to exit policy, but we believe the IP should have been allowed, switch that router to exitpolicy reject *:* until we get our next directory.
svn:r2231
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/test.c b/src/or/test.c index 68d8e8dc30..fa84b7ca83 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -737,7 +737,7 @@ test_dir_format() r1.identity_pkey = pk2; r1.bandwidthrate = 1000; r1.bandwidthburst = 5000; - r1.advertisedbandwidth = 10000; + r1.bandwidthcapacity = 10000; r1.exit_policy = NULL; r1.nickname = "Magri"; r1.platform = tor_strdup(platform); @@ -762,7 +762,7 @@ test_dir_format() r2.dir_port = 0; r2.onion_pkey = pk2; r2.identity_pkey = pk1; - r2.bandwidthrate = r2.bandwidthburst = r2.advertisedbandwidth = 3000; + r2.bandwidthrate = r2.bandwidthburst = r2.bandwidthcapacity = 3000; r2.exit_policy = &ex1; r2.nickname = "Fred"; @@ -815,7 +815,7 @@ test_dir_format() test_eq(rp1->dir_port, r1.dir_port); test_eq(rp1->bandwidthrate, r1.bandwidthrate); test_eq(rp1->bandwidthburst, r1.bandwidthburst); - test_eq(rp1->advertisedbandwidth, r1.advertisedbandwidth); + test_eq(rp1->bandwidthcapacity, r1.bandwidthcapacity); test_assert(crypto_pk_cmp_keys(rp1->onion_pkey, pk1) == 0); test_assert(crypto_pk_cmp_keys(rp1->identity_pkey, pk2) == 0); test_assert(rp1->exit_policy == NULL); |