diff options
Diffstat (limited to 'cMain.c')
| -rw-r--r-- | cMain.c | 36 |
1 files changed, 36 insertions, 0 deletions
@@ -144,6 +144,12 @@ int L4Compress = 0; int L4CompMaxframe = 3;
int L4CompPaclen = 236;
+int L2Compress = 0;
+int L2CompMaxframe = 3;
+int L2CompPaclen = 236;
+
+int PREFERINP3ROUTES = 0;
+
BOOL LogL4Connects = FALSE;
BOOL LogAllConnects = FALSE;
BOOL AUTOSAVEMH = TRUE;
@@ -161,6 +167,8 @@ char MQTT_PASS[80] = ""; int MQTT_Connecting = 0;
int MQTT_Connected = 0;
+int PoolBuilt = 0;
+
//TNCTABLE DD 0
//NUMBEROFSTREAMS DD 0
@@ -836,6 +844,23 @@ 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;
+
+
+ PREFERINP3ROUTES = cfg->C_PREFERINP3ROUTES;
+
+ if (cfg->C_OnlyVer2point0)
+ SUPPORT2point2 = 0;
+
// Get pointers to PASSWORD and APPL1 commands
@@ -962,6 +987,7 @@ BOOL Start() PORT->NormalizeQuality = !PortRec->NoNormalize;
PORT->IgnoreUnlocked = PortRec->IGNOREUNLOCKED;
PORT->INP3ONLY = PortRec->INP3ONLY;
+ PORT->ALLOWINP3 = PortRec->AllowINP3;
PORT->PORTWINDOW = (UCHAR)PortRec->MAXFRAME;
@@ -986,6 +1012,9 @@ BOOL Start() PORT->PORTPACLEN = (UCHAR)PortRec->PACLEN;
PORT->QUAL_ADJUST = (UCHAR)PortRec->QUALADJUST;
+ if (PORT->QUAL_ADJUST < 0 || PORT->QUAL_ADJUST > 100)
+ PORT->QUAL_ADJUST = 100;
+
PORT->DIGIFLAG = PortRec->DIGIFLAG;
if (PortRec->DIGIPORT && CanPortDigi(PortRec->DIGIPORT))
PORT->DIGIPORT = PortRec->DIGIPORT;
@@ -1443,6 +1472,8 @@ BOOL Start() ENDBUFFERPOOL = NEXTFREEDATA;
+ PoolBuilt = 1;
+
// Copy Bridge Map
@@ -1560,6 +1591,7 @@ BOOL FindNeighbour(UCHAR * Call, int Port, struct ROUTE ** REQROUTE) struct ROUTE * ROUTE = NEIGHBOURS;
struct ROUTE * FIRSTSPARE = NULL;
int n = MAXNEIGHBOURS;
+ char Normcall[10];
while (n--)
{
@@ -1572,6 +1604,10 @@ BOOL FindNeighbour(UCHAR * Call, int Port, struct ROUTE ** REQROUTE) ROUTE++;
continue;
}
+
+
+ Normcall[ConvFromAX25(ROUTE->NEIGHBOUR_CALL, Normcall)] = 0;
+
if (CompareCalls(ROUTE->NEIGHBOUR_CALL, Call))
{
*REQROUTE = ROUTE;
|
