A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::dot11s::HwmpRtable Class Reference

Routing table for HWMP – 802.11s routing protocol. More...

#include <hwmp-rtable.h>

+ Inheritance diagram for ns3::dot11s::HwmpRtable:

Classes

struct  LookupResult
 Route lookup result, return type of LookupXXX methods. More...
 
struct  Precursor
 Route found in reactive mode. More...
 
struct  ProactiveRoute
 Route fond in proactive mode. More...
 
struct  ReactiveRoute
 

Public Types

typedef std::vector< std::pair
< uint32_t, Mac48Address > > 
PrecursorList
 Path precursor = {MAC, interface ID}.
 

Public Member Functions

void DoDispose ()
 
std::vector
< HwmpProtocol::FailedDestination
GetUnreachableDestinations (Mac48Address peerAddress)
 When peer link with a given MAC-address fails - it returns list of unreachable destination addresses.
 
Add/delete paths
void AddReactivePath (Mac48Address destination, Mac48Address retransmitter, uint32_t interface, uint32_t metric, Time lifetime, uint32_t seqnum)
 
void AddProactivePath (uint32_t metric, Mac48Address root, Mac48Address retransmitter, uint32_t interface, Time lifetime, uint32_t seqnum)
 
void AddPrecursor (Mac48Address destination, uint32_t precursorInterface, Mac48Address precursorAddress, Time lifetime)
 
PrecursorList GetPrecursors (Mac48Address destination)
 
void DeleteProactivePath ()
 
void DeleteProactivePath (Mac48Address root)
 
void DeleteReactivePath (Mac48Address destination)
 
Lookup
LookupResult LookupReactive (Mac48Address destination)
 Lookup path to destination.
 
LookupResult LookupReactiveExpired (Mac48Address destination)
 Return all reactive paths, including expired.
 
LookupResult LookupProactive ()
 Find proactive path to tree root. Note that calling this method has side effect of deleting expired proactive path.
 
LookupResult LookupProactiveExpired ()
 Return all proactive paths, including expired.
 
- Public Member Functions inherited from ns3::Object
void AggregateObject (Ptr< Object > other)
 
void Dispose (void)
 
AggregateIterator GetAggregateIterator (void) const
 
virtual TypeId GetInstanceTypeId (void) const
 
template<typename T >
Ptr< T > GetObject (void) const
 
template<typename T >
Ptr< T > GetObject (TypeId tid) const
 
void Initialize (void)
 
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount (const SimpleRefCount &o)
 
uint32_t GetReferenceCount (void) const
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 
void Ref (void) const
 
void Unref (void) const
 
- Public Member Functions inherited from ns3::ObjectBase
void GetAttribute (std::string name, AttributeValue &value) const
 
bool GetAttributeFailSafe (std::string name, AttributeValue &attribute) const
 
void SetAttribute (std::string name, const AttributeValue &value)
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 
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 ()
 
- Static Public Member Functions inherited from ns3::Object
static TypeId GetTypeId (void)
 
- Static Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
static void Cleanup (void)
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId (void)
 

Static Public Attributes

static const uint32_t INTERFACE_ANY = 0xffffffff
 Means all interfaces.
 
static const uint32_t MAX_METRIC = 0xffffffff
 Maximum (the best?) path metric.
 

Private Attributes

ProactiveRoute m_root
 Path to proactive tree root MP.
 
std::map< Mac48Address,
ReactiveRoute
m_routes
 List of routes.
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::Object
 Object (const Object &o)
 
virtual void DoInitialize (void)
 
virtual void NotifyNewAggregate (void)
 
- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 
virtual void NotifyConstructionCompleted (void)
 

Detailed Description

Routing table for HWMP – 802.11s routing protocol.

Doxygen introspection did not find any typical Config paths.
No Attributes are defined for this type.
No TraceSources are defined for this type.

Definition at line 35 of file hwmp-rtable.h.

Member Function Documentation

void ns3::dot11s::HwmpRtable::DoDispose ( void  )
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.

Definition at line 52 of file hwmp-rtable.cc.

References m_routes.


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