mirror of
https://github.com/espressif/openthread.git
synced 2026-09-03 15:50:06 +00:00
[network-data] use enumeration Type for local vs leader (#3455)
This commit changes `NetworkData` to use an enumeration `Type` to specify whether a `NetworkData` instance represents local network data or leader network data.
This commit is contained in:
committed by
Jonathan Hui
parent
2057a141ef
commit
59385b188b
@@ -41,7 +41,7 @@ class TestNetworkData : public NetworkData::NetworkData
|
||||
{
|
||||
public:
|
||||
TestNetworkData(ot::Instance *aInstance, const uint8_t *aTlvs, uint8_t aTlvsLength)
|
||||
: NetworkData::NetworkData(*aInstance, false)
|
||||
: NetworkData::NetworkData(*aInstance, kTypeLeader)
|
||||
{
|
||||
memcpy(mTlvs, aTlvs, aTlvsLength);
|
||||
mLength = aTlvsLength;
|
||||
|
||||
Reference in New Issue
Block a user