![]() |
0.01.00
|
This class implements MLE Header generation and parsing. More...
#include <src/core/thread/mle.hpp>
Public Types | |
| enum | SecuritySuite { k154Security = 0, kNoSecurity = 255 } |
| enum | Command { kCommandLinkRequest = 0, kCommandLinkAccept = 1, kCommandLinkAcceptAndRequest = 2, kCommandLinkReject = 3, kCommandAdvertisement = 4, kCommandUpdate = 5, kCommandUpdateRequest = 6, kCommandDataRequest = 7, kCommandDataResponse = 8, kCommandParentRequest = 9, kCommandParentResponse = 10, kCommandChildIdRequest = 11, kCommandChildIdResponse = 12, kCommandChildUpdateRequest = 13, kCommandChildUpdateResponse = 14, kCommandAnnounce = 15, kCommandDiscoveryRequest = 16, kCommandDiscoveryResponse = 17, kCommandTimeSync = 99 } |
| MLE Command Types. More... | |
Public Member Functions | |
| void | Init (void) |
| This method initializes the MLE header. | |
| bool | IsValid (void) const |
| This method indicates whether or not the TLV appears to be well-formed. More... | |
| uint8_t | GetLength (void) const |
| This method returns the MLE header and Command Type length. More... | |
| SecuritySuite | GetSecuritySuite (void) const |
| This method returns the Security Suite value. More... | |
| void | SetSecuritySuite (SecuritySuite aSecuritySuite) |
| This method sets the Security Suite value. More... | |
| uint8_t | GetHeaderLength (void) const |
| This method returns the MLE header length (excluding the Command Type). More... | |
| const uint8_t * | GetBytes (void) const |
| This method returns a pointer to first byte of the MLE header. More... | |
| uint8_t | GetSecurityControl (void) const |
| This method returns the Security Control value. More... | |
| bool | IsKeyIdMode2 (void) const |
| This method indicates whether or not the Key ID Mode is set to 2. More... | |
| void | SetKeyIdMode2 (void) |
| This method sets the Key ID Mode to 2. | |
| uint32_t | GetKeyId (void) const |
| This method returns the Key ID value. More... | |
| void | SetKeyId (uint32_t aKeySequence) |
| This method sets the Key ID value. More... | |
| uint32_t | GetFrameCounter (void) const |
| This method returns the Frame Counter value. More... | |
| void | SetFrameCounter (uint32_t aFrameCounter) |
| This method sets the Frame Counter value. More... | |
| Command | GetCommand (void) const |
| This method returns the Command Type value. More... | |
| void | SetCommand (Command aCommand) |
| This method sets the Command Type value. More... | |
This class implements MLE Header generation and parsing.