From 933e6c5b86d989cd13e9694fe53f910b5963c955 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Sat, 6 Apr 2024 02:10:08 +0100 Subject: New upstream version 6.0.24.34 --- config.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'config.c') diff --git a/config.c b/config.c index 42d85f4..74473ce 100644 --- a/config.c +++ b/config.c @@ -251,6 +251,8 @@ 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 C_Q_ADD_NP(VOID *PQ, VOID *PBUFF); int doSerialPortName(int i, char * value, char * rec); @@ -364,7 +366,7 @@ static char *pkeywords[] = "BCALL", "DIGIMASK", "NOKEEPALIVES", "COMPORT", "DRIVER", "WL2KREPORT", "UIONLY", "UDPPORT", "IPADDR", "I2CBUS", "I2CDEVICE", "UDPTXPORT", "UDPRXPORT", "NONORMALIZE", "IGNOREUNLOCKEDROUTES", "INP3ONLY", "TCPPORT", "RIGPORT", "PERMITTEDAPPLS", "HIDE", -"SMARTID", "KISSCOMMAND", "SendtoM0LTEMap"}; /* parameter keywords */ +"SMARTID", "KISSCOMMAND", "SendtoM0LTEMap", "PortFreq"}; /* parameter keywords */ static void * poffset[] = { @@ -378,7 +380,7 @@ static void * poffset[] = &xxp.BCALL, &xxp.DIGIMASK, &xxp.DefaultNoKeepAlives, &xxp.IOADDR, &xxp.DLLNAME, &xxp.WL2K, &xxp.UIONLY, &xxp.IOADDR, &xxp.IPADDR, &xxp.INTLEVEL, &xxp.IOADDR, &xxp.IOADDR, &xxp.ListenPort, &xxp.NoNormalize, &xxp.IGNOREUNLOCKED, &xxp.INP3ONLY, &xxp.TCPPORT, &xxp.RIGPORT, &xxp.PERMITTEDAPPLS, &xxp.Hide, -&xxp.SmartID, &xxp.KissParams, &xxp.SendtoM0LTEMap}; /* offset for corresponding data in config file */ +&xxp.SmartID, &xxp.KissParams, &xxp.SendtoM0LTEMap, &xxp.PortFreq}; /* offset for corresponding data in config file */ static int proutine[] = { @@ -392,7 +394,7 @@ static int proutine[] = 0, 1, 2, 18, 15, 16, 2, 1, 17, 1, 1, 1, 1, 2, 2, 2, 1, 1, 19, 2, -1, 20, 1}; /* routine to process parameter */ +1, 20, 1, 21}; /* routine to process parameter */ int PPARAMLIM = sizeof(proutine)/sizeof(int); @@ -1326,6 +1328,11 @@ int int_value(short * val, char value[], char rec[]) return(1); } +int64_t int64_value(int64_t * val, char value[], char rec[]) +{ + *val = strtoll(value, NULL, 10); + return(1); +} /************************************************************************/ /* VALIDATE HEX INT VALUES */ @@ -2227,6 +2234,11 @@ int decode_port_rec(char * rec) cn = doKissCommand(i, value, rec); // Permitted Apps break; + case 21: + cn = int64_value(poffset[i], value, rec); /* INTEGER VALUES */ + break; + + case 9: -- cgit v1.2.3