23 #include "ns3/nstime.h"
24 #include "ns3/address-utils.h"
302 int64_t duration_us =
static_cast<int64_t
> (ceil (
static_cast<double> (duration.
GetNanoSeconds ()) / 1000));
303 NS_ASSERT (duration_us >= 0 && duration_us <= 0x7fff);
304 m_duration =
static_cast<uint16_t
> (duration_us);
939 size = 2 + 2 + 6 + 6 + 6 + 2;
950 size = 2 + 2 + 6 + 6;
957 size = 2 + 2 + 6 + 2 + 4;
962 size = 2 + 2 + 6 + 6 + 6 + 2;
980 case WIFI_MAC_ ## x: \
996 FOO (MGT_ASSOCIATION_REQUEST);
997 FOO (MGT_ASSOCIATION_RESPONSE);
998 FOO (MGT_DISASSOCIATION);
999 FOO (MGT_REASSOCIATION_REQUEST);
1000 FOO (MGT_REASSOCIATION_RESPONSE);
1001 FOO (MGT_PROBE_REQUEST);
1002 FOO (MGT_PROBE_RESPONSE);
1003 FOO (MGT_AUTHENTICATION);
1004 FOO (MGT_DEAUTHENTICATION);
1006 FOO (MGT_ACTION_NO_ACK);
1007 FOO (MGT_MULTIHOP_ACTION);
1012 FOO (DATA_CFACK_CFPOLL);
1014 FOO (DATA_NULL_CFACK);
1015 FOO (DATA_NULL_CFPOLL);
1016 FOO (DATA_NULL_CFACK_CFPOLL);
1018 FOO (QOSDATA_CFACK);
1019 FOO (QOSDATA_CFPOLL);
1020 FOO (QOSDATA_CFACK_CFPOLL);
1022 FOO (QOSDATA_NULL_CFPOLL);
1023 FOO (QOSDATA_NULL_CFACK_CFPOLL);
1039 .SetGroupName (
"Wifi")
1089 <<
", BSSID=" <<
m_addr3 <<
", FragNumber=" << std::hex << (int)
m_seqFrag << std::dec
1097 <<
", FragNumber=" << std::hex << (int)
m_seqFrag << std::dec <<
", SeqNumber=" <<
m_seqSeq;
1102 <<
", FragNumber=" << std::hex << (int)
m_seqFrag << std::dec <<
", SeqNumber=" <<
m_seqSeq;
1127 os <<
", FragNumber=" << std::hex << (int)
m_seqFrag << std::dec
iterator in a Buffer instance
void WriteHtolsbU16(uint16_t data)
uint16_t ReadLsbtohU16(void)
uint32_t GetDistanceFrom(Iterator const &o) const
Simulation virtual time values and global simulation resolution.
int64_t GetNanoSeconds(void) 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.