mirror of
https://github.com/espressif/openthread.git
synced 2026-08-02 09:07:47 +00:00
MPL: Seed-id field handling (#663)
* MPL: Fix seed-id field handling. Add Pad1 and PadN options. This commit fixes issue #599 by allowing MPL module to elide its seed-id as well as retrieve elided seed-id from RLOC. Additionally Pad options have been introduced and bug with incorrect parsing of Pad1 option has been fixed. * Lowpan: Introduce compression and decompression of Pad1 and PadN options. This commit fixes issue #599.
This commit is contained in:
committed by
Jonathan Hui
parent
a853ffc784
commit
465affadb9
@@ -131,6 +131,9 @@ Mle::Mle(ThreadNetif &aThreadNetif) :
|
||||
mMeshLocal16.mPreferredLifetime = 0xffffffff;
|
||||
mMeshLocal16.mValidLifetime = 0xffffffff;
|
||||
|
||||
// Store RLOC address reference in MPL module.
|
||||
mNetif.GetIp6().mMpl.SetMatchingAddress(mMeshLocal16.GetAddress());
|
||||
|
||||
// link-local all thread nodes
|
||||
mLinkLocalAllThreadNodes.GetAddress().mFields.m16[0] = HostSwap16(0xff32);
|
||||
mLinkLocalAllThreadNodes.GetAddress().mFields.m16[6] = HostSwap16(0x0000);
|
||||
@@ -522,6 +525,7 @@ ThreadError Mle::SetRloc16(uint16_t aRloc16)
|
||||
}
|
||||
|
||||
mMac.SetShortAddress(aRloc16);
|
||||
mNetif.GetIp6().mMpl.SetSeed(aRloc16);
|
||||
|
||||
return kThreadError_None;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user