From bdf8a8367e79e6224f8078b5d1bb9b6ad8584079 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Sat, 22 Mar 2025 00:22:09 +0000 Subject: New upstream version 6.0.24.67+repack --- cMain.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'cMain.c') 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 -- cgit v1.2.3