ns-3
|
Interface MAC plugin FLAME routing protocol. More...
#include <flame-protocol-mac.h>
Classes | |
struct | Statistics |
Public Member Functions | |
FlameProtocolMac (uint32_t, Ptr< FlameProtocol >) | |
uint16_t | GetChannelId () const |
void | Report (std::ostream &) const |
Report statistics. | |
void | ResetStats () |
Inherited from MAC plugin | |
void | SetParent (Ptr< MeshWifiInterfaceMac > parent) |
Each plugin must be installed on interface to work. | |
bool | Receive (Ptr< Packet > packet, const WifiMacHeader &header) |
Process received frame. | |
bool | UpdateOutcomingFrame (Ptr< Packet > packet, WifiMacHeader &header, Mac48Address from, Mac48Address to) |
Update frame before it will be forwarded down. | |
void | UpdateBeacon (MeshWifiBeacon &beacon) const |
Update beacon is empty, because HWMP does not know anything about beacons. | |
![]() | |
virtual | ~MeshWifiInterfaceMacPlugin () |
This is for subclasses. | |
![]() | |
SimpleRefCount (const SimpleRefCount &o) | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
void | Ref (void) const |
void | Unref (void) const |
uint32_t | GetReferenceCount (void) const |
Interface MAC plugin FLAME routing protocol.
|
virtual |
Process received frame.
Implements ns3::MeshWifiInterfaceMacPlugin.
References ns3::Packet::AddPacketTag(), ns3::Mac48Address::GetBroadcast(), ns3::Packet::GetSize(), NS_FATAL_ERROR, ns3::Packet::PeekPacketTag(), ns3::flame::FlameTag::receiver, and ns3::flame::FlameTag::transmitter.
|
virtual |
Update frame before it will be forwarded down.
Implements ns3::MeshWifiInterfaceMacPlugin.
References ns3::Mac48Address::GetBroadcast(), ns3::Packet::GetSize(), NS_FATAL_ERROR, ns3::flame::FlameTag::receiver, and ns3::Packet::RemovePacketTag().