Tor 0.4.9.8
Loading...
Searching...
No Matches
relay_config.h File Reference

Header for feature/relay/relay_config.c. More...

Go to the source code of this file.

Macros

#define relay_get_dirportfrontpage()
 
#define relay_config_free_all()
 
#define relay_get_effective_bwrate(options)
 
#define relay_get_effective_bwburst(options)
 
#define port_warn_nonlocal_ext_orports(ports, portname)
 
#define port_update_port_set_relay(options, ports)
 
#define options_validate_relay_os(old_options, options, msg)
 
#define options_validate_relay_info(old_options, options, msg)
 
#define options_validate_publish_server(old_options, options, msg)
 
#define options_validate_relay_padding(old_options, options, msg)
 
#define options_validate_relay_bandwidth(old_options, options, msg)
 
#define options_validate_relay_accounting(old_options, options, msg)
 
#define options_validate_relay_testing(old_options, options, msg)
 
#define options_act_relay(old_options)
 
#define options_act_relay_accounting(old_options)
 
#define options_act_relay_bandwidth(old_options)
 
#define options_act_bridge_stats(old_options)
 
#define options_act_relay_stats(old_options, print_notice_out)
 
#define options_act_relay_stats_msg()
 
#define options_act_relay_desc(old_options)
 
#define options_act_relay_dos(old_options)
 
#define options_act_relay_dir(old_options)
 

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)
 

Detailed Description

Header for feature/relay/relay_config.c.

Definition in file relay_config.h.

Macro Definition Documentation

◆ options_act_bridge_stats

#define options_act_bridge_stats ( old_options)
Value:
(((void)(old_options)),0)

Definition at line 186 of file relay_config.h.

◆ options_act_relay

#define options_act_relay ( old_options)
Value:
(((void)(old_options)),0)

Definition at line 180 of file relay_config.h.

◆ options_act_relay_accounting

#define options_act_relay_accounting ( old_options)
Value:
(((void)(old_options)),0)

Definition at line 182 of file relay_config.h.

◆ options_act_relay_bandwidth

#define options_act_relay_bandwidth ( old_options)
Value:
(((void)(old_options)),0)

Definition at line 184 of file relay_config.h.

◆ options_act_relay_desc

#define options_act_relay_desc ( old_options)
Value:
(((void)(old_options)),0)

Definition at line 194 of file relay_config.h.

◆ options_act_relay_dir

#define options_act_relay_dir ( old_options)
Value:
(((void)(old_options)),0)

Definition at line 198 of file relay_config.h.

◆ options_act_relay_dos

#define options_act_relay_dos ( old_options)
Value:
(((void)(old_options)),0)

Definition at line 196 of file relay_config.h.

◆ options_act_relay_stats

#define options_act_relay_stats ( old_options,
print_notice_out )
Value:
(((void)(old_options)),((void)(print_notice_out)),0)

Definition at line 189 of file relay_config.h.

◆ options_act_relay_stats_msg

#define options_act_relay_stats_msg ( void)
Value:
STMT_BEGIN STMT_END

Definition at line 191 of file relay_config.h.

◆ options_validate_publish_server

#define options_validate_publish_server ( old_options,
options,
msg )
Value:
(((void)(old_options)),((void)(options)),((void)(msg)),0)

Definition at line 169 of file relay_config.h.

◆ options_validate_relay_accounting

#define options_validate_relay_accounting ( old_options,
options,
msg )
Value:
(((void)(old_options)),((void)(options)),((void)(msg)),0)

Definition at line 175 of file relay_config.h.

◆ options_validate_relay_bandwidth

#define options_validate_relay_bandwidth ( old_options,
options,
msg )
Value:
(((void)(old_options)),((void)(options)),((void)(msg)),0)

Definition at line 173 of file relay_config.h.

◆ options_validate_relay_info

#define options_validate_relay_info ( old_options,
options,
msg )
Value:
(((void)(old_options)),((void)(options)),((void)(msg)),0)

Definition at line 167 of file relay_config.h.

◆ options_validate_relay_os

#define options_validate_relay_os ( old_options,
options,
msg )
Value:
(((void)(old_options)),((void)(options)),((void)(msg)),0)

Definition at line 165 of file relay_config.h.

◆ options_validate_relay_padding

#define options_validate_relay_padding ( old_options,
options,
msg )
Value:
(((void)(old_options)),((void)(options)),((void)(msg)),0)

Definition at line 171 of file relay_config.h.

◆ options_validate_relay_testing

#define options_validate_relay_testing ( old_options,
options,
msg )
Value:
(((void)(old_options)),((void)(options)),((void)(msg)),0)

Definition at line 177 of file relay_config.h.

◆ port_update_port_set_relay

#define port_update_port_set_relay ( options,
ports )
Value:
(((void)(options)),((void)(ports)))

Definition at line 162 of file relay_config.h.

◆ port_warn_nonlocal_ext_orports

#define port_warn_nonlocal_ext_orports ( ports,
portname )
Value:
(((void)(ports)),((void)(portname)))

Definition at line 159 of file relay_config.h.

◆ relay_config_free_all

#define relay_config_free_all ( void)
Value:
STMT_BEGIN STMT_END

Definition at line 151 of file relay_config.h.

◆ relay_get_dirportfrontpage

#define relay_get_dirportfrontpage ( void)
Value:
(NULL)

Definition at line 149 of file relay_config.h.

◆ relay_get_effective_bwburst

#define relay_get_effective_bwburst ( options)
Value:
(((void)(options)),0)

Definition at line 156 of file relay_config.h.

◆ relay_get_effective_bwrate

#define relay_get_effective_bwrate ( options)
Value:
(((void)(options)),0)

Definition at line 154 of file relay_config.h.

Function Documentation

◆ options_validate_relay_mode()

static int options_validate_relay_mode ( const struct or_options_t * old_options,
struct or_options_t * options,
char ** msg )
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.

◆ port_parse_ports_relay()

static int port_parse_ports_relay ( or_options_t * options,
char ** msg,
smartlist_t * ports_out,
int * have_low_ports_out )
inlinestatic

Definition at line 136 of file relay_config.h.