mirror of
https://github.com/espressif/openthread.git
synced 2026-08-06 02:37:47 +00:00
[routing-manager] update use of Ip6::Nd::Option enumerator (#9931)
Avoid using the regular `enum` name when referring to one of its enumerator value.
This commit is contained in:
@@ -3693,11 +3693,12 @@ Error RoutingManager::PdPrefixManager::Process(const Ip6::Nd::RouterAdvert::RxMe
|
||||
{
|
||||
DiscoveredPrefixTable::Entry entry;
|
||||
|
||||
if (option.GetType() != Ip6::Nd::Option::Type::kTypePrefixInfo ||
|
||||
if (option.GetType() != Ip6::Nd::Option::kTypePrefixInfo ||
|
||||
!static_cast<const Ip6::Nd::PrefixInfoOption &>(option).IsValid())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
mNumPlatformPioProcessed++;
|
||||
entry.SetFrom(static_cast<const Ip6::Nd::PrefixInfoOption &>(option));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user