diff options
| author | Dave Hibberd <hibby@debian.org> | 2026-09-29 21:39:24 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2026-09-29 21:39:24 +0100 |
| commit | 592e5967b8fcd79423802071319d0c646f2080df (patch) | |
| tree | 0eef3a28cfe1a939caf9d61e419a56d79b3c38e3 /config.c | |
| parent | 23de03a0c8bf8a564cc0442f49d050ed11e372b8 (diff) | |
New upstream version 6.0.25.41+repackupstream/6.0.25.41+repack
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 23 |
1 files changed, 17 insertions, 6 deletions
@@ -192,6 +192,8 @@ VOID Consoleprintf(const char * format, ...) va_start(arglist, format);
vsprintf(Mess, format, arglist);
+ va_end(arglist);
+
strcat(Mess, "\n");
WritetoConsoleLocal(Mess);
@@ -255,7 +257,7 @@ int tnctypes(int i,char *value,char *rec); int do_kiss(char *value,char *rec);
int decode_ded_rec(char *rec);
int simple(int i);
-int64_t int64_value(int64_t * val, char value[], char rec[]);
+int int64_value(int64_t * val, char value[], char rec[]);
int32_t int32_value(int32_t * val, char value[], char rec[]);
@@ -312,7 +314,7 @@ static char *keywords[] = "EnableM0LTEMap", "MQTT", "MQTT_HOST", "MQTT_PORT", "MQTT_USER", "MQTT_PASS",
"L4Compress", "L4CompMaxframe", "L4CompPaclen", "L2Compress", "L2CompMaxframe",
"L2CompPaclen", "PREFERINP3ROUTES", "OnlyVer2point0", "DEBUGINP3", "ENABLEOARCAPI", "MONTOFILE",
-"RIFInterval"
+"RIFInterval", "LOCALNOTSECURE"
}; /* parameter keywords */
@@ -338,7 +340,8 @@ static void * offset[] = &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, &xxcfg.C_MONTOFILE,
-&xxcfg.C_RIFInterval}; /* offset for corresponding data in config file */
+&xxcfg.C_RIFInterval, &xxcfg.C_LOCALNOTSECURE /* offset for corresponding data in config file */
+};
static int routine[] =
{
@@ -362,7 +365,7 @@ static int routine[] = 2, 2, 0, 1, 20, 20,
1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1,
-1}; // Routine to process param
+1, 1}; // Routine to process param
int PARAMLIM = sizeof(routine)/sizeof(int);
//int NUMBEROFKEYWORDS = sizeof(routine)/sizeof(int);
@@ -647,6 +650,7 @@ BOOL ProcessConfig() paramok[100]=1; // BW
paramok[101]=1; // SF
paramok[102]=1; // CR
+ paramok[103]=1; // LOCALNOTSECURE
for (i=0; i < PARAMLIM; i++)
@@ -701,7 +705,7 @@ BOOL ProcessConfig() /*
// Dump to file for debugging
- sprintf_s(inputname, sizeof(inputname), "CFG%d", time(NULL));
+ sprintf_s(inputname, sizeof(inputname), "CFG%d", NOW);
fp1 = fopen(inputname, "wb");
@@ -1416,7 +1420,7 @@ int int32_value(int32_t * val, char value[], char rec[]) return(1);
}
-int64_t int64_value(int64_t * val, char value[], char rec[])
+int int64_value(int64_t * val, char value[], char rec[])
{
*val = strtoll(value, NULL, 10);
return(1);
@@ -1700,6 +1704,13 @@ int routes(int i) Route->inp3 = atoi(val);
}
+ else if (strcmp(ptr, "NPR") == 0)
+ {
+ char * val = strtok_s(NULL, " ,=", &context);
+
+ if (val)
+ Route->NPR = atoi(val);
+ }
else if (strcmp(ptr, "NOKEEPALIVES") == 0)
{
char * val = strtok_s(NULL, " ,=", &context);
|
