mirror of
https://github.com/espressif/openthread.git
synced 2026-06-06 05:24:51 +00:00
[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:
committed by
GitHub
parent
cf4e514d00
commit
852bc76f48
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user