mirror of
https://github.com/espressif/openthread.git
synced 2026-08-01 08:37:47 +00:00
[neighbor-table] fix typo (macAddresss -> macAddress) (#6055)
This commit is contained in:
@@ -137,21 +137,21 @@ Neighbor *NeighborTable::FindChildOrRouter(const Neighbor::AddressMatcher &aMatc
|
||||
Neighbor *NeighborTable::FindNeighbor(const Ip6::Address &aIp6Address, Neighbor::StateFilter aFilter)
|
||||
{
|
||||
Neighbor * neighbor = nullptr;
|
||||
Mac::Address macAddresss;
|
||||
Mac::Address macAddress;
|
||||
|
||||
if (aIp6Address.IsLinkLocal())
|
||||
{
|
||||
aIp6Address.GetIid().ConvertToMacAddress(macAddresss);
|
||||
aIp6Address.GetIid().ConvertToMacAddress(macAddress);
|
||||
}
|
||||
|
||||
if (Get<Mle::Mle>().IsRoutingLocator(aIp6Address))
|
||||
{
|
||||
macAddresss.SetShort(aIp6Address.GetIid().GetLocator());
|
||||
macAddress.SetShort(aIp6Address.GetIid().GetLocator());
|
||||
}
|
||||
|
||||
if (!macAddresss.IsNone())
|
||||
if (!macAddress.IsNone())
|
||||
{
|
||||
neighbor = FindChildOrRouter(Neighbor::AddressMatcher(macAddresss, aFilter));
|
||||
neighbor = FindChildOrRouter(Neighbor::AddressMatcher(macAddress, aFilter));
|
||||
ExitNow();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user