diff options
| author | Dave Hibberd <hibby@debian.org> | 2026-03-08 02:27:14 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2026-03-08 02:27:14 +0000 |
| commit | 7aa6cec9300c8a3e9ef98b19791ad324d487512e (patch) | |
| tree | 18c0487da11274dc1c4b67787ef12b1cefa15ae8 /L3Code.c | |
| parent | dae2bbc7215a8361e7b9092e6c307491c7e5722a (diff) | |
New upstream version 6.0.25.33+repackupstream/6.0.25.33+repack
Diffstat (limited to 'L3Code.c')
| -rw-r--r-- | L3Code.c | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -403,7 +403,9 @@ VOID PROCESSNODEMESSAGE(MESSAGE * Msg, struct PORTCONTROL * PORT) memset(DEST, 0, sizeof(struct DEST_LIST));
memcpy(DEST->DEST_CALL, Msg->ORIGIN, 7);
-
+ if (DEST->RouteLastTT == 0)
+ DEST->RouteLastTT = (uint16_t *)zalloc(MAXNEIGHBOURS * sizeof(uint16_t));
+
NUMBEROFNODES++;
}
@@ -582,6 +584,9 @@ VOID PROCESSNODEMESSAGE(MESSAGE * Msg, struct PORTCONTROL * PORT) memset(DEST, 0, sizeof(struct DEST_LIST));
memcpy(DEST->DEST_CALL, ptr1, 7);
+ if (DEST->RouteLastTT == 0)
+ DEST->RouteLastTT = (uint16_t *)zalloc(MAXNEIGHBOURS * sizeof(uint16_t));
+
NUMBEROFNODES++;
}
@@ -1369,6 +1374,10 @@ VOID REMOVENODE(dest_list * DEST) }
L4++;
}
+
+ if (DEST->RouteLastTT)
+ free(DEST->RouteLastTT);
+
memset(DEST, 0, sizeof(struct DEST_LIST));
NUMBEROFNODES--;
}
@@ -1523,7 +1532,10 @@ struct DEST_LIST * CHECKL3TABLES(struct _LINKTABLE * LINK, L3MESSAGEBUFFER * Msg #endif
memcpy(DEST->DEST_CALL, Msg->L3SRCE, 7);
-
+
+ if (DEST->RouteLastTT == 0)
+ DEST->RouteLastTT = (uint16_t *)zalloc(MAXNEIGHBOURS * sizeof(uint16_t));
+
NUMBEROFNODES++;
// MAKE SURE NEIGHBOUR IS DEFINED FOR DESTINATION
|
