![]() |
0.01.00
|
This class implements ML-EID TLV generation and parsing. More...
#include <src/core/thread/thread_tlvs.hpp>
Public Member Functions | |
void | Init (void) |
This method initializes the TLV. | |
bool | IsValid (void) const |
This method indicates whether or not the TLV appears to be well-formed. More... | |
const uint8_t * | GetIid (void) const |
This method returns a pointer to the ML-EID IID. More... | |
void | SetIid (const uint8_t *aIid) |
This method sets the ML-EID IID. More... | |
void | SetIid (const Mac::ExtAddress &aExtAddress) |
This method sets the ML-EID IID. More... | |
![]() | |
Type | GetType (void) const |
This method returns the Type value. More... | |
void | SetType (Type aType) |
This method sets the Type value. More... | |
![]() | |
Tlv (void) | |
Default constructor. | |
uint8_t | GetType (void) const |
This method returns the Type value. More... | |
void | SetType (uint8_t aType) |
This method sets the Type value. More... | |
uint8_t | GetLength (void) const |
This method returns the Length value. More... | |
void | SetLength (uint8_t aLength) |
This method sets the Length value. More... | |
uint8_t | GetSize (void) const |
This method returns the total size including Type, Length, and Value fields. More... | |
uint8_t * | GetValue (void) |
This method returns a pointer to the Value. More... | |
const uint8_t * | GetValue (void) const |
This method returns a pointer to the Value. More... | |
Tlv * | GetNext (void) |
This method returns a pointer to the next TLV. More... | |
const Tlv * | GetNext (void) const |
This method returns a pointer to the next TLV. More... | |
Additional Inherited Members | |
![]() | |
enum | Type { kTarget = 0, kExtMacAddress = 1, kRloc16 = 2, kMeshLocalEid = 3, kStatus = 4, kLastTransactionTime = 6, kRouterMask = 7, kNDOption = 8, kNDData = 9, kThreadNetworkData = 10 } |
Network Layer TLV Types. More... | |
![]() | |
static otError | GetTlv (const Message &aMessage, Type aType, uint16_t aMaxLength, Tlv &aTlv) |
This static method reads the requested TLV out of aMessage . More... | |
![]() | |
static otError | Get (const Message &aMessage, uint8_t aType, uint16_t aMaxLength, Tlv &aTlv) |
This static method reads the requested TLV out of aMessage . More... | |
static otError | GetOffset (const Message &aMessage, uint8_t aType, uint16_t &aOffset) |
This static method obtains the offset of a TLV within aMessage . More... | |
static otError | GetValueOffset (const Message &aMesasge, uint8_t aType, uint16_t &aOffset, uint16_t &aLength) |
This static method finds the offset and length of a given TLV type. More... | |
![]() | |
enum | { kExtendedLength = 255 } |
Length values. More... | |
This class implements ML-EID TLV generation and parsing.
|
inline |
This method returns a pointer to the ML-EID IID.
|
inline |
This method indicates whether or not the TLV appears to be well-formed.
TRUE | If the TLV appears to be well-formed. |
FALSE | If the TLV does not appear to be well-formed. |
|
inline |
This method sets the ML-EID IID.
[in] | aIid | A pointer to the ML-EID IID. |
|
inline |
This method sets the ML-EID IID.
[in] | aExtAddress | A reference to the MAC Extended Address. |