26#include "ns3/multi-link-element.h"
27#include "ns3/packet.h"
63 m_actionValue =
static_cast<uint8_t
>(action.radioMeasurementAction);
75 m_actionValue =
static_cast<uint8_t
>(action.selfProtectedAction);
87 m_actionValue =
static_cast<uint8_t
>(action.unprotectedDmgAction);
91 m_actionValue =
static_cast<uint8_t
>(action.protectedEhtAction);
489 .SetGroupName(
"Wifi")
500std::pair<WifiActionHeader::CategoryValue, WifiActionHeader::ActionValue>
504 pkt->PeekHeader(actionHdr);
508std::pair<WifiActionHeader::CategoryValue, WifiActionHeader::ActionValue>
512 pkt->RemoveHeader(actionHdr);
519#define CASE_ACTION_VALUE(x) \
561 os <<
"RADIO_MEASUREMENT[";
604 os <<
"SELF_PROTECTED[";
661 os <<
"UNPROTECTED_DMG[";
675 os <<
"PROTECTED_EHT[";
693 os <<
"VENDOR_SPECIFIC_ACTION";
698#undef CASE_ACTION_VALUE
732 static TypeId tid =
TypeId(
"ns3::MgtAddBaRequestHeader")
734 .SetGroupName(
"Wifi")
909 m_tid = (params >> 2) & 0x0f;
922 static TypeId tid =
TypeId(
"ns3::MgtAddBaResponseHeader")
924 .SetGroupName(
"Wifi")
938 os <<
"status code=" <<
m_code;
1088 m_tid = (params >> 2) & 0x0f;
1103 .SetGroupName(
"Wifi")
1155 auto tid =
static_cast<uint8_t
>(
m_tid);
1175 m_tid =
static_cast<uint16_t
>(tid);
1191 m_tid = (params >> 12) & 0x0f;
1203 static TypeId tid =
TypeId(
"ns3::MgtEmlOperatingModeNotification")
1205 .SetGroupName(
"Wifi")
1227 os <<
" EMLSR Padding Delay="
1230 <<
" EMLSR Transition Delay="
1262 "EMLSR Mode and EMLMR Mode cannot be both set to 1");
1269 "The EMLSR/EMLMR Link Bitmap is present if and only if either of the EMLSR "
1270 "Mode and EMLMR Mode subfields are set to 1");
1279 "The EMLSR Parameter Update field is present "
1281 <<
" if and only if the EMLSR "
1282 "Parameter Update Control subfield is set to 1 "
1298 uint8_t val = i.
ReadU8();
1304 "EMLSR Mode and EMLMR Mode cannot be both set to 1");
1338 std::list<uint8_t>
list;
1341 for (uint8_t linkId = 0; linkId < 16; linkId++)
1343 if ((bitmap & 0x0001) == 1)
1345 list.push_back(linkId);
The IEEE 802.11 ADDBA Extension Element (Sec.
ExtParamSet m_extParamSet
ADDBA Extended Parameter Set field.
iterator in a Buffer instance
void WriteHtolsbU16(uint16_t data)
void WriteU8(uint8_t data)
uint32_t GetDistanceFrom(const Iterator &o) const
Implement the header for Action frames of type EML Operating Mode Notification.
void Serialize(Buffer::Iterator start) const override
uint32_t GetSerializedSize() const override
void SetLinkIdInBitmap(uint8_t linkId)
Set the bit position in the link bitmap corresponding to the given link.
EmlControl m_emlControl
EML Control field.
uint32_t Deserialize(Buffer::Iterator start) override
void Print(std::ostream &os) const override
std::optional< EmlsrParamUpdate > m_emlsrParamUpdate
EMLSR Parameter Update field.
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
uint8_t m_dialogToken
Dialog Token.
std::list< uint8_t > GetLinkBitmap() const
static TypeId GetTypeId()
Register this type.
Smart pointer class similar to boost::intrusive_ptr.
Status code for association response.
Buffer::Iterator Serialize(Buffer::Iterator start) const
Buffer::Iterator Deserialize(Buffer::Iterator start)
uint32_t GetSerializedSize() const
TimeWithUnit As(const Unit unit=Time::AUTO) const
Attach a unit to a Time, to facilitate output in a specific unit.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
#define NS_ABORT_MSG_IF(cond, msg)
Abnormal program termination if a condition is true, with a message.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint8_t extBufferSize
extended buffer size
static Time DecodeEmlsrTransitionDelay(uint8_t value)
static Time DecodeEmlsrPaddingDelay(uint8_t value)
std::optional< uint8_t > mcsMapCountCtrl
MCS Map Count Control.
uint8_t emlsrMode
EMLSR Mode.
uint8_t emlsrParamUpdateCtrl
EMLSR Parameter Update Control.
uint8_t emlmrMode
EMLMR Mode.
std::optional< uint16_t > linkBitmap
EMLSR/EMLMR Link Bitmap.
EMLSR Parameter Update field.