summaryrefslogtreecommitdiff
path: root/Cmd.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-11-11 21:42:35 +0000
committerDave Hibberd <hibby@debian.org>2025-11-11 21:42:35 +0000
commit9aad97786d945165530dcac2216c5b75e4632f82 (patch)
tree96c8400266ae38a742497c4e4a06ab34ee51839c /Cmd.c
parent453f162d225b192d5da5a843633208f0307e6afc (diff)
6.0.25.9
Diffstat (limited to 'Cmd.c')
-rw-r--r--Cmd.c51
1 files changed, 51 insertions, 0 deletions
diff --git a/Cmd.c b/Cmd.c
index 605ccd1..7eb6061 100644
--- a/Cmd.c
+++ b/Cmd.c
@@ -130,6 +130,8 @@ int NOBUFFCOUNT = 0;
int BUFFERWAITS = 0;
int MAXDESTS = 0;
int NUMBEROFNODES = 0;
+int L2CONNECTSOUT = 0;
+int L2CONNECTSIN = 0;
int L4CONNECTSOUT = 0;
int L4CONNECTSIN = 0;
int L4FRAMESTX = 0;
@@ -903,8 +905,18 @@ int checkifService(TRANSPORTENTRY * Session, char * Bufferptr, char * CmdTail, s
BOOL Stay = FALSE;
char * ptr, *Context;
int i;
+<<<<<<< Updated upstream
ptr = strtok_s(CmdTail, " ", &Context);
+||||||| Stash base
+=======
+ char TailCopy[256];
+
+ strcpy(TailCopy, CmdTail);
+
+
+ ptr = strtok_s(TailCopy, " ", &Context);
+>>>>>>> Stashed changes
// see if any param. if longer than two chars treat as remote node
@@ -2665,7 +2677,14 @@ NoPort:
// SEE IF CALL TO ANY OF OUR HOST SESSIONS - UNLESS DIGIS SPECIFIED
+<<<<<<< Updated upstream
if (axcalls[7] == 0 && axcalls[9] )
+||||||| Stash base
+ if (axcalls[7] == 0)
+=======
+// if (axcalls[7] == 0 && axcalls[9])
+ if (axcalls[7] == 0)
+>>>>>>> Stashed changes
{
// If this connect is as a result of a command alias, don't check appls or we will loop
@@ -2716,6 +2735,7 @@ NoPort:
}
}
+<<<<<<< Updated upstream
// if no digis see if connect to known node. But now could have a single numeric param as a service number (Paula's Netromx)
// cmdCopy is command tail (after call)
@@ -2729,11 +2749,42 @@ NoPort:
if (cmdCopy[i] != ' ')
goto Downlink;
else
+||||||| Stash base
+ if (axcalls[7] == 0)
+=======
+ // if no digis see if connect to known node.
+
+ // But now could have a single numeric param as a service number (Paula's Netromx)
+ // cmdCopy is command tail (after call)
+
+ // Make sure field is numeric
+
+ if (cmdCopy[0] != ' ')
+>>>>>>> Stashed changes
{
+<<<<<<< Updated upstream
if (i > 0) // Some digits
{
haveService = 1;
Service = atoi(cmdCopy);
+||||||| Stash base
+ // SEE IF CALL TO ANOTHER NODE
+=======
+ i = 0;
+
+ while (cmdCopy[i] >= '0' && cmdCopy[i]<= '9')
+ i++;
+
+ if (cmdCopy[i] != ' ')
+ goto Downlink;
+ else
+ {
+ if (i > 0) // Some digits
+ {
+ haveService = 1;
+ Service = atoi(cmdCopy);
+ }
+>>>>>>> Stashed changes
}
}