diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-12-23 16:30:05 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-12-23 16:30:05 +0000 |
| commit | 559d5bbf7c0f401c1def858a9695b43b56a993ec (patch) | |
| tree | d0d2cdf7a10e2609864814bb8caa34b98cf16f6c /L3Code.c | |
| parent | d7b0d25ddb64850a2943f33d2450557629605bc9 (diff) | |
New upstream version 6.0.25.13+repackupstream/6.0.25.13+repack
Diffstat (limited to 'L3Code.c')
| -rw-r--r-- | L3Code.c | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -620,7 +620,7 @@ VOID PROCROUTES(struct DEST_LIST * DEST, struct ROUTE * ROUTE, int Qual) if (DEST->DEST_STATE & 0x80) // BBS ENTRY
return;
- for (Index = 0; Index < 4; Index++)
+ for (Index = 0; Index < 3; Index++)
{
if (DEST->NRROUTE[Index].ROUT_NEIGHBOUR == ROUTE)
{
@@ -692,6 +692,7 @@ UpdatateThisEntry: // IT DID - THIS IS ALSO CALLED BY CHECKL3TABLES. TRY RESETING
// OBS, BUT NOT QUALITY
+
if ((DEST->NRROUTE[Index].ROUT_OBSCOUNT & 0x80) == 0)
DEST->NRROUTE[Index].ROUT_OBSCOUNT = OBSINIT; // SET OBSOLESCENCE COUNT
@@ -1432,7 +1433,8 @@ VOID L3TRYNEXTDEST(struct ROUTE * ROUTE) {
// not Locked
- DEST->NRROUTE[ActiveRoute].ROUT_OBSCOUNT--;
+ if (ActiveRoute < 3) // Not INP3 Route
+ DEST->NRROUTE[ActiveRoute].ROUT_OBSCOUNT--;
// if ROUTE HAS EXPIRED - WE SHOULD CLEAR IT, AND MOVE OTHERS (IF ANY) UP
}
@@ -1563,7 +1565,10 @@ struct DEST_LIST * CHECKL3TABLES(struct _LINKTABLE * LINK, L3MESSAGEBUFFER * Msg if (DEST->DEST_ROUTE)
{
int Index = DEST->DEST_ROUTE -1;
-
+
+ if (Index > 2) // INP3 Route
+ return DEST;
+
if (DEST->NRROUTE[Index].ROUT_OBSCOUNT & 0x80) // Locked:
return DEST;
@@ -1592,6 +1597,9 @@ VOID REFRESHROUTE(TRANSPORTENTRY * Session) Index--;
+ if (Index > 2) // INP3 Route
+ return;
+
if (DEST->NRROUTE[Index].ROUT_OBSCOUNT & 0x80)
return; // Locked
|
