tun2socks.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * @file tun2socks.h
  3. * @author Ambroz Bizjak <ambrop7@gmail.com>
  4. *
  5. * @section LICENSE
  6. *
  7. * This file is part of BadVPN.
  8. *
  9. * BadVPN is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2
  11. * as published by the Free Software Foundation.
  12. *
  13. * BadVPN is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License along
  19. * with this program; if not, write to the Free Software Foundation, Inc.,
  20. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  21. */
  22. // name of the program
  23. #define PROGRAM_NAME "tun2socks"
  24. // size of temporary buffer for passing data from the SOCKS server to TCP for sending
  25. #define CLIENT_SOCKS_RECV_BUF_SIZE 8192
  26. // maximum number of udpgw connections
  27. #define DEFAULT_UDPGW_MAX_CONNECTIONS 256
  28. // udpgw per-connection send buffer size, in number of packets
  29. #define DEFAULT_UDPGW_CONNECTION_BUFFER_SIZE 8
  30. // udpgw reconnect time after connection fails
  31. #define UDPGW_RECONNECT_TIME 5000
  32. // udpgw keepalive sending interval
  33. #define UDPGW_KEEPALIVE_TIME 10000
  34. // option to override the destination addresses to give the SOCKS server
  35. //#define OVERRIDE_DEST_ADDR "10.111.0.2:2000"