Skip to content

Commit

Permalink
[mle] exclude loopback from Address Registration TLV (openthread#10997)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhui authored Dec 5, 2024
1 parent 382eaea commit ee2d7d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/thread/mle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4920,8 +4920,9 @@ Error Mle::TxMessage::AppendAddressRegistrationTlv(AddressRegistrationMode aMode

for (const Ip6::Netif::UnicastAddress &addr : Get<ThreadNetif>().GetUnicastAddresses())
{
if (addr.GetAddress().IsLinkLocalUnicast() || Get<Mle>().IsRoutingLocator(addr.GetAddress()) ||
Get<Mle>().IsAnycastLocator(addr.GetAddress()) || addr.GetAddress() == Get<Mle>().GetMeshLocalEid())
if (addr.GetAddress().IsLoopback() || addr.GetAddress().IsLinkLocalUnicast() ||
Get<Mle>().IsRoutingLocator(addr.GetAddress()) || Get<Mle>().IsAnycastLocator(addr.GetAddress()) ||
addr.GetAddress() == Get<Mle>().GetMeshLocalEid())
{
continue;
}
Expand Down

0 comments on commit ee2d7d5

Please sign in to comment.