diff options
| author | g8bpq <john.wiseman@cantab.net> | 2023-06-21 08:21:04 +0100 |
|---|---|---|
| committer | g8bpq <john.wiseman@cantab.net> | 2023-06-21 08:21:04 +0100 |
| commit | 75b5bcc9a97b38c6c0c210bf14fabad9cadf704a (patch) | |
| tree | 913d37a3946a40e9694833ed36fd5a8e02a23d42 /cMain.c | |
| parent | a21121fbfce48307740e6ade5f4f16531501b053 (diff) | |
6.0.23.7623.77
Diffstat (limited to 'cMain.c')
| -rw-r--r-- | cMain.c | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -1050,6 +1050,30 @@ BOOL Start() PORT->SmartIDInterval = PortRec->SmartID;
+ if (PortRec->KissParams && (PORT->PORTTYPE == 0 || PORT->PORTTYPE == 22))
+ {
+ struct KISSINFO * KISS = (struct KISSINFO *)PORT;
+ UCHAR KissString[128];
+ int KissLen = 0;
+ unsigned char * Kissptr = KissString;
+ char * ptr;
+ char * Context;
+
+ ptr = strtok_s(PortRec->KissParams, " ", &Context);
+
+ while (ptr && ptr[0] && KissLen < 120)
+ {
+ *(Kissptr++) = atoi (ptr);
+ KissLen++;
+ ptr = strtok_s(NULL, " ", &Context);
+ }
+
+ KISS->KISSCMD = malloc(256);
+
+ KISS->KISSCMDLEN = KissEncode(KissString, KISS->KISSCMD, KissLen);
+ realloc(KISS->KISSCMD, KISS->KISSCMDLEN);
+ }
+
if (PortRec->BBSFLAG) // Appl 1 no permitted - BBSFLAG=NOBBS
PORT->PERMITTEDAPPLS &= 0xfffffffe; // Clear bottom bit
|
