ns-3
|
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 () |
![]() | |
virtual | ~MeshL2RoutingProtocol () |
virtual D-tor for subclasses | |
void | SetMeshPoint (Ptr< MeshPointDevice > mp) |
Set host mesh point, analog of SetNode (...) methods for upper layer protocols. | |
Ptr< MeshPointDevice > | GetMeshPoint () const |
Each mesh protocol must be installed on the mesh point to work. | |
![]() | |
virtual TypeId | GetInstanceTypeId (void) const |
template<typename T > | |
Ptr< T > | GetObject (void) const |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
void | Dispose (void) |
void | AggregateObject (Ptr< Object > other) |
AggregateIterator | GetAggregateIterator (void) const |
void | Start (void) |
![]() | |
SimpleRefCount (const SimpleRefCount &o) | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
void | Ref (void) const |
void | Unref (void) const |
uint32_t | GetReferenceCount (void) const |
![]() | |
void | SetAttribute (std::string name, const AttributeValue &value) |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
void | GetAttribute (std::string name, AttributeValue &value) const |
bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Static Public Member Functions | |
static TypeId | GetTypeId () |
This method returns the TypeId associated to ns3::dot11s::HwmpProtocol. |
Friends | |
class | HwmpProtocolMac |
Additional Inherited Members | |
![]() | |
typedef Callback< void, bool, Ptr< Packet >, Mac48Address, Mac48Address, uint16_t, uint32_t > | RouteReplyCallback |
![]() | |
Ptr< MeshPointDevice > | m_mp |
Host mesh point. |
Hybrid wireless mesh protocol – a routing protocol of IEEE 802.11s draft.
|
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.
References ns3::EventId::Cancel(), ns3::MeshL2RoutingProtocol::m_mp, and NS_LOG_FUNCTION_NOARGS.
|
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.
References ns3::MakeTraceSourceAccessor(), ns3::MicroSeconds(), ns3::Seconds(), and ns3::TypeId::SetParent().
bool ns3::dot11s::HwmpProtocol::Install | ( | Ptr< MeshPointDevice > | mp | ) |
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>();
References ns3::Object::AggregateObject(), ns3::Mac48Address::ConvertFrom(), ns3::MeshPointDevice::GetAddress(), ns3::MeshPointDevice::GetInterfaces(), ns3::MeshWifiInterfaceMac::InstallPlugin(), ns3::MeshL2RoutingProtocol::m_mp, ns3::MakeCallback(), and ns3::MeshPointDevice::SetRoutingProtocol().
Referenced by ns3::Dot11sStack::InstallStack().
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) |
Referenced by ns3::Dot11sStack::InstallStack().