Tor 0.4.9.0-alpha-dev
server_port_cfg_st.h
Go to the documentation of this file.
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-2021, The Tor Project, Inc. */
5/* See LICENSE for licensing information */
6
7/**
8 * @file server_port_cfg_st.h
9 * @brief Configuration structure for server ports.
10 **/
11
12#ifndef SERVER_PORT_CFG_ST_H
13#define SERVER_PORT_CFG_ST_H
14
16 /* Server port types (or, dir) only: */
17 unsigned int no_advertise : 1;
18 unsigned int no_listen : 1;
19 unsigned int all_addrs : 1;
20 unsigned int bind_ipv4_only : 1;
21 unsigned int bind_ipv6_only : 1;
22};
23
24#endif /* !defined(SERVER_PORT_CFG_ST_H) */