Tor  0.4.6.0-alpha-dev
Data Structures | Macros | Enumerations
or_options_st.h File Reference

The or_options_t structure, which represents Tor's configuration. More...

#include "core/or/or.h"
#include "lib/cc/torint.h"
#include "lib/net/address.h"
#include "app/config/tor_cmdline_mode.h"

Go to the source code of this file.

Data Structures

struct  or_options_t
 

Macros

#define MAX_MAX_CLIENT_CIRCUITS_PENDING   1024
 

Enumerations

enum  outbound_addr_t {
  OUTBOUND_ADDR_EXIT, OUTBOUND_ADDR_OR, OUTBOUND_ADDR_PT, OUTBOUND_ADDR_ANY,
  OUTBOUND_ADDR_MAX
}
 
enum  tcp_proxy_protocol_t { TCP_PROXY_PROTOCOL_HAPROXY }
 
enum  key_expiration_format_t { KEY_EXPIRATION_FORMAT_ISO8601 = 0, KEY_EXPIRATION_FORMAT_TIMESTAMP }
 

Detailed Description

The or_options_t structure, which represents Tor's configuration.

Definition in file or_options_st.h.

Enumeration Type Documentation

◆ key_expiration_format_t

Enumeration of available time formats for output of –key-expiration

Definition at line 58 of file or_options_st.h.

◆ outbound_addr_t

Enumeration of outbound address configuration types: Exit-only, OR-only, PT-only, or any of them

Enumerator
OUTBOUND_ADDR_EXIT 

Outbound IP address for Exit connections. Controlled by the OutboundBindAddressExit configuration entry in torrc.

OUTBOUND_ADDR_OR 

Outbound IP address for OR connections. Controlled by the OutboundBindAddressOR configuration entry in torrc.

OUTBOUND_ADDR_PT 

Outbound IP address for PT connections. Controlled by the OutboundBindAddressPT configuration entry in torrc.

OUTBOUND_ADDR_ANY 

Outbound IP address for any outgoing connections. Controlled by the OutboundBindAddress configuration entry in torrc. This value is used as fallback if the more specific OUTBOUND_ADDR_EXIT, OUTBOUND_ADDR_OR, and OUTBOUND_ADDR_PT are unset.

OUTBOUND_ADDR_MAX 

Max value for this enum. Must be the last element in this enum.

Definition at line 28 of file or_options_st.h.

◆ tcp_proxy_protocol_t

Which protocol to use for TCPProxy.

Enumerator
TCP_PROXY_PROTOCOL_HAPROXY 

Use the HAProxy proxy protocol.

Definition at line 52 of file or_options_st.h.