tor  master
Data Fields
port_cfg_t Struct Reference

#include <or.h>

Collaboration diagram for port_cfg_t:
Collaboration graph
[legend]

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
 
entry_port_cfg_t entry_cfg
 
server_port_cfg_t server_cfg
 
char unix_addr [FLEXIBLE_ARRAY_MEMBER]
 

Detailed Description

Configuration for a single port that we're listening on.

Field Documentation

◆ addr

tor_addr_t addr

The actual IP to listen on, if !is_unix_addr.

◆ is_unix_addr

unsigned is_unix_addr

True iff this is an AF_UNIX address.

◆ port

int port

The configured port, or CFG_AUTO_PORT to tell Tor to pick its own port.

◆ type

uint8_t type

One of CONN_TYPE_*_LISTENER

◆ unix_addr

char unix_addr[FLEXIBLE_ARRAY_MEMBER]

Path for an AF_UNIX address


The documentation for this struct was generated from the following file: