mirror of
https://github.com/espressif/openthread.git
synced 2026-07-28 14:47:46 +00:00
Do not signal network data update if nothing has changed. (#416)
This commit is contained in:
@@ -445,19 +445,21 @@ void Leader::RemoveBorderRouter(uint16_t aRloc16)
|
||||
bool rlocStable = false;
|
||||
RlocLookup(aRloc16, rlocIn, rlocStable, mTlvs, mLength);
|
||||
|
||||
if (rlocIn)
|
||||
{
|
||||
RemoveRloc(aRloc16);
|
||||
mVersion++;
|
||||
VerifyOrExit(rlocIn, ;);
|
||||
|
||||
if (rlocStable)
|
||||
{
|
||||
mStableVersion++;
|
||||
}
|
||||
RemoveRloc(aRloc16);
|
||||
mVersion++;
|
||||
|
||||
if (rlocStable)
|
||||
{
|
||||
mStableVersion++;
|
||||
}
|
||||
|
||||
mMle.HandleNetworkDataUpdate();
|
||||
mNetif.SetStateChangedFlags(OT_THREAD_NETDATA_UPDATED);
|
||||
|
||||
exit:
|
||||
return;
|
||||
}
|
||||
|
||||
void Leader::HandleServerData(void *aContext, Coap::Header &aHeader, Message &aMessage,
|
||||
|
||||
Reference in New Issue
Block a user