23 #include "ns3/simulator.h"
24 #include "ns3/address-utils.h"
128 static TypeId tid =
TypeId (
"ns3::MgtProbeRequestHeader")
130 .SetGroupName (
"Wifi")
145 os <<
"ssid=" <<
m_ssid <<
", "
372 static TypeId tid =
TypeId (
"ns3::MgtProbeResponseHeader")
374 .SetGroupName (
"Wifi")
412 os <<
"ssid=" <<
m_ssid <<
", "
492 .SetGroupName (
"Wifi")
506 : m_listenInterval (0)
613 static TypeId tid =
TypeId (
"ns3::MgtAssocRequestHeader")
615 .SetGroupName (
"Wifi")
646 os <<
"ssid=" <<
m_ssid <<
", "
806 static TypeId tid =
TypeId (
"ns3::MgtReassocRequestHeader")
808 .SetGroupName (
"Wifi")
841 <<
"ssid=" <<
m_ssid <<
", "
1057 static TypeId tid =
TypeId (
"ns3::MgtAssocResponseHeader")
1059 .SetGroupName (
"Wifi")
1095 os <<
"status code=" <<
m_code <<
", "
1096 <<
"aid=" <<
m_aid <<
", "
1097 <<
"rates=" <<
m_rates <<
", "
1330 .SetGroupName (
"Wifi")
1349 else if (value ==
MESH)
1355 return "SelfProtected";
1359 return "VendorSpecificAction";
1363 std::ostringstream convert;
1365 return convert.str ();
1373 return "PeerLinkOpen";
1377 return "PeerLinkConfirm";
1381 return "PeerLinkClose";
1385 return "GroupKeyInform";
1389 return "GroupKeyAck";
1393 std::ostringstream convert;
1395 return convert.str ();
1436 : m_dialogToken (1),
1445 static TypeId tid =
TypeId (
"ns3::MgtAddBaRequestHeader")
1447 .SetGroupName (
"Wifi")
1554 return (
m_policy == 1) ? true :
false;
1603 m_tid = (params >> 2) & 0x0f;
1615 : m_dialogToken (1),
1624 static TypeId tid =
TypeId (
"ns3::MgtAddBaResponseHeader")
1626 .SetGroupName (
"Wifi")
1641 os <<
"status code=" <<
m_code;
1734 return (
m_policy == 1) ? true :
false;
1771 m_tid = (params >> 2) & 0x0f;
1792 .SetGroupName (
"Wifi")
1845 uint8_t tid =
static_cast<uint8_t
> (
m_tid);
1865 m_tid =
static_cast<uint16_t
> (tid);
1881 m_tid = (params >> 12) & 0x0f;
iterator in a Buffer instance
void WriteHtolsbU16(uint16_t data)
void WriteU8(uint8_t data)
void WriteHtolsbU64(uint64_t data)
uint16_t ReadLsbtohU16(void)
uint64_t ReadLsbtohU64(void)
uint32_t GetDistanceFrom(Iterator const &o) const
Buffer::Iterator Serialize(Buffer::Iterator start) const override
Serialize entire IE including Element ID and length fields.
uint16_t GetSerializedSize() const override
Get the size of the serialized IE including Element ID and length fields.
Buffer::Iterator Serialize(Buffer::Iterator start) const override
Serialize entire IE including Element ID and length fields.
uint16_t GetSerializedSize() const override
Get the size of the serialized IE including Element ID and length fields.
The Extended Capabilities Information Element.
uint16_t GetSerializedSize() const override
Get the size of the serialized IE including Element ID and length fields.
Buffer::Iterator Serialize(Buffer::Iterator start) const override
Serialize entire IE including Element ID and length fields.
uint16_t GetSerializedSize() const override
Get the size of the serialized IE including Element ID and length fields.
Buffer::Iterator Serialize(Buffer::Iterator start) const override
Serialize entire IE including Element ID and length fields.
The IEEE 802.11ax HE Capabilities.
Buffer::Iterator Serialize(Buffer::Iterator start) const override
Serialize entire IE including Element ID and length fields.
uint16_t GetSerializedSize() const override
Get the size of the serialized IE including Element ID and length fields.
The HE Operation Information Element.
Buffer::Iterator Serialize(Buffer::Iterator start) const override
Serialize entire IE including Element ID and length fields.
uint16_t GetSerializedSize() const override
Get the size of the serialized IE including Element ID and length fields.
The HT Capabilities Information Element.
Buffer::Iterator Serialize(Buffer::Iterator start) const override
Serialize entire IE including Element ID and length fields.
uint16_t GetSerializedSize() const override
Get the size of the serialized IE including Element ID and length fields.
The HT Operation Information Element.
Buffer::Iterator Serialize(Buffer::Iterator start) const override
Serialize entire IE including Element ID and length fields.
uint16_t GetSerializedSize() const override
Get the size of the serialized IE including Element ID and length fields.
static Time Now(void)
Return the current simulation virtual time.
The IEEE 802.11 SSID Information Element.
Status code for association response.
Buffer::Iterator Serialize(Buffer::Iterator start) const
Buffer::Iterator Deserialize(Buffer::Iterator start)
uint32_t GetSerializedSize(void) const
The Supported Rates Information Element.
ExtendedSupportedRatesIE extended
extended supported rates info element
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
The IEEE 802.11ac VHT Capabilities.
uint16_t GetSerializedSize() const override
Get the size of the serialized IE including Element ID and length fields.
Buffer::Iterator Serialize(Buffer::Iterator start) const override
Serialize entire IE including Element ID and length fields.
The VHT Operation Information Element.
uint16_t GetSerializedSize() const override
Get the size of the serialized IE including Element ID and length fields.
Buffer::Iterator Serialize(Buffer::Iterator start) const override
Serialize entire IE including Element ID and length fields.
#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_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.
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.