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;
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.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
uint16_t GetSerializedSize() const override
Get the size of the serialized IE including Element ID and length fields.
void ReadFrom(Buffer::Iterator &i, Ipv4Address &ad)
Read an Ipv4Address from a Buffer.
Buffer::Iterator Serialize(Buffer::Iterator start) const override
Serialize entire IE including Element ID and length fields.
The Extended Capabilities Information ElementThis class knows how to serialise and deserialise the Ex...
The VHT Operation Information ElementThis class knows how to serialise and deserialise the VHT Operat...
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
void WriteTo(Buffer::Iterator &i, Ipv4Address ad)
Write an Ipv4Address to a Buffer.
The HT Capabilities Information ElementThis class knows how to serialise and deserialise the HT Capab...
uint32_t GetSerializedSize(void) const
The HT Operation Information ElementThis class knows how to serialise and deserialise the HT Operatio...
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
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.
uint16_t GetSerializedSize() const override
Get the size of the serialized IE including Element ID and length fields.
The Supported Rates Information ElementThis class knows how to serialise and deserialise the Supporte...
uint16_t GetSerializedSize() const override
Get the size of the serialized IE including Element ID and length fields.
iterator in a Buffer instance
Buffer::Iterator Serialize(Buffer::Iterator start) const
uint32_t GetDistanceFrom(Iterator const &o) const
ExtendedSupportedRatesIE extended
extended supported rates info 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.
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 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.
Status code for association response.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
The EDCA Parameter SetThis class knows how to serialise and deserialise the EDCA Parameter Set...
Buffer::Iterator Deserialize(Buffer::Iterator start)
static Time Now(void)
Return the current simulation virtual time.
uint16_t GetSerializedSize() const override
Get the size of the serialized IE including Element ID and length fields.
The IEEE 802.11 SSID Information Element.
void WriteHtolsbU16(uint16_t data)
uint16_t GetSerializedSize() const override
Get the size of the serialized IE including Element ID and length fields.
The DSSS Parameter SetThis class knows how to serialise and deserialise the DSSS Parameter Set...
Buffer::Iterator Serialize(Buffer::Iterator start) const override
Serialize entire IE including Element ID and length fields.
void WriteU8(uint8_t data)
void WriteHtolsbU64(uint64_t data)
Buffer::Iterator Serialize(Buffer::Iterator start) const override
Serialize entire 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 ReadLsbtohU16(void)
The HE Operation Information ElementThis class knows how to serialise and deserialise the HE Operatio...
uint64_t ReadLsbtohU64(void)
The IEEE 802.11ax HE Capabilities.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Buffer::Iterator Serialize(Buffer::Iterator start) const override
Serialize entire IE including Element ID and length fields.