A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::CapabilityInformation Class Reference

Capability information. More...

#include "capability-information.h"

+ Collaboration diagram for ns3::CapabilityInformation:

Public Member Functions

 CapabilityInformation ()
 
Buffer::Iterator Deserialize (Buffer::Iterator start)
 Deserialize capability information from the given buffer.
 
uint32_t GetSerializedSize () const
 Return the serialized size of capability information.
 
bool IsCfPollable () const
 Check if the CF-Pollable bit in the capability information field is set to 1.
 
bool IsEss () const
 Check if the Extended Service Set (ESS) bit in the capability information field is set to 1.
 
bool IsIbss () const
 Check if the Independent BSS (IBSS) bit in the capability information field is set to 1.
 
bool IsShortPreamble () const
 Check if the short preamble bit in the capability information field is set to 1.
 
bool IsShortSlotTime () const
 Check if the short slot time in the capability information field is set to 1.
 
Buffer::Iterator Serialize (Buffer::Iterator start) const
 Serialize capability information to the given buffer.
 
void SetCfPollable ()
 Set the CF-Pollable bit in the capability information field.
 
void SetEss ()
 Set the Extended Service Set (ESS) bit in the capability information field.
 
void SetIbss ()
 Set the Independent BSS (IBSS) bit in the capability information field.
 
void SetShortPreamble (bool shortPreamble)
 Set the short preamble bit in the capability information field.
 
void SetShortSlotTime (bool shortSlotTime)
 Set the short slot time bit in the capability information field.
 

Private Member Functions

void Clear (uint8_t n)
 Set bit n to 0.
 
bool Is (uint8_t n) const
 Check if bit n is set to 1.
 
void Set (uint8_t n)
 Set bit n to 1.
 

Private Attributes

uint16_t m_capability
 capability
 

Detailed Description

Capability information.

Definition at line 22 of file capability-information.h.

Constructor & Destructor Documentation

◆ CapabilityInformation()

ns3::CapabilityInformation::CapabilityInformation ( )

Definition at line 14 of file capability-information.cc.

Member Function Documentation

◆ Clear()

void ns3::CapabilityInformation::Clear ( uint8_t n)
private

Set bit n to 0.

Parameters
nthe bit position

Definition at line 95 of file capability-information.cc.

References m_capability.

Referenced by SetEss(), and SetIbss().

+ Here is the caller graph for this function:

◆ Deserialize()

Buffer::Iterator ns3::CapabilityInformation::Deserialize ( Buffer::Iterator start)

Deserialize capability information from the given buffer.

Parameters
startan iterator to a buffer
Returns
an iterator to a buffer after capability information was deserialized

Definition at line 122 of file capability-information.cc.

References m_capability.

Referenced by ns3::MgtAssocRequestHeader::DeserializeFromPerStaProfileImpl(), ns3::MgtAssocResponseHeader::DeserializeFromPerStaProfileImpl(), ns3::MgtReassocRequestHeader::DeserializeFromPerStaProfileImpl(), ns3::MgtAssocRequestHeader::DeserializeImpl(), ns3::MgtAssocResponseHeader::DeserializeImpl(), ns3::MgtProbeResponseHeader::DeserializeImpl(), ns3::MgtReassocRequestHeader::DeserializeImpl(), and BasicMultiLinkElementTest::DoRun().

+ Here is the caller graph for this function:

◆ GetSerializedSize()

uint32_t ns3::CapabilityInformation::GetSerializedSize ( ) const

◆ Is()

bool ns3::CapabilityInformation::Is ( uint8_t n) const
private

Check if bit n is set to 1.

Parameters
nthe bit position
Returns
true if bit n is set to 1, false otherwise

Definition at line 102 of file capability-information.cc.

References m_capability.

Referenced by IsCfPollable(), IsEss(), IsIbss(), IsShortPreamble(), and IsShortSlotTime().

+ Here is the caller graph for this function:

◆ IsCfPollable()

bool ns3::CapabilityInformation::IsCfPollable ( ) const

Check if the CF-Pollable bit in the capability information field is set to 1.

Returns
CF-Pollable bit in the capability information field is set to 1

Definition at line 82 of file capability-information.cc.

References Is().

+ Here is the call graph for this function:

◆ IsEss()

bool ns3::CapabilityInformation::IsEss ( ) const

Check if the Extended Service Set (ESS) bit in the capability information field is set to 1.

Returns
ESS bit in the capability information field is set to 1

Definition at line 58 of file capability-information.cc.

References Is().

+ Here is the call graph for this function:

◆ IsIbss()

bool ns3::CapabilityInformation::IsIbss ( ) const

Check if the Independent BSS (IBSS) bit in the capability information field is set to 1.

Returns
IBSS bit in the capability information field is set to 1

Definition at line 64 of file capability-information.cc.

References Is().

+ Here is the call graph for this function:

◆ IsShortPreamble()

bool ns3::CapabilityInformation::IsShortPreamble ( ) const

Check if the short preamble bit in the capability information field is set to 1.

Returns
short preamble bit in the capability information field is set to 1

Definition at line 70 of file capability-information.cc.

References Is().

Referenced by ns3::ApWifiMac::ReceiveAssocRequest().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsShortSlotTime()

bool ns3::CapabilityInformation::IsShortSlotTime ( ) const

Check if the short slot time in the capability information field is set to 1.

Returns
short slot time bit in the capability information field is set to 1

Definition at line 76 of file capability-information.cc.

References Is().

Referenced by ns3::ApWifiMac::ReceiveAssocRequest().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Serialize()

Buffer::Iterator ns3::CapabilityInformation::Serialize ( Buffer::Iterator start) const

Serialize capability information to the given buffer.

Parameters
startan iterator to a buffer
Returns
an iterator to a buffer after capability information was serialized

Definition at line 115 of file capability-information.cc.

References m_capability, and ns3::Buffer::Iterator::WriteHtolsbU16().

Referenced by ns3::MgtAssocRequestHeader::SerializeImpl(), ns3::MgtAssocResponseHeader::SerializeImpl(), ns3::MgtProbeResponseHeader::SerializeImpl(), ns3::MgtReassocRequestHeader::SerializeImpl(), ns3::MgtAssocRequestHeader::SerializeInPerStaProfileImpl(), ns3::MgtAssocResponseHeader::SerializeInPerStaProfileImpl(), and ns3::MgtReassocRequestHeader::SerializeInPerStaProfileImpl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Set()

void ns3::CapabilityInformation::Set ( uint8_t n)
private

Set bit n to 1.

Parameters
nthe bit position

Definition at line 88 of file capability-information.cc.

References m_capability.

Referenced by SetCfPollable(), SetEss(), SetIbss(), SetShortPreamble(), and SetShortSlotTime().

+ Here is the caller graph for this function:

◆ SetCfPollable()

void ns3::CapabilityInformation::SetCfPollable ( )

Set the CF-Pollable bit in the capability information field.

Definition at line 52 of file capability-information.cc.

References Set().

+ Here is the call graph for this function:

◆ SetEss()

void ns3::CapabilityInformation::SetEss ( )

Set the Extended Service Set (ESS) bit in the capability information field.

Definition at line 20 of file capability-information.cc.

References Clear(), and Set().

Referenced by BasicMultiLinkElementTest::DoRun(), and ns3::ApWifiMac::GetCapabilities().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetIbss()

void ns3::CapabilityInformation::SetIbss ( )

Set the Independent BSS (IBSS) bit in the capability information field.

Definition at line 27 of file capability-information.cc.

References Clear(), and Set().

+ Here is the call graph for this function:

◆ SetShortPreamble()

void ns3::CapabilityInformation::SetShortPreamble ( bool shortPreamble)

Set the short preamble bit in the capability information field.

Parameters
shortPreamblethe short preamble bit

Definition at line 34 of file capability-information.cc.

References Set().

Referenced by BasicMultiLinkElementTest::DoRun(), ns3::ApWifiMac::GetCapabilities(), and ns3::StaWifiMac::GetCapabilities().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetShortSlotTime()

void ns3::CapabilityInformation::SetShortSlotTime ( bool shortSlotTime)

Set the short slot time bit in the capability information field.

Parameters
shortSlotTimethe short preamble bit

Definition at line 43 of file capability-information.cc.

References Set().

Referenced by BasicMultiLinkElementTest::DoRun(), ns3::ApWifiMac::GetCapabilities(), and ns3::StaWifiMac::GetCapabilities().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_capability

uint16_t ns3::CapabilityInformation::m_capability
private

capability

Definition at line 147 of file capability-information.h.

Referenced by Clear(), Deserialize(), Is(), Serialize(), and Set().


The documentation for this class was generated from the following files: