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
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
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
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
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
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
Friends
class TxFrameProperties