[mpl] reset seed entry lifetime on rx/tx (#8482)

This commit updates `Mpl::UpdateSeedSet()` to reset the `SeedEntry`
lifetime to `kSeedEntryLifetime` if we rx/tx a message with same
ID and sequence. This ensures that the entry is kept in the array
while other routers are forwarding the same message.
This commit is contained in:
Abtin Keshavarzian
2022-12-05 21:27:06 -08:00
committed by GitHub
parent cf4e514d00
commit 852bc76f48
+2
View File
@@ -191,6 +191,8 @@ Error Mpl::UpdateSeedSet(uint16_t aSeedId, uint8_t aSequence)
if (aSequence == mSeedSet[i].mSequence)
{
// already received, drop message
mSeedSet[i].mLifetime = kSeedEntryLifetime;
ExitNow(error = kErrorDrop);
}
else if (insert == nullptr && SerialNumber::IsLess(aSequence, mSeedSet[i].mSequence))