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

A set of values indicating whether a mesh STA is a possible candidate for mesh peering establishment (Section 8.4.2.100.8 of IEEE 802.11-2012) More...

#include "ie-dot11s-configuration.h"

+ Collaboration diagram for ns3::dot11s::Dot11sMeshCapability:

Public Member Functions

 Dot11sMeshCapability ()
 
Buffer::Iterator Deserialize (Buffer::Iterator i)
 Deserialize from a buffer.
 
uint8_t GetSerializedSize () const
 Size of the field in bytes when serialized.
 
uint8_t GetUint8 () const
 The Mesh Capability is expressed in terms of 8 single bit fields.
 
bool Is (uint8_t cap, uint8_t n) const
 This is a utility function to test if the bit at position n is true.
 
Buffer::Iterator Serialize (Buffer::Iterator i) const
 Serialize to a buffer.
 

Public Attributes

bool acceptPeerLinks
 accept peer links
 
bool beaconTimingReport
 beacon timing report
 
bool forwarding
 forwarding?
 
bool MCCAEnabled
 MCCA enabled.
 
bool MCCASupported
 MCCA supported.
 
bool powerSaveLevel
 power save level
 
bool TBTTAdjustment
 TBTT adjustment.
 

Friends

bool operator== (const Dot11sMeshCapability &a, const Dot11sMeshCapability &b)
 equality operator
 

Detailed Description

A set of values indicating whether a mesh STA is a possible candidate for mesh peering establishment (Section 8.4.2.100.8 of IEEE 802.11-2012)

Definition at line 62 of file ie-dot11s-configuration.h.

Constructor & Destructor Documentation

◆ Dot11sMeshCapability()

ns3::dot11s::Dot11sMeshCapability::Dot11sMeshCapability ( )

Definition at line 19 of file ie-dot11s-configuration.cc.

Member Function Documentation

◆ Deserialize()

Buffer::Iterator ns3::dot11s::Dot11sMeshCapability::Deserialize ( Buffer::Iterator i)

Deserialize from a buffer.

Parameters
ithe iterator from which to deserialize
Returns
new value of the iterator

Definition at line 82 of file ie-dot11s-configuration.cc.

References acceptPeerLinks, beaconTimingReport, forwarding, Is(), MCCAEnabled, MCCASupported, powerSaveLevel, ns3::Buffer::Iterator::ReadU8(), and TBTTAdjustment.

Referenced by ns3::dot11s::IeConfiguration::DeserializeInformationField().

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

◆ GetSerializedSize()

uint8_t ns3::dot11s::Dot11sMeshCapability::GetSerializedSize ( ) const

Size of the field in bytes when serialized.

Returns
the serialized size in bytes

Definition at line 31 of file ie-dot11s-configuration.cc.

Referenced by ns3::dot11s::IeConfiguration::GetInformationFieldSize().

+ Here is the caller graph for this function:

◆ GetUint8()

uint8_t ns3::dot11s::Dot11sMeshCapability::GetUint8 ( ) const

The Mesh Capability is expressed in terms of 8 single bit fields.

This method returns the whole byte.

Returns
the Mesh Capability byte

Definition at line 37 of file ie-dot11s-configuration.cc.

References acceptPeerLinks, beaconTimingReport, forwarding, MCCAEnabled, MCCASupported, powerSaveLevel, and TBTTAdjustment.

Referenced by ns3::dot11s::IeConfiguration::Print(), and Serialize().

+ Here is the caller graph for this function:

◆ Is()

bool ns3::dot11s::Dot11sMeshCapability::Is ( uint8_t cap,
uint8_t n ) const

This is a utility function to test if the bit at position n is true.

Parameters
capbyte to test
nbit number to mask
Returns
true if bit n is set in cap

Definition at line 96 of file ie-dot11s-configuration.cc.

Referenced by Deserialize().

+ Here is the caller graph for this function:

◆ Serialize()

Buffer::Iterator ns3::dot11s::Dot11sMeshCapability::Serialize ( Buffer::Iterator i) const

Serialize to a buffer.

Parameters
ithe iterator of the buffer to serialize to
Returns
new value of the iterator

Definition at line 75 of file ie-dot11s-configuration.cc.

References GetUint8(), and ns3::Buffer::Iterator::WriteU8().

Referenced by ns3::dot11s::IeConfiguration::SerializeInformationField().

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

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const Dot11sMeshCapability & a,
const Dot11sMeshCapability & b )
friend

equality operator

Parameters
alhs
brhs
Returns
true if equal

Definition at line 221 of file ie-dot11s-configuration.cc.

Member Data Documentation

◆ acceptPeerLinks

bool ns3::dot11s::Dot11sMeshCapability::acceptPeerLinks

accept peer links

Definition at line 89 of file ie-dot11s-configuration.h.

Referenced by Deserialize(), and GetUint8().

◆ beaconTimingReport

bool ns3::dot11s::Dot11sMeshCapability::beaconTimingReport

beacon timing report

Definition at line 93 of file ie-dot11s-configuration.h.

Referenced by Deserialize(), and GetUint8().

◆ forwarding

bool ns3::dot11s::Dot11sMeshCapability::forwarding

forwarding?

Definition at line 92 of file ie-dot11s-configuration.h.

Referenced by Deserialize(), and GetUint8().

◆ MCCAEnabled

bool ns3::dot11s::Dot11sMeshCapability::MCCAEnabled

MCCA enabled.

Definition at line 91 of file ie-dot11s-configuration.h.

Referenced by Deserialize(), and GetUint8().

◆ MCCASupported

bool ns3::dot11s::Dot11sMeshCapability::MCCASupported

MCCA supported.

Definition at line 90 of file ie-dot11s-configuration.h.

Referenced by Deserialize(), and GetUint8().

◆ powerSaveLevel

bool ns3::dot11s::Dot11sMeshCapability::powerSaveLevel

power save level

Definition at line 95 of file ie-dot11s-configuration.h.

Referenced by Deserialize(), and GetUint8().

◆ TBTTAdjustment

bool ns3::dot11s::Dot11sMeshCapability::TBTTAdjustment

TBTT adjustment.

Definition at line 94 of file ie-dot11s-configuration.h.

Referenced by Deserialize(), and GetUint8().


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