Implement the header for management frames of type probe response. More...
#include "mgt-headers.h"
Public Member Functions | |
~MgtProbeResponseHeader () override=default | |
CapabilityInformation & | Capabilities () |
const CapabilityInformation & | Capabilities () const |
uint64_t | GetBeaconIntervalUs () const |
Return the beacon interval in microseconds unit. More... | |
TypeId | GetInstanceTypeId () const override |
Get the most derived TypeId for this Object. More... | |
uint64_t | GetTimestamp () const |
Return the time stamp. More... | |
void | SetBeaconIntervalUs (uint64_t us) |
Set the beacon interval in microseconds unit. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Register this type. More... | |
Protected Member Functions | |
uint32_t | DeserializeImpl (Buffer::Iterator start) |
uint32_t | GetSerializedSizeImpl () const |
void | SerializeImpl (Buffer::Iterator start) const |
Private Attributes | |
uint64_t | m_beaconInterval |
Beacon interval. More... | |
CapabilityInformation | m_capability |
Capability information. More... | |
uint64_t | m_timestamp |
Timestamp. More... | |
Friends | |
class | WifiMgtHeader< MgtProbeResponseHeader, ProbeResponseElems > |
Implement the header for management frames of type probe response.
Definition at line 450 of file mgt-headers.h.
|
overridedefault |
CapabilityInformation & ns3::MgtProbeResponseHeader::Capabilities | ( | ) |
Definition at line 93 of file mgt-headers.cc.
References m_capability.
Referenced by ns3::StaWifiMac::ReceiveBeacon(), ns3::ApWifiMac::SendOneBeacon(), and ns3::ApWifiMac::SendProbeResp().
const CapabilityInformation & ns3::MgtProbeResponseHeader::Capabilities | ( | ) | const |
Definition at line 87 of file mgt-headers.cc.
References m_capability.
|
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 124 of file mgt-headers.cc.
References ns3::CapabilityInformation::Deserialize(), ns3::Buffer::Iterator::GetDistanceFrom(), m_beaconInterval, m_capability, m_timestamp, ns3::Buffer::Iterator::ReadLsbtohU16(), ns3::Buffer::Iterator::ReadLsbtohU64(), and two-ray-to-three-gpp-ch-calibration::start.
uint64_t ns3::MgtProbeResponseHeader::GetBeaconIntervalUs | ( | ) | const |
Return the beacon interval in microseconds unit.
Definition at line 75 of file mgt-headers.cc.
References m_beaconInterval.
Referenced by ns3::MeshWifiBeacon::GetBeaconInterval(), and ns3::dot11s::PeerManagementProtocolMac::Receive().
|
override |
Get the most derived TypeId for this Object.
This method is typically implemented by ns3::Object::GetInstanceTypeId but some classes which derive from ns3::ObjectBase directly have to implement it themselves.
Definition at line 69 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 105 of file mgt-headers.cc.
References ns3::CapabilityInformation::GetSerializedSize(), and m_capability.
uint64_t ns3::MgtProbeResponseHeader::GetTimestamp | ( | ) | const |
Return the time stamp.
Definition at line 99 of file mgt-headers.cc.
References m_timestamp.
|
static |
Register this type.
Definition at line 59 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 114 of file mgt-headers.cc.
References m_beaconInterval, m_capability, ns3::Simulator::Now(), ns3::CapabilityInformation::Serialize(), two-ray-to-three-gpp-ch-calibration::start, ns3::Buffer::Iterator::WriteHtolsbU16(), and ns3::Buffer::Iterator::WriteHtolsbU64().
void ns3::MgtProbeResponseHeader::SetBeaconIntervalUs | ( | uint64_t | us | ) |
Set the beacon interval in microseconds unit.
us | beacon interval in microseconds unit |
Definition at line 81 of file mgt-headers.cc.
References m_beaconInterval.
Referenced by ns3::MeshWifiBeacon::MeshWifiBeacon(), ns3::ApWifiMac::SendOneBeacon(), and ns3::ApWifiMac::SendProbeResp().
|
friend |
Definition at line 443 of file mgt-headers.h.
|
private |
Beacon interval.
Definition at line 503 of file mgt-headers.h.
Referenced by DeserializeImpl(), GetBeaconIntervalUs(), SerializeImpl(), and SetBeaconIntervalUs().
|
private |
Capability information.
Definition at line 504 of file mgt-headers.h.
Referenced by Capabilities(), DeserializeImpl(), GetSerializedSizeImpl(), and SerializeImpl().
|
private |
Timestamp.
Definition at line 502 of file mgt-headers.h.
Referenced by DeserializeImpl(), and GetTimestamp().