aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/server_port_cfg_st.h
blob: 9a005eccdf82b942bdc22af210359afe41b271aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Copyright (c) 2001 Matej Pfajfar.
 * Copyright (c) 2001-2004, Roger Dingledine.
 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
 * Copyright (c) 2007-2020, The Tor Project, Inc. */
/* See LICENSE for licensing information */

/**
 * @file server_port_cfg_st.h
 * @brief Cnfiguration structure for server ports.
 **/

#ifndef SERVER_PORT_CFG_ST_H
#define SERVER_PORT_CFG_ST_H

struct server_port_cfg_t {
  /* Server port types (or, dir) only: */
  unsigned int no_advertise : 1;
  unsigned int no_listen : 1;
  unsigned int all_addrs : 1;
  unsigned int bind_ipv4_only : 1;
  unsigned int bind_ipv6_only : 1;
};

#endif /* !defined(SERVER_PORT_CFG_ST_H) */