mirror of
https://github.com/espressif/openthread.git
synced 2026-08-27 12:29:54 +00:00
MPL: Introduce multicast forwarding. (#827)
* Message: Add a new optional parameter to Clone method. * MPL: Introduce MPL Forwarding This commit introduces MPL Forwarding for Routers. All references to MPL Seed have been replaced with MPL Seed Id.
This commit is contained in:
committed by
Jonathan Hui
parent
ad39a59ff9
commit
78d4b678e3
@@ -390,6 +390,7 @@ ThreadError Mle::SetStateDetached(void)
|
||||
mMesh.SetRxOnWhenIdle(true);
|
||||
mMleRouter.HandleDetachStart();
|
||||
mNetif.GetIp6().SetForwardingEnabled(false);
|
||||
mNetif.GetIp6().mMpl.SetTimerExpirations(0);
|
||||
|
||||
otLogInfoMle("Mode -> Detached");
|
||||
return kThreadError_None;
|
||||
@@ -423,6 +424,7 @@ ThreadError Mle::SetStateChild(uint16_t aRloc16)
|
||||
|
||||
mNetif.GetNetworkDataLocal().ClearResubmitDelayTimer();
|
||||
mNetif.GetIp6().SetForwardingEnabled(false);
|
||||
mNetif.GetIp6().mMpl.SetTimerExpirations(kMplChildDataMessageTimerExpirations);
|
||||
|
||||
if (mPreviousPanId != Mac::kPanIdBroadcast && (mDeviceMode & ModeTlv::kModeFFD))
|
||||
{
|
||||
@@ -589,7 +591,7 @@ ThreadError Mle::SetRloc16(uint16_t aRloc16)
|
||||
}
|
||||
|
||||
mMac.SetShortAddress(aRloc16);
|
||||
mNetif.GetIp6().mMpl.SetSeed(aRloc16);
|
||||
mNetif.GetIp6().mMpl.SetSeedId(aRloc16);
|
||||
|
||||
return kThreadError_None;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user