summary refs log tree commit diff
path: root/config.h
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2025-07-31 17:12:27 +0300
committerNakidai <nakidai@disroot.org>2025-07-31 17:12:27 +0300
commitb4709429ed88563982412a5a027b92143c37e268 (patch)
treecd56dfeac7cafcfcb69925b12376d79b8776d3fd /config.h
downloadfatvpn-6149a454bd2699044d2303f585aea7c67819b351.tar.gz
fatvpn-6149a454bd2699044d2303f585aea7c67819b351.zip
Add files v1.0.0
Diffstat (limited to 'config.h')
-rw-r--r--config.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/config.h b/config.h
new file mode 100644
index 0000000..0c43c86
--- /dev/null
+++ b/config.h
@@ -0,0 +1,10 @@
+/* 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
+
+/* hardcode the password here if you don't want the program to ask for it
+ * when it starts. */
+char password[PASSWORD_BUF_SZ];