[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:
Abtin Keshavarzian
2024-03-14 14:44:07 -07:00
committed by GitHub
parent ff3cc7ef69
commit c89d4f0d80
+2 -1
View File
@@ -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));