[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:
Abtin Keshavarzian
2023-07-03 05:52:11 -07:00
committed by GitHub
parent 809cdc40be
commit 0f7e8491e2
+1 -1
View File
@@ -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.