Tor 0.4.9.2-alpha-dev
|
Header for feature/relay/relay_config.c. More...
#include "lib/cc/compat_compiler.h"
Go to the source code of this file.
Macros | |
#define | relay_get_dirportfrontpage() (NULL) |
#define | relay_config_free_all() STMT_BEGIN STMT_END |
#define | relay_get_effective_bwrate(options) (((void)(options)),0) |
#define | relay_get_effective_bwburst(options) (((void)(options)),0) |
#define | port_warn_nonlocal_ext_orports(ports, portname) (((void)(ports)),((void)(portname))) |
#define | port_update_port_set_relay(options, ports) (((void)(options)),((void)(ports))) |
#define | options_validate_relay_os(old_options, options, msg) (((void)(old_options)),((void)(options)),((void)(msg)),0) |
#define | options_validate_relay_info(old_options, options, msg) (((void)(old_options)),((void)(options)),((void)(msg)),0) |
#define | options_validate_publish_server(old_options, options, msg) (((void)(old_options)),((void)(options)),((void)(msg)),0) |
#define | options_validate_relay_padding(old_options, options, msg) (((void)(old_options)),((void)(options)),((void)(msg)),0) |
#define | options_validate_relay_bandwidth(old_options, options, msg) (((void)(old_options)),((void)(options)),((void)(msg)),0) |
#define | options_validate_relay_accounting(old_options, options, msg) (((void)(old_options)),((void)(options)),((void)(msg)),0) |
#define | options_validate_relay_testing(old_options, options, msg) (((void)(old_options)),((void)(options)),((void)(msg)),0) |
#define | options_act_relay(old_options) (((void)(old_options)),0) |
#define | options_act_relay_accounting(old_options) (((void)(old_options)),0) |
#define | options_act_relay_bandwidth(old_options) (((void)(old_options)),0) |
#define | options_act_bridge_stats(old_options) (((void)(old_options)),0) |
#define | options_act_relay_stats(old_options, print_notice_out) (((void)(old_options)),((void)(print_notice_out)),0) |
#define | options_act_relay_stats_msg() STMT_BEGIN STMT_END |
#define | options_act_relay_desc(old_options) (((void)(old_options)),0) |
#define | options_act_relay_dos(old_options) (((void)(old_options)),0) |
#define | options_act_relay_dir(old_options) (((void)(old_options)),0) |
Functions | |
static int | options_validate_relay_mode (const struct or_options_t *old_options, struct or_options_t *options, char **msg) |
static int | port_parse_ports_relay (or_options_t *options, char **msg, smartlist_t *ports_out, int *have_low_ports_out) |
Header for feature/relay/relay_config.c.
Definition in file relay_config.h.
#define options_act_bridge_stats | ( | old_options | ) | (((void)(old_options)),0) |
Definition at line 186 of file relay_config.h.
#define options_act_relay | ( | old_options | ) | (((void)(old_options)),0) |
Definition at line 180 of file relay_config.h.
#define options_act_relay_accounting | ( | old_options | ) | (((void)(old_options)),0) |
Definition at line 182 of file relay_config.h.
#define options_act_relay_bandwidth | ( | old_options | ) | (((void)(old_options)),0) |
Definition at line 184 of file relay_config.h.
#define options_act_relay_desc | ( | old_options | ) | (((void)(old_options)),0) |
Definition at line 194 of file relay_config.h.
#define options_act_relay_dir | ( | old_options | ) | (((void)(old_options)),0) |
Definition at line 198 of file relay_config.h.
#define options_act_relay_dos | ( | old_options | ) | (((void)(old_options)),0) |
Definition at line 196 of file relay_config.h.
#define options_act_relay_stats | ( | old_options, | |
print_notice_out | |||
) | (((void)(old_options)),((void)(print_notice_out)),0) |
Definition at line 189 of file relay_config.h.
#define options_act_relay_stats_msg | ( | void | ) | STMT_BEGIN STMT_END |
Definition at line 191 of file relay_config.h.
#define options_validate_publish_server | ( | old_options, | |
options, | |||
msg | |||
) | (((void)(old_options)),((void)(options)),((void)(msg)),0) |
Definition at line 169 of file relay_config.h.
#define options_validate_relay_accounting | ( | old_options, | |
options, | |||
msg | |||
) | (((void)(old_options)),((void)(options)),((void)(msg)),0) |
Definition at line 175 of file relay_config.h.
#define options_validate_relay_bandwidth | ( | old_options, | |
options, | |||
msg | |||
) | (((void)(old_options)),((void)(options)),((void)(msg)),0) |
Definition at line 173 of file relay_config.h.
#define options_validate_relay_info | ( | old_options, | |
options, | |||
msg | |||
) | (((void)(old_options)),((void)(options)),((void)(msg)),0) |
Definition at line 167 of file relay_config.h.
#define options_validate_relay_os | ( | old_options, | |
options, | |||
msg | |||
) | (((void)(old_options)),((void)(options)),((void)(msg)),0) |
Definition at line 165 of file relay_config.h.
#define options_validate_relay_padding | ( | old_options, | |
options, | |||
msg | |||
) | (((void)(old_options)),((void)(options)),((void)(msg)),0) |
Definition at line 171 of file relay_config.h.
#define options_validate_relay_testing | ( | old_options, | |
options, | |||
msg | |||
) | (((void)(old_options)),((void)(options)),((void)(msg)),0) |
Definition at line 177 of file relay_config.h.
#define port_update_port_set_relay | ( | options, | |
ports | |||
) | (((void)(options)),((void)(ports))) |
Definition at line 162 of file relay_config.h.
#define port_warn_nonlocal_ext_orports | ( | ports, | |
portname | |||
) | (((void)(ports)),((void)(portname))) |
Definition at line 159 of file relay_config.h.
#define relay_config_free_all | ( | void | ) | STMT_BEGIN STMT_END |
Definition at line 151 of file relay_config.h.
#define relay_get_dirportfrontpage | ( | void | ) | (NULL) |
Definition at line 149 of file relay_config.h.
#define relay_get_effective_bwburst | ( | options | ) | (((void)(options)),0) |
Definition at line 156 of file relay_config.h.
#define relay_get_effective_bwrate | ( | options | ) | (((void)(options)),0) |
Definition at line 154 of file relay_config.h.
|
inlinestatic |
When tor is compiled with the relay module disabled, it can't be configured as a relay or bridge.
Always sets ClientOnly to 1.
Returns -1 and sets msg to a newly allocated string, if ORPort, DirPort, DirCache, or BridgeRelay are set in options. Otherwise returns 0.
Definition at line 112 of file relay_config.h.
|
inlinestatic |
Definition at line 136 of file relay_config.h.