server_port_cfg_st.h 546 B

1234567891011121314151617181920
  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. #ifndef SERVER_PORT_CFG_ST_H
  7. #define SERVER_PORT_CFG_ST_H
  8. struct server_port_cfg_t {
  9. /* Server port types (or, dir) only: */
  10. unsigned int no_advertise : 1;
  11. unsigned int no_listen : 1;
  12. unsigned int all_addrs : 1;
  13. unsigned int bind_ipv4_only : 1;
  14. unsigned int bind_ipv6_only : 1;
  15. };
  16. #endif