summaryrefslogtreecommitdiff
path: root/L4Code.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-11-11 21:50:49 +0000
committerDave Hibberd <hibby@debian.org>2025-11-11 21:50:49 +0000
commit1338e2c0a4d701039eff82fa838a066b37206d39 (patch)
treecf8c0b954381212d2a69d88c071657974b38884f /L4Code.c
parent8dc88bc8290ea7b72ebb2fb0042d4b200a089a8e (diff)
parent85f200a46cf5e002e59e36b11ab4fba2f0422b33 (diff)
Update upstream source from tag 'upstream/6.0.25.11+repack'
Update to upstream version '6.0.25.11+repack' with Debian dir 9c0f82ee4c630b5e6c5cc6a4d1e3093259cd7a60
Diffstat (limited to 'L4Code.c')
-rw-r--r--L4Code.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/L4Code.c b/L4Code.c
index 5704e49..a319504 100644
--- a/L4Code.c
+++ b/L4Code.c
@@ -73,6 +73,7 @@ void OutgoingL4ConnectionEvent(TRANSPORTENTRY * L4);
void IncomingL4ConnectionEvent(TRANSPORTENTRY * L4);
void L4DisconnectEvent(TRANSPORTENTRY * L4, char * Direction, char * Reason);
VOID TCPNETROMSend(struct ROUTE * Route, struct _L3MESSAGEBUFFER * Frame);
+void L4StatusSeport(TRANSPORTENTRY * L4);
static UINT APPLMASK;
@@ -89,6 +90,8 @@ extern int L2Compress;
extern int L2CompMaxframe;
extern int L2CompPaclen;
+int sessionStatusInterval = 300; // 5 mins
+
// L4 Flags Values
#define DISCPENDING 8 // SEND DISC WHEN ALL DATA ACK'ED
@@ -1128,6 +1131,7 @@ VOID L4TimerProc()
TRANSPORTENTRY * L4 = L4TABLE;
TRANSPORTENTRY * Partner;
int MaxLinks = MAXLINKS;
+ time_t Now = time(NULL);
while (n--)
{
@@ -1136,6 +1140,12 @@ VOID L4TimerProc()
L4++;
continue;
}
+
+ // Check for Status report time
+
+ if (L4->lastStatusSentTime && (Now - L4->lastStatusSentTime) > sessionStatusInterval)
+ L4StatusSeport(L4);
+
// CHECK FOR L4BUSY SET AND NO LONGER BUSY
@@ -2261,6 +2271,14 @@ VOID FRAMEFORUS(struct _LINKTABLE * LINK, L3MESSAGEBUFFER * L3MSG, int ApplMask,
return;
}
+ // if connect to service don't send connected to node messsage as service will send own message
+
+// if (L4->Service)
+// {
+// ReleaseBuffer(L3MSG);
+// return;
+// }
+
Msg = (PDATAMESSAGE)L3MSG; // reuse input buffer
Msg->PID = 0xf0;