mirror of
https://github.com/espressif/openthread.git
synced 2026-08-04 01:47:47 +00:00
Init Timestamp within Active/PendingTimestamp TLVs. (#849)
This commit is contained in:
@@ -942,7 +942,7 @@ public:
|
||||
* This method initializes the TLV.
|
||||
*
|
||||
*/
|
||||
void Init(void) { SetType(kActiveTimestamp); SetLength(sizeof(*this) - sizeof(Tlv)); }
|
||||
void Init(void) { SetType(kActiveTimestamp); SetLength(sizeof(*this) - sizeof(Tlv)); Timestamp::Init(); }
|
||||
|
||||
/**
|
||||
* This method indicates whether or not the TLV appears to be well-formed.
|
||||
@@ -1192,7 +1192,7 @@ public:
|
||||
* This method initializes the TLV.
|
||||
*
|
||||
*/
|
||||
void Init(void) { SetType(kPendingTimestamp); SetLength(sizeof(*this) - sizeof(Tlv)); }
|
||||
void Init(void) { SetType(kPendingTimestamp); SetLength(sizeof(*this) - sizeof(Tlv)); Timestamp::Init(); }
|
||||
|
||||
/**
|
||||
* This method indicates whether or not the TLV appears to be well-formed.
|
||||
|
||||
@@ -1567,7 +1567,11 @@ public:
|
||||
* This method initializes the TLV.
|
||||
*
|
||||
*/
|
||||
void Init(void) { SetType(Mle::Tlv::kActiveTimestamp); SetLength(sizeof(*this) - sizeof(Tlv)); }
|
||||
void Init(void) {
|
||||
SetType(Mle::Tlv::kActiveTimestamp);
|
||||
SetLength(sizeof(*this) - sizeof(Tlv));
|
||||
Timestamp::Init();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method indicates whether or not the TLV appears to be well-formed.
|
||||
@@ -1591,7 +1595,11 @@ public:
|
||||
* This method initializes the TLV.
|
||||
*
|
||||
*/
|
||||
void Init(void) { SetType(Mle::Tlv::kPendingTimestamp); SetLength(sizeof(*this) - sizeof(Tlv)); }
|
||||
void Init(void) {
|
||||
SetType(Mle::Tlv::kPendingTimestamp);
|
||||
SetLength(sizeof(*this) - sizeof(Tlv));
|
||||
Timestamp::Init();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method indicates whether or not the TLV appears to be well-formed.
|
||||
|
||||
Reference in New Issue
Block a user