tor-fw-helper.h 706 B

123456789101112131415161718192021222324252627282930313233
  1. /* Copyright (c) 2010, Jacob Appelbaum, Steven J. Murdoch.
  2. * Copyright (c) 2010, The Tor Project, Inc. */
  3. /* See LICENSE for licensing information */
  4. #ifndef _TOR_FW_HELPER_H
  5. #define _TOR_FW_HELPER_H
  6. #include <stdint.h>
  7. #include <stdio.h>
  8. #include <stdlib.h>
  9. #include <getopt.h>
  10. #include <time.h>
  11. #define tor_fw_version "0.1"
  12. typedef struct {
  13. int verbose;
  14. int help;
  15. int test_commandline;
  16. uint16_t private_dir_port;
  17. uint16_t private_or_port;
  18. uint16_t public_dir_port;
  19. uint16_t public_or_port;
  20. uint16_t internal_port;
  21. uint16_t external_port;
  22. int fetch_public_ip;
  23. int nat_pmp_status;
  24. int upnp_status;
  25. int public_ip_status;
  26. } tor_fw_options_t;
  27. #endif