mirror of
https://github.com/espressif/openthread.git
synced 2026-08-10 20:57:47 +00:00
[mle] do not remove neighbors in MleRouter::HandleLinkRequest (#4338)
This allows the device to retain the neighbor entry and validate incoming messages before a proper MLE Link Request/Accept exchange has been completed.
This commit is contained in:
@@ -600,12 +600,6 @@ otError MleRouter::HandleLinkRequest(const Message &aMessage, const Ip6::Message
|
||||
|
||||
rloc16 = sourceAddress.GetRloc16();
|
||||
|
||||
if (aNeighbor && aNeighbor->IsStateValid() && aNeighbor->GetRloc16() != rloc16)
|
||||
{
|
||||
// remove stale neighbors
|
||||
RemoveNeighbor(*aNeighbor);
|
||||
}
|
||||
|
||||
if (IsActiveRouter(rloc16))
|
||||
{
|
||||
Mac::ExtAddress macAddr;
|
||||
|
||||
Reference in New Issue
Block a user