summary refs log tree commit diff
path: root/config.h
diff options
context:
space:
mode:
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];