From c89d4f0d80c03bb705d94c0bc1c3faba6a7b3a65 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Thu, 14 Mar 2024 14:44:07 -0700 Subject: [PATCH] [routing-manager] update use of `Ip6::Nd::Option` enumerator (#9931) Avoid using the regular `enum` name when referring to one of its enumerator value. --- src/core/border_router/routing_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/border_router/routing_manager.cpp b/src/core/border_router/routing_manager.cpp index 6eb51c4c8..81d0c3787 100644 --- a/src/core/border_router/routing_manager.cpp +++ b/src/core/border_router/routing_manager.cpp @@ -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(option).IsValid()) { continue; } + mNumPlatformPioProcessed++; entry.SetFrom(static_cast(option));