13#include "ns3/address-utils.h"
14#include "ns3/nstime.h"
281 static_cast<int64_t
>(ceil(
static_cast<double>(duration.
GetNanoSeconds()) / 1000));
282 NS_ASSERT(duration_us >= 0 && duration_us <= 0x7fff);
283 m_duration =
static_cast<uint16_t
>(duration_us);
975 size = 2 + 2 + 6 + 6 + 6 + 2;
987 size = 2 + 2 + 6 + 6;
994 size = 2 + 2 + 6 + 2 + 4;
999 size = 2 + 2 + 6 + 6 + 6 + 2;
1016#define CASE_WIFI_MAC_TYPE(x) \
1017 case WIFI_MAC_##x: \
1064#undef CASE_WIFI_MAC_TYPE
1076 .SetGroupName(
"Wifi")
1090 os <<
"ToDS=" << std::hex << static_cast<int>(
m_ctrlToDs)
1095 <<
", MoreData=" <<
static_cast<int>(
m_ctrlMoreData) << std::dec;
1105 os <<
"Duration/ID=" << std::hex <<
m_duration << std::dec <<
", BSSID(RA)=" <<
m_addr1
1133 <<
", FragNumber=" << std::hex << (int)
m_seqFrag << std::dec
1139 <<
", FragNumber=" << std::hex << (int)
m_seqFrag << std::dec
1166 os <<
", FragNumber=" << std::hex << (int)
m_seqFrag << std::dec
1177 os <<
", ack=NoAck";
1181 os <<
", ack=NormalAck";
1185 os <<
", ack=BlockAck";
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.
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.
@ SUBTYPE_CTL_NDPANNOUNCE
@ SUBTYPE_CTL_BEAMFORMINGRPOLL
@ SUBTYPE_CTL_CTLFRAMEEXT
void ReadFrom(Buffer::Iterator &i, Ipv4Address &ad)
Read an Ipv4Address from a Buffer.