[neighbor-table] fix finding neighbor by Ip6 address issue (#6483)

Currently, if using FindNeighbor(const Ip6::Address &aIp6Address,
Neighbor::StateFilter aFilter) when the aIp6Address is the device's
parent's link local address, it cannot be found. This commit fixes
this issue.
This commit is contained in:
Li Cao
2021-04-19 09:22:37 -07:00
committed by GitHub
parent 24177cade4
commit 462a783337
+1 -1
View File
@@ -151,7 +151,7 @@ Neighbor *NeighborTable::FindNeighbor(const Ip6::Address &aIp6Address, Neighbor:
if (!macAddress.IsNone())
{
neighbor = FindChildOrRouter(Neighbor::AddressMatcher(macAddress, aFilter));
neighbor = FindNeighbor(Neighbor::AddressMatcher(macAddress, aFilter));
ExitNow();
}