Skip to content

Commit

Permalink
[mac-frame] enhance comments regarding PAN ID compression behavior (o…
Browse files Browse the repository at this point in the history
…penthread#10914)

This commit adds an additional note next to the table from the
specification text regarding valid combinations of flags within an
encoded MAC header and the interpretation of the "PAN ID Compression"
flag.
  • Loading branch information
abtink authored Nov 13, 2024
1 parent 79572ec commit 50785a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/mac/mac_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ void TxFrame::Info::PrepareHeadersIn(TxFrame &aTxFrame) const
// | 13 | Extended | Short | Present | Not Present | 1 |
// | 14 | Short | Short | Present | Not Present | 1 |
// +----+--------------+--------------+--------------+--------------+--------------+
//
// This table shows the combination of flags allowed in an encoded MAC
// header. Regarding rows 9-14, when both Source and Destination
// Address fields are present and at least one uses a short address
// format, then if the source and destination PAN IDs are equal, PAN
// ID compression is set to 1.

if (mAddrs.mDestination.IsNone())
{
Expand Down

0 comments on commit 50785a0

Please sign in to comment.