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