Add key rotation timer and key switch guard timer. (#732) (#751)

This commit is contained in:
Hubert Miś
2016-10-06 18:11:40 +02:00
committed by Jonathan Hui
parent 2c21e83d89
commit 06535536de
4 changed files with 179 additions and 11 deletions
+3
View File
@@ -201,6 +201,8 @@ ThreadError Mle::Start(void)
mDeviceState = kDeviceStateDetached;
SetStateDetached();
mKeyManager.Start();
if (GetRloc16() == Mac::kShortAddrInvalid)
{
BecomeChild(kMleAttachAnyPartition);
@@ -222,6 +224,7 @@ exit:
ThreadError Mle::Stop(void)
{
mKeyManager.Stop();
SetStateDetached();
mNetif.RemoveUnicastAddress(mLinkLocal16);
mNetif.RemoveUnicastAddress(mMeshLocal16);