mirror of
https://github.com/espressif/openthread.git
synced 2026-08-10 04:37:47 +00:00
[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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user