Implement the header for management frames of type probe response. More...
#include "mgt-headers.h"
Public Member Functions | |
| ~MgtProbeResponseHeader () override=default | |
| TypeId | GetInstanceTypeId () const override |
| Get the most derived TypeId for this Object. | |
| uint64_t | GetTimestamp () const |
| Return the time stamp. | |
Static Public Member Functions | |
| static TypeId | GetTypeId () |
| Register this type. | |
Public Attributes | |
| uint64_t | m_beaconInterval |
| Beacon interval. | |
| CapabilityInformation | m_capability |
| Capability information. | |
Protected Member Functions | |
| uint32_t | DeserializeFromPerStaProfileImpl (Buffer::Iterator start, uint16_t length, const MgtProbeResponseHeader &frame) |
| Deserialize this header from a Per-STA Profile subelement of a Multi-Link Element. | |
| uint32_t | DeserializeImpl (Buffer::Iterator start) |
| uint32_t | GetSerializedSizeImpl () const |
| uint32_t | GetSerializedSizeInPerStaProfileImpl (const MgtProbeResponseHeader &frame) const |
| void | SerializeImpl (Buffer::Iterator start) const |
| void | SerializeInPerStaProfileImpl (Buffer::Iterator start, const MgtProbeResponseHeader &frame) const |
| Serialize this header into a Per-STA Profile subelement of a Multi-Link Element. | |
Private Attributes | |
| uint64_t | m_timestamp |
| Timestamp (microseconds). | |
Friends | |
| class | MgtHeaderInPerStaProfile< MgtProbeResponseHeader, ProbeResponseElems > |
| class | WifiMgtHeader< MgtProbeResponseHeader, ProbeResponseElems > |
Implement the header for management frames of type probe response.
Introspection did not find any typical Config paths
No Attributes are defined for this type
No TraceSources are defined for this type
Group: Wifi
Size of this type is 1688 bytes (on a 64-bit architecture).
Definition at line 392 of file mgt-headers.h.
|
overridedefault |
|
protected |
Deserialize this header from a Per-STA Profile subelement of a Multi-Link Element.
| start | an iterator which points to where the header should be read from |
| length | the expected number of bytes to read |
| frame | the frame containing the Multi-Link Element |
Definition at line 308 of file mgt-headers.cc.
References GetTimestamp(), m_beaconInterval, m_capability, m_timestamp, and NS_ASSERT_MSG.
|
protected |
| start | an iterator which points to where the header should read from. |
This method is used by Packet::RemoveHeader to re-create a header from the byte buffer of a packet. The data read is expected to match bit-for-bit the representation of this header in real networks.
Note that data is not actually removed from the buffer to which the iterator points. Both Packet::RemoveHeader() and Packet::PeekHeader() call Deserialize(), but only the RemoveHeader() has additional statements to remove the header bytes from the underlying buffer and associated metadata.
Definition at line 93 of file mgt-headers.cc.
References ns3::Buffer::Iterator::GetDistanceFrom(), m_beaconInterval, m_capability, m_timestamp, ns3::Buffer::Iterator::ReadU16(), and ns3::Buffer::Iterator::ReadU64().
|
override |
Get the most derived TypeId for this Object.
This method is provided by ns3::Object::GetInstanceTypeId but classes which derive from ns3::ObjectBase directly have to implement it themselves. Typically, this method should simply return the output of GetTypeId().
Definition at line 58 of file mgt-headers.cc.
References GetTypeId().
|
protected |
This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. This method should return the number of bytes which are needed to store the full header data by Serialize.
Definition at line 70 of file mgt-headers.cc.
References m_capability.
|
protected |
| frame | the frame containing the Multi-Link Element |
Definition at line 286 of file mgt-headers.cc.
References GetSerializedSizeInPerStaProfileImpl(), and m_capability.
Referenced by GetSerializedSizeInPerStaProfileImpl().
| uint64_t ns3::MgtProbeResponseHeader::GetTimestamp | ( | ) | const |
Return the time stamp.
Definition at line 64 of file mgt-headers.cc.
References m_timestamp.
Referenced by DeserializeFromPerStaProfileImpl().
|
static |
Register this type.
Definition at line 48 of file mgt-headers.cc.
References ns3::TypeId::SetParent().
Referenced by GetInstanceTypeId().
|
protected |
| start | an iterator which points to where the header should be written. |
This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. The data written is expected to match bit-for-bit the representation of this header in a real network.
Definition at line 81 of file mgt-headers.cc.
References m_beaconInterval, m_capability, ns3::Simulator::Now(), ns3::Buffer::Iterator::WriteU16(), and ns3::Buffer::Iterator::WriteU64().
|
protected |
Serialize this header into a Per-STA Profile subelement of a Multi-Link Element.
| start | an iterator which points to where the header should be written |
| frame | the frame containing the Multi-Link Element |
Definition at line 298 of file mgt-headers.cc.
References m_capability, and SerializeInPerStaProfileImpl().
Referenced by SerializeInPerStaProfileImpl().
|
friend |
Definition at line 385 of file mgt-headers.h.
|
friend |
Definition at line 385 of file mgt-headers.h.
| uint64_t ns3::MgtProbeResponseHeader::m_beaconInterval |
Beacon interval.
Definition at line 417 of file mgt-headers.h.
Referenced by DeserializeFromPerStaProfileImpl(), DeserializeImpl(), ns3::ApWifiMac::GetProbeRespProfile(), and SerializeImpl().
| CapabilityInformation ns3::MgtProbeResponseHeader::m_capability |
Capability information.
Definition at line 418 of file mgt-headers.h.
Referenced by DeserializeFromPerStaProfileImpl(), DeserializeImpl(), ns3::ApWifiMac::GetProbeRespProfile(), GetSerializedSizeImpl(), GetSerializedSizeInPerStaProfileImpl(), SerializeImpl(), and SerializeInPerStaProfileImpl().
|
private |
Timestamp (microseconds).
Definition at line 457 of file mgt-headers.h.
Referenced by DeserializeFromPerStaProfileImpl(), DeserializeImpl(), and GetTimestamp().