|
Tor 0.4.9.8
|
#include <port_cfg_st.h>
Data Fields | |
| tor_addr_t | addr |
| int | port |
| uint8_t | type |
| unsigned | is_unix_addr: 1 |
| unsigned | is_group_writable: 1 |
| unsigned | is_world_writable: 1 |
| unsigned | relax_dirmode_check: 1 |
| unsigned | explicit_addr: 1 |
| entry_port_cfg_t | entry_cfg |
| server_port_cfg_t | server_cfg |
| char | unix_addr [FLEXIBLE_ARRAY_MEMBER] |
Configuration for a single port that we're listening on.
Definition at line 19 of file port_cfg_st.h.
| tor_addr_t addr |
The actual IP to listen on, if !is_unix_addr.
Definition at line 20 of file port_cfg_st.h.
Referenced by connection_listener_new_for_port(), describe_relay_port(), metrics_parse_ports(), port_cfg_eq(), port_parse_config(), portconf_get_first_advertised_addr(), and remove_duplicate_orports().
| entry_port_cfg_t entry_cfg |
Indicate if address was explicitly set or we are using the default address.
Definition at line 32 of file port_cfg_st.h.
Referenced by connection_listener_new(), port_cfg_eq(), port_cfg_new(), and port_parse_config().
| unsigned explicit_addr |
Definition at line 29 of file port_cfg_st.h.
| unsigned is_group_writable |
Definition at line 26 of file port_cfg_st.h.
| unsigned is_unix_addr |
True iff this is an AF_UNIX address.
Definition at line 24 of file port_cfg_st.h.
Referenced by connection_listener_new_for_port(), port_cfg_eq(), and port_parse_config().
| unsigned is_world_writable |
Definition at line 27 of file port_cfg_st.h.
| int port |
The configured port, or CFG_AUTO_PORT to tell Tor to pick its own port.
Definition at line 21 of file port_cfg_st.h.
Referenced by connection_listener_new_for_port(), describe_relay_port(), metrics_parse_ports(), port_cfg_eq(), port_parse_config(), portconf_get_first_advertised_port(), and remove_duplicate_orports().
| unsigned relax_dirmode_check |
Definition at line 28 of file port_cfg_st.h.
| server_port_cfg_t server_cfg |
Definition at line 34 of file port_cfg_st.h.
| uint8_t type |
One of CONN_TYPE_*_LISTENER
Definition at line 23 of file port_cfg_st.h.
Referenced by connection_listener_new_for_port(), describe_relay_port(), metrics_parse_ports(), port_cfg_eq(), port_parse_config(), and remove_duplicate_orports().
| char unix_addr[FLEXIBLE_ARRAY_MEMBER] |
Path for an AF_UNIX address
Definition at line 38 of file port_cfg_st.h.
Referenced by connection_listener_new_for_port(), port_cfg_eq(), and port_parse_config().