aboutsummaryrefslogtreecommitdiff
path: root/src/app/config/config.h
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-10-29 17:54:18 +1000
committerteor <teor@torproject.org>2019-10-31 12:34:20 +1000
commitd5ca56e2543fb988de34b10d1d868c2c2e96cd51 (patch)
tree7a78bbe0aae9e3b269ddf6a3e1310157ff8ea88e /src/app/config/config.h
parent11f283f56139e823d77942276d6229d6c39abd9f (diff)
downloadtor-d5ca56e2543fb988de34b10d1d868c2c2e96cd51.tar.gz
tor-d5ca56e2543fb988de34b10d1d868c2c2e96cd51.zip
config: Move accounting/bandwidth config into the relay module
This commit: * moves accounting and bandwidth checks into relay_config, * moves testing options checks into relay_config, * moves some other minor checks into relay_config, * exposes some code from src/app/config.c (we'll refactor it later in 29211), and * adds thin wrappers to make the moved code compile. No functional changes: the moved code is still enabled, even if the relay module is disabled. (Some of the checks are re-ordered, so the order of some warnings may change.) Part of 32213.
Diffstat (limited to 'src/app/config/config.h')
-rw-r--r--src/app/config/config.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/app/config/config.h b/src/app/config/config.h
index 0ab25344a1..e49da6aa8d 100644
--- a/src/app/config/config.h
+++ b/src/app/config/config.h
@@ -189,9 +189,6 @@ int getinfo_helper_config(control_connection_t *conn,
const char *question, char **answer,
const char **errmsg);
-uint32_t get_effective_bwrate(const or_options_t *options);
-uint32_t get_effective_bwburst(const or_options_t *options);
-
int init_cookie_authentication(const char *fname, const char *header,
int cookie_len, int group_readable,
uint8_t **cookie_out, int *cookie_is_set_out);
@@ -277,6 +274,7 @@ int count_real_listeners(const smartlist_t *ports,
int parse_transport_line(const or_options_t *options,
const char *line, int validate_only,
int server);
+int ensure_bandwidth_cap(uint64_t *value, const char *desc, char **msg);
#ifdef CONFIG_PRIVATE