Public Member Functions

ns3::flame::FlameProtocolMac Class Reference
[FLAME]

Interface MAC plugin FLAME routing protocol. More...

#include <flame-protocol-mac.h>

Inheritance diagram for ns3::flame::FlameProtocolMac:
Inheritance graph
[legend]
Collaboration diagram for ns3::flame::FlameProtocolMac:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void Report (std::ostream &) const
 Report statistics.
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.

Private Attributes

MeshPointDevice parameters:

Ptr< FlameProtocolm_protocol
uint32_t m_ifIndex
Ptr< MeshWifiInterfaceMacm_parent
Statistics:

Statistics m_stats

Detailed Description

Interface MAC plugin FLAME routing protocol.


Member Function Documentation

bool ns3::flame::FlameProtocolMac::Receive ( Ptr< Packet packet,
const WifiMacHeader &  header 
) [virtual]

Process received frame.

Returns:
false if (and only if) frame should be dropped TODO define when MAC call this

Implements ns3::MeshWifiInterfaceMacPlugin.

bool ns3::flame::FlameProtocolMac::UpdateOutcomingFrame ( Ptr< Packet packet,
WifiMacHeader &  header,
Mac48Address  from,
Mac48Address  to 
) [virtual]

Update frame before it will be forwarded down.

Returns:
false if (and only if) frame should be dropped TODO define when MAC call this, preconditions & postconditions

Implements ns3::MeshWifiInterfaceMacPlugin.


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