A Discrete-Event Network Simulator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::MeshWifiBeacon Class Reference

Beacon is beacon header + list of arbitrary information elements. More...

#include <mesh-wifi-beacon.h>

Public Member Functions

 MeshWifiBeacon (Ssid ssid, SupportedRates rates, uint64_t us)
void AddInformationElement (Ptr< WifiInformationElement > ie)
 Add information element.
MgtBeaconHeader BeaconHeader () const
 Read standard Wifi beacon header.
WifiMacHeader CreateHeader (Mac48Address address, Mac48Address mpAddress)
Ptr< PacketCreatePacket ()
 Create frame = { beacon header + all information elements sorted by ElementId () }.
Time GetBeaconInterval () const
 Returns a beacon interval of wifi beacon.

Private Attributes

WifiInformationElementVector m_elements
 List of information elements added.
MgtBeaconHeader m_header
 Beacon header.

Detailed Description

Beacon is beacon header + list of arbitrary information elements.

It is supposed that distinct mesh protocols can use beacons to transport their own information elements.

Definition at line 38 of file mesh-wifi-beacon.h.

Constructor & Destructor Documentation

ns3::MeshWifiBeacon::MeshWifiBeacon ( Ssid  ssid,
SupportedRates  rates,
uint64_t  us 


ssidis SSID for beacon header
ratesis a set of supported rates
usbeacon interval in microseconds

Definition at line 26 of file mesh-wifi-beacon.cc.

References m_header.

Member Function Documentation

WifiMacHeader ns3::MeshWifiBeacon::CreateHeader ( Mac48Address  address,
Mac48Address  mpAddress 

Create wifi header for beacon frame.

addressis sender address
mpAddressis mesh point address

Definition at line 53 of file mesh-wifi-beacon.cc.

References ns3::Mac48Address::GetBroadcast().

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