ns-3
ns3::dsr::RreqTable Class Reference

maintain list of RreqTable entry More...

#include <dsr-rreq-table.h>

Inheritance diagram for ns3::dsr::RreqTable:
Collaboration diagram for ns3::dsr::RreqTable:

List of all members.

Classes

struct  IsExpired

Public Member Functions

 RreqTable ()
 Constructor.
virtual ~RreqTable ()
 Destructor.
void RemoveLeastExpire (std::map< Ipv4Address, RreqTableEntry > &rreqDstMap)
void FindAndUpdate (Ipv4Address dst)
void RemoveRreqEntry (Ipv4Address dst)
uint32_t GetRreqCnt (Ipv4Address dst)
uint32_t CheckUniqueRreqId (Ipv4Address dst)
uint32_t GetRreqSize ()
void Invalidate ()
BlackListFindUnidirectional (Ipv4Address neighbor)
bool MarkLinkAsUnidirectional (Ipv4Address neighbor, Time blacklistTimeout)
void PurgeNeighbor ()
void SetInitHopLimit (uint32_t hl)
uint32_t GetInitHopLimit () const
void SetRreqTableSize (uint32_t rt)
uint32_t GetRreqTableSize () const
void SetRreqIdSize (uint32_t id)
uint32_t GetRreqIdSize () const
void SetUniqueRreqIdSize (uint32_t uid)
uint32_t GetUniqueRreqIdSize () const
- Public Member Functions inherited from ns3::Object
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)
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount (const SimpleRefCount &o)
SimpleRefCountoperator= (const SimpleRefCount &o)
void Ref (void) const
void Unref (void) const
uint32_t GetReferenceCount (void) const
- Public Member Functions inherited from ns3::ObjectBase
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 ()
 Get the type identificator.

Additional Inherited Members

- Protected Member Functions inherited from ns3::Object
virtual void NotifyNewAggregate (void)
virtual void DoStart (void)
virtual void DoDispose (void)
 Object (const Object &o)

Detailed Description

maintain list of RreqTable entry


Member Function Documentation

uint32_t ns3::dsr::RreqTable::CheckUniqueRreqId ( Ipv4Address  dst)

This part takes care of the route request ID initialized from a specific source to one destination Essentially a counter

References NS_LOG_DEBUG, and NS_LOG_LOGIC.

BlackList * ns3::dsr::RreqTable::FindUnidirectional ( Ipv4Address  neighbor)

Verify if entry is unidirectional or not(e.g. add this neighbor to "blacklist" for blacklistTimeout period)

Parameters:
neighbor- neighbor address link to which assumed to be unidirectional
Returns:
true on success

Referenced by ns3::dsr::DsrRouting::Receive().

TypeId ns3::dsr::RreqTable::GetTypeId ( void  )
static

Get the type identificator.

This method returns the TypeId associated to ns3::dsr::RreqTable.

Returns:
type identificator

No Attributes defined for this type.
No TraceSources defined for this type.

Reimplemented from ns3::Object.

References ns3::TypeId::SetParent().

void ns3::dsr::RreqTable::Invalidate ( )

This part takes care of black list which can save unidirectional link information

bool ns3::dsr::RreqTable::MarkLinkAsUnidirectional ( Ipv4Address  neighbor,
Time  blacklistTimeout 
)

Mark entry as unidirectional (e.g. add this neighbor to "blacklist" for blacklistTimeout period)

Parameters:
neighbor- neighbor address link to which assumed to be unidirectional
blacklistTimeout- time for which the neighboring node is put into the blacklist
Returns:
true on success

References ns3::Simulator::Now(), NS_LOG_DEBUG, and NS_LOG_LOGIC.


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