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

DSR error buffer. More...

#include <dsr-errorbuff.h>

Public Member Functions

bool Dequeue (Ipv4Address dst, ErrorBuffEntry &entry)
void DropPacketForErrLink (Ipv4Address source, Ipv4Address nextHop)
bool Enqueue (ErrorBuffEntry &entry)
bool Find (Ipv4Address dst)
std::vector< ErrorBuffEntry > & GetBuffer ()
uint32_t GetSize ()
uint32_t GetMaxQueueLen () const
void SetMaxQueueLen (uint32_t len)
Time GetErrorBufferTimeout () const
void SetErrorBufferTimeout (Time t)

Private Member Functions

void Drop (ErrorBuffEntry en, std::string reason)
void DropLink (ErrorBuffEntry en, std::string reason)
void Purge ()

Static Private Member Functions

static bool LinkEqual (ErrorBuffEntry en, const std::vector< Ipv4Address > link)

Private Attributes

std::vector< ErrorBuffEntrym_errorBuffer
Time m_errorBufferTimeout
uint32_t m_maxLen

Detailed Description

DSR error buffer.

Definition at line 138 of file dsr-errorbuff.h.

Member Function Documentation

bool ns3::dsr::ErrorBuffer::Enqueue ( ErrorBuffEntry entry)

TODO check the source and destination over here

Definition at line 52 of file dsr-errorbuff.cc.

References ns3::Packet::GetUid(), and NS_LOG_INFO.

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

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