summary refs log tree commit diff
path: root/config.h
blob: 55d0c6c7f7ced19c4aff173ed341ee215ddceb0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* common config */

#define PASSWORD_BUF_SZ 512 /* 256 russian utf8 chars */

/* do not forget to set MTU on tap: MAX_PKT_SZ - HMAC_SZ - NONCE_SZ - 14 */
#define MAX_PKT_SZ 1440
#ifdef __OpenBSD__
#define MAX_TAPPATH_SZ 32
#endif

/* comment line below to disable ipv6 entirely */
#define ENABLE_IPV6

/* hardcode the password here if you don't want the program to ask for it
 * when it starts. */
char password[PASSWORD_BUF_SZ];