diff options
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 83 |
1 files changed, 54 insertions, 29 deletions
@@ -310,7 +310,7 @@ static char *keywords[] = "LogL4Connects", "LogAllConnects", "SAVEMH", "ENABLEADIFLOG", "ENABLEEVENTS", "SAVEAPRSMSGS",
"EnableM0LTEMap", "MQTT", "MQTT_HOST", "MQTT_PORT", "MQTT_USER", "MQTT_PASS",
"L4Compress", "L4CompMaxframe", "L4CompPaclen", "L2Compress", "L2CompMaxframe",
-"L2CompPaclen", "PREFERINP3ROUTES", "OnlyVer2point0", "DEBUGINP3", "ENABLEOARCAPI"
+"L2CompPaclen", "PREFERINP3ROUTES", "OnlyVer2point0", "DEBUGINP3", "ENABLEOARCAPI", "MONTOFILE"
}; /* parameter keywords */
static void * offset[] =
@@ -334,7 +334,7 @@ static void * offset[] = &xxcfg.C_LogL4Connects, &xxcfg.C_LogAllConnects, &xxcfg.C_SaveMH, &xxcfg.C_ADIF, &xxcfg.C_EVENTS, &xxcfg.C_SaveAPRSMsgs,
&xxcfg.C_M0LTEMap, &xxcfg.C_MQTT, &xxcfg.C_MQTT_HOST, &xxcfg.C_MQTT_PORT, &xxcfg.C_MQTT_USER, &xxcfg.C_MQTT_PASS,
&xxcfg.C_L4Compress, &xxcfg.C_L4CompMaxframe, &xxcfg.C_L4CompPaclen, &xxcfg.C_L2Compress, &xxcfg.C_L2CompMaxframe,
-&xxcfg.C_L2CompPaclen, &xxcfg.C_PREFERINP3ROUTES, &xxcfg.C_OnlyVer2point0, &xxcfg.C_DEBUGINP3, &xxcfg.C_OARCAPI}; /* offset for corresponding data in config file */
+&xxcfg.C_L2CompPaclen, &xxcfg.C_PREFERINP3ROUTES, &xxcfg.C_OnlyVer2point0, &xxcfg.C_DEBUGINP3, &xxcfg.C_OARCAPI, &xxcfg.C_MONTOFILE}; /* offset for corresponding data in config file */
static int routine[] =
{
@@ -357,7 +357,7 @@ static int routine[] = 2, 2, 1, 2, 2, 2,
2, 2, 0, 1, 20, 20,
1, 1, 1, 1, 1,
-1, 1, 1, 1, 1}; // Routine to process param
+1, 1, 1, 1, 1, 1}; // Routine to process param
int PARAMLIM = sizeof(routine)/sizeof(int);
//int NUMBEROFKEYWORDS = sizeof(routine)/sizeof(int);
@@ -560,7 +560,6 @@ BOOL ProcessConfig() heading = 1;
}
-
paramok[6]=1; /* dont need BUFFERS */
paramok[8]=1; /* dont need TRANSDELAY */
paramok[13]=1; // NodeAlias
@@ -610,35 +609,35 @@ BOOL ProcessConfig() paramok[45+i]=1; /* or APPLCALLS, APPLALIASS APPLQUAL */
paramok[69]=1; // BText optional
- paramok[70]=1; // IPGateway optional
+ paramok[70]=1; // NETROMCALL optional
paramok[71]=1; // C_IS_CHAT optional
-
paramok[72]=1; // MAXRTT optional
- paramok[73]=1; // MAXHOPS optional
- paramok[74]=1; // LogL4Connects optional
- paramok[75]=1; // LogAllConnects optional
- paramok[76]=1; // SAVEMH optional
- paramok[77]=1; // ENABLEADIFLOG optional
- paramok[78]=1; // EnableEvents optional
- paramok[79]=1; // SaveAPRSMsgs optional
+ paramok[73]=1; // MAXTT optional
+ paramok[74]=1; // MAXHOPS optional
+ paramok[75]=1; // LogL4Connects optional
+ paramok[76]=1; // LogAllConnects optional
+ paramok[77]=1; // SAVEMH optional
+ paramok[78]=1; // ENABLEADIFLOG optional
+ paramok[79]=1; // EnableEvents optional
+ paramok[80]=1; // SaveAPRSMsgs optional
paramok[79]=1; // SaveAPRSMsgs optional
paramok[80]=1; // EnableM0LTEMap optional
- paramok[81]=1; // MQTT Params
paramok[82]=1; // MQTT Params
paramok[83]=1; // MQTT Params
paramok[84]=1; // MQTT Params
paramok[85]=1; // MQTT Params
- paramok[86]=1; // L4Compress
- paramok[87]=1; // L4Compress Maxframe
- paramok[88]=1; // L4Compress Paclen
- paramok[89]=1; // L2Compress
- paramok[90]=1; // L2Compress Maxframe
- paramok[91]=1; // L2Compress Paclen
- paramok[92]=1; // PREFERINP3ROUTES
- paramok[93]=1; // ONLYVer2point0
- paramok[94]=1; // DEBUGINP3
- paramok[95]=1; // EnableOARCAPI
- paramok[96]=1; // OARCAPI
+ paramok[86]=1; // MQTT Params
+ paramok[87]=1; // L4Compress
+ paramok[88]=1; // L4Compress Maxframe
+ paramok[89]=1; // L4Compress Paclen
+ paramok[90]=1; // L2Compress
+ paramok[91]=1; // L2Compress Maxframe
+ paramok[92]=1; // L2Compress Paclen
+ paramok[93]=1; // PREFERINP3ROUTES
+ paramok[94]=1; // ONLYVer2point0
+ paramok[95]=1; // DEBUGINP3
+ paramok[96]=1; // EnableOARCAPI
+ paramok[97]=1; // MONTOFILE
for (i=0; i < PARAMLIM; i++)
@@ -651,7 +650,7 @@ BOOL ProcessConfig() Consoleprintf("The following parameters were not correctly specified");
heading = 1;
}
- Consoleprintf(keywords[i]);
+ Consoleprintf("%s", keywords[i]);
}
}
@@ -3069,13 +3068,39 @@ int simple(int i) /* Set PARAMOK flags on all values that are defaulted */
- for (i=0; i < PARAMLIM; i++)
- paramok[i]=1;
-
paramok[15] = 0; // Must have callsign
paramok[45] = 0; // Dont Have Appl1Call
paramok[53] = 0; // or APPL1ALIAS
+ // Set defined flag on defaulted params
+
+ paramok[0] = 1; // OBSINIT
+ paramok[1] = 1; // OBSMIN
+ paramok[2] = 1; // NODESINTERVAL
+ paramok[3] = 1; // L3TIMETOLIVE
+ paramok[4] = 1; // L4RETRIES
+ paramok[5] = 1; // L4TIMEOUT
+ paramok[7] = 1; // PACLEN
+ paramok[9] = 1; // T3
+ paramok[10] = 1; // IDLETIME
+ paramok[11] = 1; // BBS
+ paramok[12] = 1; // NODE
+ paramok[18] = 1; // IDMSG:
+ paramok[19] = 1; // INFOMSG:
+ paramok[22] = 1; // MAXLINKS
+ paramok[23] = 1; // MAXNODES
+ paramok[24] = 1; // MAXROUTES
+ paramok[25] = 1; // MAXCIRCUITS
+ paramok[26] = 1; // IDINTERVAL
+ paramok[27] = 1; // MINQUAL
+ paramok[28] = 1; // HIDENODES
+ paramok[29] = 1; // L4DELAY
+ paramok[30] = 1; // L4WINDOW
+ paramok[31] = 1; // BTINTERVAL
+ paramok[36] = 1; // CTEXT:
+ paramok[39] = 1; // ENABLE_LINKED
+ paramok[41] = 1; // FULL_CTEXT
+
return(1);
}
|
