mirror of
https://github.com/espressif/openthread.git
synced 2026-08-07 19:27:46 +00:00
[routing-manager] PdPrefixManager to clear prefix bits when extending length (#9249)
This commit updates the `RoutingManager::PdPrefixManager::Process()` method to `Tidy()` the prefix before setting the prefix length and potentially extending the prefix to `kOmrPrefixLength` (64 bits). This ensures that extended bits in the prefix are set to zero.
This commit is contained in:
@@ -3317,8 +3317,8 @@ Error RoutingManager::PdPrefixManager::Process(const Ip6::Nd::RouterAdvertMessag
|
||||
continue;
|
||||
}
|
||||
|
||||
entry.mPrefix.SetLength(kOmrPrefixLength);
|
||||
entry.mPrefix.Tidy();
|
||||
entry.mPrefix.SetLength(kOmrPrefixLength);
|
||||
|
||||
// The platform may send another RA message to announce that the current prefix we are using is no longer
|
||||
// preferred or no longer valid.
|
||||
|
||||
Reference in New Issue
Block a user