Hybrid wireless mesh protocol -- a routing protocol of IEEE 802.11s draft. More...
#include <hwmp-protocol.h>
Classes | |
struct | FailedDestination |
structure of unreachable destination - address and sequence number More... | |
struct | PathError |
Structure of path error: IePerr and list of receivers: interfaces and MAC address. | |
struct | PreqEvent |
struct | QueuedPacket |
Packet waiting its routing information. | |
struct | Statistics |
Public Member Functions | |
void | DoDispose () |
bool | RequestRoute (uint32_t sourceIface, const Mac48Address source, const Mac48Address destination, Ptr< const Packet > packet, uint16_t protocolType, RouteReplyCallback routeReply) |
Route request, inherited from MeshL2RoutingProtocol. | |
bool | RemoveRoutingStuff (uint32_t fromIface, const Mac48Address source, const Mac48Address destination, Ptr< Packet > packet, uint16_t &protocolType) |
Cleanup packet from all tags. | |
bool | Install (Ptr< MeshPointDevice >) |
Install HWMP on given mesh point. | |
void | PeerLinkStatus (Mac48Address meshPontAddress, Mac48Address peerAddress, uint32_t interface, bool status) |
void | SetNeighboursCallback (Callback< std::vector< Mac48Address >, uint32_t > cb) |
This callback is used to obtain active neighbours on a given interface. | |
void | Report (std::ostream &) const |
Statistics:. | |
void | ResetStats () |
Proactive PREQ mechanism: | |
void | SetRoot () |
void | UnsetRoot () |
Static Public Member Functions | |
static TypeId | GetTypeId () |
This method returns the TypeId associated to ns3::dot11s::HwmpProtocol. | |
Friends | |
class | HwmpProtocolMac |
Hybrid wireless mesh protocol -- a routing protocol of IEEE 802.11s draft.
void ns3::dot11s::HwmpProtocol::DoDispose | ( | ) | [virtual] |
This method is called by Object::Dispose or by the object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.
It is safe to call GetObject from within this method.
Reimplemented from ns3::Object.
static TypeId ns3::dot11s::HwmpProtocol::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::dot11s::HwmpProtocol.
This object is accessible through the following paths with Config::Set and Config::Connect:
Attributes defined for this type:
TraceSources defined for this type:
Reimplemented from ns3::MeshL2RoutingProtocol.
bool ns3::dot11s::HwmpProtocol::Install | ( | Ptr< MeshPointDevice > | ) |
Install HWMP on given mesh point.
Installing protocol cause installing its interface MAC plugins.
Also MP aggregates all installed protocols, HWMP protocol can be accessed via MeshPointDevice::GetObject<dot11s::HwmpProtocol>();
void ns3::dot11s::HwmpProtocol::SetNeighboursCallback | ( | Callback< std::vector< Mac48Address >, uint32_t > | cb | ) |
This callback is used to obtain active neighbours on a given interface.
cb | is a callback, which returns a list of addresses on given interface (uint32_t) |