[mle-types] add MeshLocalPrefix class (#4679)

This commit is contained in:
Abtin Keshavarzian
2020-03-13 22:06:04 -07:00
committed by Jonathan Hui
parent 052047a15f
commit ab81a256e4
11 changed files with 100 additions and 41 deletions
+3 -2
View File
@@ -106,10 +106,11 @@ void TestIphcVector::GetUncompressedStream(Message &aMessage)
* This function initializes Thread Interface.
*
*/
static void Init()
static void Init(void)
{
otMeshLocalPrefix meshLocalPrefix = {{0xfd, 0x00, 0xca, 0xfe, 0xfa, 0xce, 0x12, 0x34}};
sInstance->Get<Mle::MleRouter>().SetMeshLocalPrefix(meshLocalPrefix);
sInstance->Get<Mle::MleRouter>().SetMeshLocalPrefix(static_cast<Mle::MeshLocalPrefix &>(meshLocalPrefix));
// Emulate global prefixes with contextes.
uint8_t mockNetworkData[] = {