tor  0.4.2.1-alpha-dev
port_cfg_st.h
1 /* Copyright (c) 2001 Matej Pfajfar.
2  * Copyright (c) 2001-2004, Roger Dingledine.
3  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4  * Copyright (c) 2007-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 #ifndef PORT_CFG_ST_H
8 #define PORT_CFG_ST_H
9 
10 #include "core/or/entry_port_cfg_st.h"
11 #include "core/or/server_port_cfg_st.h"
12 
14 struct port_cfg_t {
16  int port;
18  uint8_t type;
19  unsigned is_unix_addr : 1;
21  unsigned is_group_writable : 1;
22  unsigned is_world_writable : 1;
23  unsigned relax_dirmode_check : 1;
24 
25  entry_port_cfg_t entry_cfg;
26 
27  server_port_cfg_t server_cfg;
28 
29  /* Unix sockets only: */
31  char unix_addr[FLEXIBLE_ARRAY_MEMBER];
32 };
33 
34 #endif /* !defined(PORT_CFG_ST_H) */
35 
uint8_t type
Definition: port_cfg_st.h:18
tor_addr_t addr
Definition: port_cfg_st.h:15
char unix_addr[FLEXIBLE_ARRAY_MEMBER]
Definition: port_cfg_st.h:31
unsigned is_unix_addr
Definition: port_cfg_st.h:19