[netdata] remove mType in NetworkData class (#6977)

This commit simplifies the `NetworkData` class by removing the `mType`
Instead we add a new parameter in `SendServerDataNotification()` which
indicates whether to append the Network Data TLV to the message or
not (which was previously determined by `mType`).
This commit is contained in:
Abtin Keshavarzian
2021-09-02 13:21:08 -07:00
committed by GitHub
parent a193a6f23a
commit 118511c4f6
8 changed files with 32 additions and 45 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ void TestNetworkDataIterator(void)
{
public:
TestNetworkData(ot::Instance *aInstance, const uint8_t *aTlvs, uint8_t aTlvsLength)
: NetworkData(*aInstance, kTypeLeader)
: NetworkData(*aInstance)
{
memcpy(mTlvs, aTlvs, aTlvsLength);
mLength = aTlvsLength;