tun2socks.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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. // device write buffer size, in number of packets
  25. // WARNING: each packet takes at least 65535 bytes
  26. #define DEVICE_WRITE_BUFFER_SIZE 1
  27. // size of temporary buffer for passing data from the SOCKS server to TCP for sending
  28. #define CLIENT_SOCKS_RECV_BUF_SIZE 8192
  29. // option to override the destination addresses to give the SOCKS server
  30. //#define OVERRIDE_DEST_ADDR "10.111.0.2:2000"