24 #include "ns3/address-utils.h"
25 #include "ns3/nstime.h"
63 m_ctrlPowerManagement(0),
312 static_cast<int64_t
>(ceil(
static_cast<double>(duration.
GetNanoSeconds()) / 1000));
313 NS_ASSERT(duration_us >= 0 && duration_us <= 0x7fff);
314 m_duration =
static_cast<uint16_t
>(duration_us);
1006 size = 2 + 2 + 6 + 6 + 6 + 2;
1018 size = 2 + 2 + 6 + 6;
1025 size = 2 + 2 + 6 + 2 + 4;
1030 size = 2 + 2 + 6 + 6 + 6 + 2;
1047 #define CASE_WIFI_MAC_TYPE(x) \
1048 case WIFI_MAC_##x: \
1095 #undef CASE_WIFI_MAC_TYPE
1107 .SetGroupName(
"Wifi")
1121 os <<
"ToDS=" << std::hex << static_cast<int>(
m_ctrlToDs)
1126 <<
", MoreData=" <<
static_cast<int>(
m_ctrlMoreData) << std::dec;
1136 os <<
"Duration/ID=" << std::hex <<
m_duration << std::dec <<
", BSSID(RA)=" <<
m_addr1
1162 <<
", FragNumber=" << std::hex << (int)
m_seqFrag << std::dec
1170 <<
", FragNumber=" << std::hex << (int)
m_seqFrag << std::dec
1176 <<
", FragNumber=" << std::hex << (int)
m_seqFrag << std::dec
1203 os <<
", FragNumber=" << std::hex << (int)
m_seqFrag << std::dec
iterator in a Buffer instance
void WriteHtolsbU16(uint16_t data)
uint32_t GetDistanceFrom(const Iterator &o) const
Simulation virtual time values and global simulation resolution.
int64_t GetNanoSeconds() const
Get an approximation of the time stored in this instance in the indicated 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_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
#define NS_ABORT_MSG(msg)
Unconditional abnormal program termination with a message.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Time MicroSeconds(uint64_t value)
Construct a Time in the indicated unit.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
@ SUBTYPE_CTL_NDPANNOUNCE
@ SUBTYPE_CTL_BEAMFORMINGRPOLL
@ SUBTYPE_CTL_CTLFRAMEEXT
WifiMacType
Combination of valid MAC header type/subtype.
@ WIFI_MAC_QOSDATA_NULL_CFACK_CFPOLL
@ WIFI_MAC_MGT_PROBE_REQUEST
@ WIFI_MAC_MGT_AUTHENTICATION
@ WIFI_MAC_MGT_MULTIHOP_ACTION
@ WIFI_MAC_CTL_CTLWRAPPER
@ WIFI_MAC_QOSDATA_CFACK_CFPOLL
@ WIFI_MAC_MGT_ASSOCIATION_RESPONSE
@ WIFI_MAC_MGT_DISASSOCIATION
@ WIFI_MAC_QOSDATA_NULL_CFPOLL
@ WIFI_MAC_MGT_ASSOCIATION_REQUEST
@ WIFI_MAC_DATA_NULL_CFACK_CFPOLL
@ WIFI_MAC_MGT_REASSOCIATION_REQUEST
@ WIFI_MAC_DATA_CFACK_CFPOLL
@ WIFI_MAC_DATA_NULL_CFACK
@ WIFI_MAC_MGT_ACTION_NO_ACK
@ WIFI_MAC_MGT_DEAUTHENTICATION
@ WIFI_MAC_DATA_NULL_CFPOLL
@ WIFI_MAC_MGT_PROBE_RESPONSE
@ WIFI_MAC_QOSDATA_CFPOLL
@ WIFI_MAC_MGT_REASSOCIATION_RESPONSE
void WriteTo(Buffer::Iterator &i, Ipv4Address ad)
Write an Ipv4Address to a Buffer.
void ReadFrom(Buffer::Iterator &i, Ipv4Address &ad)
Read an Ipv4Address from a Buffer.