class ParseInfo

Defined at line 183 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

Represents parsed information from a MAC frame header.

Public Members

const Frame * mFrame
bool mParsedAddrFields
bool mParsedSecurityHeader
bool mParsedFully
bool mIsSecurityEnabled
bool mIsFramePending
bool mIsAckRequest
bool mIsSeqNumPresent
bool mIsIePresent
Type mType
Version mVersion
uint8_t mSequenceNum
PanIds mPanIds
Addresses mAddrs
SecurityLevel mSecurityLevel
KeyIdMode mKeyIdMode
uint8_t mKeyIndex
uint8_t mMicSize
uint32_t mFrameCounter
FrameData mKeySource
FrameData mIeData
uint8_t mCommandId
FrameData mPayload

Protected Members

uint8_t * mKeyIndexByte
uint8_t * mFrameCounterBytes

Public Methods

template <typename IeType>
const IeType * Find ()

Finds a specific Information Element (IE) in the frame.

This method searches the frame for a Header IE matching the Element ID of

and also validates that

the content of the IE is well-formed according to

Template Parameters

IeType The IE subclass type to find.

Defined at line 224 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

template <typename IeType>
IeType * Find ()

Finds a specific Information Element (IE) in the frame.

This method searches the frame for a Header IE matching the Element ID of

and also validates that

the content of the IE is well-formed according to

Template Parameters

IeType The IE subclass type to find.

Defined at line 239 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

template <typename IeType>
bool Has ()

Indicates whether or not the frame contains a specific Information Element (IE).

This method checks whether the frame contains a Header IE matching the Element ID of

with valid

content according to

Template Parameters

IeType The IE subclass type to check.

Defined at line 252 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

Error ParseFrom (const Frame & aFrame, ParseMode aMode)

Parses the MAC frame header according to the specified parsing mode.

Parameters

aFrame [in] The frame to parse from.
aMode [in] The parsing mode.
void ParseInfo ()

Initializes the `ParseInfo` object.

Defined at line 191 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

InfoString ToInfoString ()

Returns human-readable string corresponding to the frame information.

Protected Methods

const Frame & GetFrame ()

Defined at line 318 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

Error PerformAesCcm (AesCcmOperation aOperation, const ExtAddress & aExtAddress, const KeyMaterial & aMacKey)

Enumerations

enum AesCcmOperation : uint8_t
Name Value
kEncrypt 0
kDecrypt 1

Defined at line 311 of file ../../third_party/openthread/src/core/mac/mac_frame.hpp

Friends

class FrameProperties