summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjuga0 <juga@riseup.net>2018-06-29 20:43:51 +0000
committerjuga0 <juga@riseup.net>2018-07-16 14:43:49 +0000
commitd79c65772bd88b7b2810750237057fafbe8ea076 (patch)
treeba534abcc1421ee17075379c941199557df3e76c
parent6d8bc12583939f7f4849b4a86599f896db85e2f8 (diff)
downloadtor-d79c65772bd88b7b2810750237057fafbe8ea076.tar.gz
tor-d79c65772bd88b7b2810750237057fafbe8ea076.zip
Rename bwlist to bw_file and banwidth to
bandwidth-file
-rw-r--r--src/feature/dirauth/dirvote.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/feature/dirauth/dirvote.c b/src/feature/dirauth/dirvote.c
index a1bafb4fd4..b123f73a41 100644
--- a/src/feature/dirauth/dirvote.c
+++ b/src/feature/dirauth/dirvote.c
@@ -254,7 +254,7 @@ format_networkstatus_vote(crypto_pk_t *private_signing_key,
/* XXXX Abstraction violation: should be pulling a field out of v3_ns.*/
char *flag_thresholds = dirserv_get_flag_thresholds_line();
char *params;
- char *bwlist_headers;
+ char *bw_file_headers;
authority_cert_t *cert = v3_ns->cert;
char *methods =
make_consensus_method_list(MIN_SUPPORTED_CONSENSUS_METHOD,
@@ -269,11 +269,11 @@ format_networkstatus_vote(crypto_pk_t *private_signing_key,
else
params = tor_strdup("");
tor_assert(cert);
- if (v3_ns->bwlist_headers)
- bwlist_headers = smartlist_join_strings(v3_ns->bwlist_headers, " ", 0,
+ if (v3_ns->bw_file_headers)
+ bw_file_headers = smartlist_join_strings(v3_ns->bw_file_headers, " ", 0,
NULL);
else
- bwlist_headers = tor_strdup("");
+ bw_file_headers = tor_strdup("");
smartlist_add_asprintf(chunks,
"network-status-version 3\n"
"vote-status %s\n"
@@ -292,7 +292,7 @@ format_networkstatus_vote(crypto_pk_t *private_signing_key,
"dir-source %s %s %s %s %d %d\n"
"contact %s\n"
"%s" /* shared randomness information */
- "bandwidth-file %s\n", /* bandwidth file headers */
+ "bandwidth-file-headers %s\n", /* bandwidth file headers */
v3_ns->type == NS_TYPE_VOTE ? "vote" : "opinion",
methods,
published, va, fu, vu,
@@ -309,14 +309,14 @@ format_networkstatus_vote(crypto_pk_t *private_signing_key,
voter->contact,
shared_random_vote_str ?
shared_random_vote_str : "",
- bwlist_headers);
+ bw_file_headers);
tor_free(params);
tor_free(flags);
tor_free(flag_thresholds);
tor_free(methods);
tor_free(shared_random_vote_str);
- tor_free(bwlist_headers);
+ tor_free(bw_file_headers);
if (!tor_digest_is_zero(voter->legacy_id_digest)) {
char fpbuf[HEX_DIGEST_LEN+1];
@@ -4299,7 +4299,7 @@ dirserv_generate_networkstatus_vote_obj(crypto_pk_t *private_key,
uint32_t addr;
char *hostname = NULL, *client_versions = NULL, *server_versions = NULL;
const char *contact;
- smartlist_t *routers, *routerstatuses, *bwlist_headers;
+ smartlist_t *routers, *routerstatuses, *bw_file_headers;
char identity_digest[DIGEST_LEN];
char signing_key_digest[DIGEST_LEN];
int listbadexits = options->AuthDirListBadExits;
@@ -4383,7 +4383,7 @@ dirserv_generate_networkstatus_vote_obj(crypto_pk_t *private_key,
routerstatuses = smartlist_new();
microdescriptors = smartlist_new();
- bwlist_headers = smartlist_new();
+ bw_file_headers = smartlist_new();
SMARTLIST_FOREACH_BEGIN(routers, routerinfo_t *, ri) {
/* If it has a protover list and contains a protocol name greater than
@@ -4450,7 +4450,7 @@ dirserv_generate_networkstatus_vote_obj(crypto_pk_t *private_key,
/* This pass through applies the measured bw lines to the routerstatuses */
if (options->V3BandwidthsFile) {
dirserv_read_measured_bandwidths(options->V3BandwidthsFile,
- routerstatuses, bwlist_headers);
+ routerstatuses, bw_file_headers);
} else {
/*
* No bandwidths file; clear the measured bandwidth cache in case we had
@@ -4546,7 +4546,7 @@ dirserv_generate_networkstatus_vote_obj(crypto_pk_t *private_key,
options->ConsensusParams, NULL, 0, 0);
smartlist_sort_strings(v3_out->net_params);
}
- v3_out->bwlist_headers = bwlist_headers;
+ v3_out->bw_file_headers = bw_file_headers;
voter = tor_malloc_zero(sizeof(networkstatus_voter_info_t));
voter->nickname = tor_strdup(options->Nickname);