mirror of
https://github.com/espressif/openthread.git
synced 2026-10-06 07:47:41 +00:00
Eliminate unncessary MLE Child Update Request transmissions. (#1141)
- Separate IPv6 RLOC changed event from IPv6 added/removed. - Avoid unnecessary side effects when Mle::SetMeshLocalPrefix().
This commit is contained in:
@@ -657,7 +657,8 @@ void OTCALL otNodeStateChangedCallback(uint32_t aFlags, void *aContext)
|
||||
printf("%d: new role: %s\r\n", aNode->mId, otDeviceRoleToString(Role));
|
||||
}
|
||||
|
||||
if ((aFlags & OT_IP6_ADDRESS_ADDED) != 0 || (aFlags & OT_IP6_ADDRESS_REMOVED) != 0)
|
||||
if ((aFlags & OT_IP6_ADDRESS_ADDED) != 0 || (aFlags & OT_IP6_ADDRESS_REMOVED) != 0 ||
|
||||
(aFlags & OT_IP6_RLOC_ADDED) != 0 || (aFlags & OT_IP6_RLOC_REMOVED) != 0)
|
||||
{
|
||||
HandleAddressChanges(aNode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user