diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-10-24 00:36:53 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-10-24 00:36:53 +0100 |
| commit | f99a0609183fb4f1b11cc476e6cd2feafe9c5534 (patch) | |
| tree | 22292d78c8d3d2d00d5717df6669b35911572439 /L3Code.c | |
| parent | 13c0b79af7605bbec2fbec3ca72ae83af5363544 (diff) | |
| parent | 453f162d225b192d5da5a843633208f0307e6afc (diff) | |
Update upstream source from tag 'upstream/6.0.25.8+repack'
Update to upstream version '6.0.25.8+repack'
with Debian dir 34f11488dfd5eb7b8707d26aa580c8286cf1cfc0
Diffstat (limited to 'L3Code.c')
| -rw-r--r-- | L3Code.c | 21 |
1 files changed, 19 insertions, 2 deletions
@@ -61,9 +61,11 @@ VOID SendNETROMRoute(struct PORTCONTROL * PORT, unsigned char * axcall); void SendVARANetromNodes(struct TNCINFO * TNC, MESSAGE *Buffer);
void SendVARANetromMsg(struct TNCINFO * TNC,L3MESSAGEBUFFER * Buffer);
VOID SENDNODESMSG(int Portnum);
+VOID TCPNETROMSend(struct ROUTE * Route, struct _L3MESSAGEBUFFER * Frame);
extern int NODESINPROGRESS;
extern int NODESToOnePort;
+extern int CLOSING;
extern BOOL NODESINPROGRESS ;;
PPORTCONTROL L3CURRENTPORT;
@@ -98,7 +100,15 @@ VOID L3BG() {
ROUTE = DEST->NRROUTE[ActiveRoute - 1].ROUT_NEIGHBOUR;
- // if NetROM over VARA pass direct to the driver
+ // if NetROM over VARA or NetROM over TCP pass direct to the driver
+
+ if (ROUTE && ROUTE->TCPPort)
+ {
+ PL3MESSAGEBUFFER Frame = (PL3MESSAGEBUFFER)Q_REM(&DEST->DEST_Q);
+ TCPNETROMSend(ROUTE, Frame);
+ ReleaseBuffer(Frame);
+ continue;
+ }
if (ROUTE)
{
@@ -990,7 +1000,9 @@ VOID CLEARACTIVEROUTE(struct ROUTE * ROUTE, int Reason) dest_list * DEST;
int n;
- if (Reason != NORMALCLOSE || ROUTE->INP3Node)
+ // If a link restarts and is no longer inp3 we must still clear any inp3 routes
+
+// if (Reason != NORMALCLOSE || ROUTE->INP3Node)
TellINP3LinkGone(ROUTE);
DEST = DESTS;
@@ -1121,6 +1133,11 @@ VOID L3FastTimer() MESSAGE * Msg;
struct PORTCONTROL * PORT = PORTTABLE;
+ // Not if Node is closing
+
+ if (CLOSING)
+ return;
+
INP3TIMER();
// Send Node faster if VARA
|
