diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-12-23 16:30:09 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-12-23 16:30:09 +0000 |
| commit | d5f8de2e8f4d8da3aae9e27c3fdab1a820d2504c (patch) | |
| tree | b8c56d7cba797cd2892de409f1e8c58771088525 /L3Code.c | |
| parent | ee15c1a996dd06295750a13075987031399195ff (diff) | |
| parent | 559d5bbf7c0f401c1def858a9695b43b56a993ec (diff) | |
Update upstream source from tag 'upstream/6.0.25.13+repack'
Update to upstream version '6.0.25.13+repack'
with Debian dir 26b4e77a37c654b0e424f1078dc9316ded2af8ae
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
|
