Tor  0.4.5.0-alpha-dev
Macros | Functions
relay_config.h File Reference

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)
 

Detailed Description

Header for feature/relay/relay_config.c.

Definition in 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 106 of file relay_config.h.