summaryrefslogtreecommitdiff
path: root/TNCEmulators.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2026-09-29 21:39:24 +0100
committerDave Hibberd <hibby@debian.org>2026-09-29 21:39:24 +0100
commit592e5967b8fcd79423802071319d0c646f2080df (patch)
tree0eef3a28cfe1a939caf9d61e419a56d79b3c38e3 /TNCEmulators.c
parent23de03a0c8bf8a564cc0442f49d050ed11e372b8 (diff)
New upstream version 6.0.25.41+repackupstream/6.0.25.41+repack
Diffstat (limited to 'TNCEmulators.c')
-rw-r--r--TNCEmulators.c46
1 files changed, 2 insertions, 44 deletions
diff --git a/TNCEmulators.c b/TNCEmulators.c
index 7fce453..353456b 100644
--- a/TNCEmulators.c
+++ b/TNCEmulators.c
@@ -1776,7 +1776,7 @@ VOID TNCTimer()
while (TNC)
{
- if (TNC->LastDEDPollTime && (time(NULL) > TNC->LastDEDPollTime + 30)) // No polls for 30 secs
+ if (TNC->LastDEDPollTime && (NOW > TNC->LastDEDPollTime + 30)) // No polls for 30 secs
{
int Len = 0;
int Count;
@@ -3403,30 +3403,12 @@ NOTDATA:
if (TNC->DEDTXBUFFER[0] == 1)
{
// recovering
-
-// if (!TNC->Recovering)
-// {
-// sprintf(msg, "Port %d DED Recovery started\n", TNC->ComPort);
-// OutputDebugString(msg);
-// TNC->Recovering = TRUE;
-// }
}
else
{
// Not recovery
-
-// if (TNC->Recovering)
-// {
-// sprintf(msg, "Port %d DED Recovery completed\n", TNC->ComPort);
-// OutputDebugString(msg);
-// TNC->Recovering = FALSE;
-// }
-
}
-// sprintf(msg,"DED CMD: Port %d CMD %c MSGCHANNEL %d\n", TNC->ComPort, TNC->TONODEBUFFER[0], MSGCHANNEL);
-// OutputDebugString(msg);
-
if (_memicmp(TNC->DEDTXBUFFER, "QRES", 4 == 0))
return SendHostOK(TNC);
@@ -3529,7 +3511,7 @@ NOTDATA:
{
//SEE IF MONITORED FRAMES AVAILABLE
- TNC->LastDEDPollTime = time(NULL);
+ TNC->LastDEDPollTime = NOW;
if (MONCount(TNC->Channels[0]->BPQStream))
Work = 0x31;
@@ -3809,32 +3791,8 @@ REALCALL:
HOSTDATAPACKET:
-// }
-// {
-// UCHAR msg[100];
-
-// sprintf(msg,"Host Data Packet: Port %d\n", TNC->ComPort);
-// OutputDebugString(msg);
-// }
-//
-
-
// IF WE ALREADY HAVE DATA QUEUED, ADD THIS IT QUEUE
-// if (Channel->Chan_TXQ)
-// {
-
-// // COPY MESSAGE TO A CHAIN OF BUFFERS
-
-// if (QCOUNT < 10)
-// goto CANTSEND; // NO SPACE - RETURN ERROR (?)
-
-//QUEUEFRAME:
-
-// C_Q_ADD(Channel->Chan_TXQ, COPYMSGTOBUFFERS()); // RETURNS EDI = FIRST (OR ONLY) FRAGMENT
-
-// return SendHostOK(TNC);
-
// MAKE SURE NODE ISNT BUSY
if (TNC->MSGCHANNEL == 0) // UNPROTO Channel