Capability information. More...
#include <capability-information.h>
Public Member Functions | |
CapabilityInformation () | |
Buffer::Iterator | Deserialize (Buffer::Iterator start) |
Deserialize capability information from the given buffer. More... | |
uint32_t | GetSerializedSize (void) const |
Return the serialized size of capability information. More... | |
bool | IsEss (void) const |
Check if the Extended Service Set (ESS) bit in the capability information field is set to 1. More... | |
bool | IsIbss (void) const |
Check if the Independent BSS (IBSS) bit in the capability information field is set to 1. More... | |
Buffer::Iterator | Serialize (Buffer::Iterator start) const |
Serialize capability information to the given buffer. More... | |
void | SetEss (void) |
Set the Extended Service Set (ESS) bit in the capability information field. More... | |
void | SetIbss (void) |
Set the Independent BSS (IBSS) bit in the capability information field. More... | |
Private Member Functions | |
void | Clear (uint8_t n) |
Set bit n to 0. More... | |
bool | Is (uint8_t n) const |
Check if bit n is set to 1. More... | |
void | Set (uint8_t n) |
Set bit n to 1. More... | |
Private Attributes | |
uint16_t | m_capability |
Capability information.
Definition at line 33 of file capability-information.h.
ns3::CapabilityInformation::CapabilityInformation | ( | ) |
Definition at line 27 of file capability-information.cc.
References NS_LOG_FUNCTION.
|
private |
Set bit n to 0.
n | the bit position |
Definition at line 70 of file capability-information.cc.
References m_capability, and NS_LOG_FUNCTION.
Referenced by SetEss(), and SetIbss().
Buffer::Iterator ns3::CapabilityInformation::Deserialize | ( | Buffer::Iterator | start | ) |
Deserialize capability information from the given buffer.
start | an iterator to a buffer |
Definition at line 100 of file capability-information.cc.
References m_capability, NS_LOG_FUNCTION, ns3::Buffer::Iterator::ReadLsbtohU16(), and visualizer.core::start().
Referenced by ns3::MgtAssocRequestHeader::Deserialize(), ns3::MgtAssocResponseHeader::Deserialize(), and ns3::MgtProbeResponseHeader::Deserialize().
uint32_t ns3::CapabilityInformation::GetSerializedSize | ( | void | ) | const |
Return the serialized size of capability information.
Definition at line 87 of file capability-information.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::MgtAssocRequestHeader::GetSerializedSize(), ns3::MgtAssocResponseHeader::GetSerializedSize(), and ns3::MgtProbeResponseHeader::GetSerializedSize().
|
private |
Check if bit n is set to 1.
n | the bit position |
Definition at line 78 of file capability-information.cc.
References m_capability, and NS_LOG_FUNCTION.
Referenced by IsEss(), and IsIbss().
bool ns3::CapabilityInformation::IsEss | ( | void | ) | const |
Check if the Extended Service Set (ESS) bit in the capability information field is set to 1.
Definition at line 49 of file capability-information.cc.
References Is(), and NS_LOG_FUNCTION.
bool ns3::CapabilityInformation::IsIbss | ( | void | ) | const |
Check if the Independent BSS (IBSS) bit in the capability information field is set to 1.
Definition at line 55 of file capability-information.cc.
References Is(), and NS_LOG_FUNCTION.
Buffer::Iterator ns3::CapabilityInformation::Serialize | ( | Buffer::Iterator | start | ) | const |
Serialize capability information to the given buffer.
start | an iterator to a buffer |
Definition at line 93 of file capability-information.cc.
References m_capability, NS_LOG_FUNCTION, visualizer.core::start(), and ns3::Buffer::Iterator::WriteHtolsbU16().
Referenced by ns3::MgtAssocRequestHeader::Serialize(), ns3::MgtAssocResponseHeader::Serialize(), and ns3::MgtProbeResponseHeader::Serialize().
|
private |
Set bit n to 1.
n | the bit position |
Definition at line 62 of file capability-information.cc.
References m_capability, and NS_LOG_FUNCTION.
Referenced by SetEss(), and SetIbss().
void ns3::CapabilityInformation::SetEss | ( | void | ) |
Set the Extended Service Set (ESS) bit in the capability information field.
Definition at line 34 of file capability-information.cc.
References Clear(), NS_LOG_FUNCTION, and Set().
void ns3::CapabilityInformation::SetIbss | ( | void | ) |
Set the Independent BSS (IBSS) bit in the capability information field.
Definition at line 41 of file capability-information.cc.
References Clear(), NS_LOG_FUNCTION, and Set().
|
private |
Definition at line 110 of file capability-information.h.
Referenced by Clear(), Deserialize(), Is(), Serialize(), and Set().