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) | |
MgtBeaconHeader | BeaconHeader () const |
Read standard Wifi beacon header. | |
void | AddInformationElement (Ptr< WifiInformationElement > ie) |
Add information element. | |
WifiMacHeader | CreateHeader (Mac48Address address, Mac48Address mpAddress) |
Ptr< Packet > | CreatePacket () |
Create frame = { beacon header + all information elements sorted by ElementId () }. | |
Private Attributes | |
MgtBeaconHeader | m_header |
Beacon header. | |
WifiInformationElementVector | m_elements |
List of information elements added. |
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.
ns3::MeshWifiBeacon::MeshWifiBeacon | ( | Ssid | ssid, | |
SupportedRates | rates, | |||
uint64_t | us | |||
) |
C-tor
ssid | is SSID for beacon header | |
rates | is a set of supported rates | |
us | beacon interval in microseconds |
WifiMacHeader ns3::MeshWifiBeacon::CreateHeader | ( | Mac48Address | address, | |
Mac48Address | mpAddress | |||
) |
Create wifi header for beacon frame.
address | is sender address | |
mpAddress | is mesh point address |