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< Packet > | CreatePacket () |
| 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. | |
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.
| 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 |
Definition at line 26 of file mesh-wifi-beacon.cc.
References m_header.
| WifiMacHeader ns3::MeshWifiBeacon::CreateHeader | ( | Mac48Address | address, |
| Mac48Address | mpAddress | ||
| ) |
Create wifi header for beacon frame.
| address | is sender address |
| mpAddress | is mesh point address |
Definition at line 53 of file mesh-wifi-beacon.cc.
References ns3::Mac48Address::GetBroadcast().