summaryrefslogtreecommitdiff
path: root/cMain.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-03-22 00:22:09 +0000
committerDave Hibberd <hibby@debian.org>2025-05-21 21:32:17 +0100
commitbdf8a8367e79e6224f8078b5d1bb9b6ad8584079 (patch)
tree6e93cb599e2763d711a3e159fc186a767f8e6c3f /cMain.c
parentf0ac0675f6ceff1a0b4223e6ea6b703c657d282f (diff)
New upstream version 6.0.24.67+repack
Diffstat (limited to 'cMain.c')
-rw-r--r--cMain.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/cMain.c b/cMain.c
index f370490..06503fd 100644
--- a/cMain.c
+++ b/cMain.c
@@ -144,6 +144,10 @@ int L4Compress = 0;
int L4CompMaxframe = 3;
int L4CompPaclen = 236;
+int L2Compress = 0;
+int L2CompMaxframe = 3;
+int L2CompPaclen = 236;
+
BOOL LogL4Connects = FALSE;
BOOL LogAllConnects = FALSE;
BOOL AUTOSAVEMH = TRUE;
@@ -836,6 +840,17 @@ BOOL Start()
if (L4CompPaclen < 64 || L4CompPaclen > 236)
L4CompPaclen = 236;
+
+ L2Compress = cfg->C_L2Compress;
+ L2CompMaxframe = cfg->C_L2CompMaxframe;
+ L2CompPaclen = cfg->C_L2CompPaclen;
+
+ if (L2CompMaxframe < 1 || L2CompMaxframe > 16)
+ L2CompMaxframe = 3;
+
+ if (L2CompPaclen < 64 || L2CompPaclen > 236)
+ L2CompPaclen = 236;
+
// Get pointers to PASSWORD and APPL1 commands