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));