class ParseInfo

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

Represents parsed information from a transmitted MAC frame.

Public Methods

const TxFrame * GetTxFrame ()

Returns a pointer to the associated `TxFrame`.

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

TxFrame * GetTxFrame ()

Returns a pointer to the associated `TxFrame`.

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

void WriteSequenceNum (uint8_t aSequenceNum)

Writes the Sequence Number value in the frame.

The Address fields MUST be parsed successfully before calling this method. If the Sequence Number is not

present in the frame, this method performs no action.

Parameters

aSequenceNum [in] The Sequence Number value.
void WriteKeyIndex (uint8_t aKeyIndex)

Writes the Key Index (sub-field of Key ID) in the frame.

If the Auxiliary Security Header is not parsed or not present, or if the Key ID Mode is `kKeyIdMode0`, this

method performs no action.

Parameters

aKeyIndex [in] The Key Index.
void WriteFrameCounter (uint32_t aFrameCounter)

Writes the security Frame Counter in the frame.

If the Auxiliary Security Header is not parsed or not present, this method performs no action. Otherwise,

it writes the Frame Counter and marks the frame header as updated (`SetIsHeaderUpdated(true)`).

Parameters

aFrameCounter [in] The Frame Counter.
void WriteKeySource (const uint8_t * aKeySource)

Writes the Key Source in the frame.

If the Auxiliary Security Header is not parsed or not present, or if the Key ID Mode does not require a Key

Source, this method performs no action.

Parameters

aKeySource [in] A pointer to the Key Source value.
void ProcessTransmitAesCcm (const ExtAddress & aExtAddress)

Performs AES-CCM encryption on the frame to be transmitted.

The frame MUST be fully parsed before calling this method. If security is enabled on the frame,

this method encrypts the payload, appends the MIC tag, and marks security as processed

(`SetIsSecurityProcessed(true)`). If security is not enabled, this method performs no action.

Parameters

aExtAddress [in] A reference to the extended address used to generate the AES-CCM nonce.
void RestoreTransmitSecurity (const ExtAddress & aExtAddress)

Restores transmit security by decrypting the frame for retransmission.

The frame MUST be fully parsed before calling this method. If security is enabled and was previously

processed, this method decrypts the frame in-place using AES-CCM and resets both the security-processed

and header-updated flags (`SetIsSecurityProcessed(false)` and `SetIsHeaderUpdated(false)`).

Parameters

aExtAddress [in] A reference to the extended address used to generate the AES-CCM nonce.

Friends

class TxFrameProperties