From cd3da3fc12602eb4b4c60ce18f88b1dbb3586d14 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sun, 15 Aug 2004 08:15:12 +0000 Subject: 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 --- src/or/test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/or/test.c') 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); -- cgit v1.2.3-54-g00ecf