mirror of
https://github.com/espressif/openthread.git
synced 2026-08-16 15:47:46 +00:00
[routing-manager] fix deprecating on-link prefix from inactive router (#9121)
This commit fixes `RemoveOrDeprecateEntriesFromInactiveRouters()` to ensure to skip over an already deprecating on-link prefix (and not remove it).
This commit is contained in:
@@ -1478,10 +1478,13 @@ void RoutingManager::DiscoveredPrefixTable::RemoveOrDeprecateEntriesFromInactive
|
||||
|
||||
for (Entry &entry : router.mEntries)
|
||||
{
|
||||
if (entry.IsOnLinkPrefix() && !entry.IsDeprecated())
|
||||
if (entry.IsOnLinkPrefix())
|
||||
{
|
||||
entry.ClearPreferredLifetime();
|
||||
SignalTableChanged();
|
||||
if (!entry.IsDeprecated())
|
||||
{
|
||||
entry.ClearPreferredLifetime();
|
||||
SignalTableChanged();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user