[neighbor-table] fix typo (macAddresss -> macAddress) (#6055)

This commit is contained in:
Li Cao
2021-01-11 08:13:12 -08:00
committed by GitHub
parent 12640b17eb
commit 846e26d71a
+5 -5
View File
@@ -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();
}