DSR send buffer. More...
#include <dsr-rsendbuff.h>
Collaboration diagram for ns3::dsr::SendBuffer:Public Member Functions | |
| SendBuffer () | |
| bool | Dequeue (Ipv4Address dst, SendBuffEntry &entry) |
| void | DropPacketWithDst (Ipv4Address dst) |
| bool | Enqueue (SendBuffEntry &entry) |
| bool | Find (Ipv4Address dst) |
| std::vector< SendBuffEntry > & | GetBuffer () |
| uint32_t | GetSize () |
| uint32_t | GetMaxQueueLen () const |
| void | SetMaxQueueLen (uint32_t len) |
| Time | GetSendBufferTimeout () const |
| void | SetSendBufferTimeout (Time t) |
Private Member Functions | |
| void | Drop (SendBuffEntry en, std::string reason) |
| void | Purge () |
Static Private Member Functions | |
| static bool | IsEqual (SendBuffEntry en, const Ipv4Address dst) |
Private Attributes | |
| uint32_t | m_maxLen |
| std::vector< SendBuffEntry > | m_sendBuffer |
| Time | m_sendBufferTimeout |
DSR send buffer.
Definition at line 116 of file dsr-rsendbuff.h.
|
inline |
Definition at line 120 of file dsr-rsendbuff.h.
| bool ns3::dsr::SendBuffer::Dequeue | ( | Ipv4Address | dst, |
| SendBuffEntry & | entry | ||
| ) |
Definition at line 103 of file dsr-rsendbuff.cc.
References ns3::dsr::SendBuffEntry::GetPacket(), ns3::Packet::GetSize(), m_sendBuffer, NS_LOG_DEBUG, and Purge().
Referenced by ns3::dsr::DsrSendBuffTest::DoRun(), and ns3::dsr::DsrRouting::SendPacketFromBuffer().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 172 of file dsr-rsendbuff.cc.
References ns3::dsr::SendBuffEntry::GetDestination(), ns3::dsr::SendBuffEntry::GetPacket(), ns3::Packet::GetUid(), and NS_LOG_LOGIC.
Referenced by DropPacketWithDst(), Enqueue(), and Purge().
Here is the call graph for this function:
Here is the caller graph for this function:| void ns3::dsr::SendBuffer::DropPacketWithDst | ( | Ipv4Address | dst | ) |
Definition at line 83 of file dsr-rsendbuff.cc.
References Drop(), IsEqual(), m_sendBuffer, NS_LOG_FUNCTION, and Purge().
Referenced by ns3::dsr::DsrSendBuffTest::DoRun(), and ns3::dsr::DsrRouting::RouteRequestTimerExpire().
Here is the call graph for this function:
Here is the caller graph for this function:| bool ns3::dsr::SendBuffer::Enqueue | ( | SendBuffEntry & | entry | ) |
Definition at line 52 of file dsr-rsendbuff.cc.
References Drop(), ns3::dsr::SendBuffEntry::GetDestination(), ns3::dsr::SendBuffEntry::GetPacket(), ns3::Packet::GetUid(), m_maxLen, m_sendBuffer, m_sendBufferTimeout, NS_LOG_INFO, Purge(), and ns3::dsr::SendBuffEntry::SetExpireTime().
Referenced by ns3::dsr::DsrSendBuffTest::CheckSizeLimit(), ns3::dsr::DsrSendBuffTest::DoRun(), ns3::dsr::DsrRouting::PacketNewRoute(), and ns3::dsr::DsrRouting::Send().
Here is the call graph for this function:
Here is the caller graph for this function:| bool ns3::dsr::SendBuffer::Find | ( | Ipv4Address | dst | ) |
Definition at line 123 of file dsr-rsendbuff.cc.
References m_sendBuffer, and NS_LOG_DEBUG.
Referenced by ns3::dsr::DsrSendBuffTest::DoRun(), and ns3::dsr::DsrRouting::SendPacketFromBuffer().
Here is the caller graph for this function:
|
inline |
Definition at line 153 of file dsr-rsendbuff.h.
References m_sendBuffer.
Referenced by ns3::dsr::DsrRouting::CheckSendBuffer().
Here is the caller graph for this function:
|
inline |
Definition at line 135 of file dsr-rsendbuff.h.
References m_maxLen.
Referenced by ns3::dsr::DsrSendBuffTest::CheckSizeLimit(), and ns3::dsr::DsrSendBuffTest::DoRun().
Here is the caller graph for this function:
|
inline |
Definition at line 143 of file dsr-rsendbuff.h.
References m_sendBufferTimeout.
Referenced by ns3::dsr::DsrSendBuffTest::DoRun().
Here is the caller graph for this function:| uint32_t ns3::dsr::SendBuffer::GetSize | ( | ) |
Definition at line 45 of file dsr-rsendbuff.cc.
References m_sendBuffer, and Purge().
Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), ns3::dsr::DsrSendBuffTest::CheckSizeLimit(), ns3::dsr::DsrSendBuffTest::CheckTimeout(), ns3::dsr::DsrSendBuffTest::DoRun(), and ns3::dsr::DsrRouting::SendPacketFromBuffer().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestaticprivate |
Definition at line 170 of file dsr-rsendbuff.h.
References ns3::dsr::SendBuffEntry::GetDestination().
Referenced by DropPacketWithDst().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 151 of file dsr-rsendbuff.cc.
References Drop(), m_sendBuffer, and NS_LOG_DEBUG.
Referenced by Dequeue(), DropPacketWithDst(), Enqueue(), and GetSize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 139 of file dsr-rsendbuff.h.
References m_maxLen.
Referenced by ns3::dsr::DsrSendBuffTest::DoRun(), and ns3::dsr::DsrRouting::Start().
Here is the caller graph for this function:
|
inline |
Definition at line 147 of file dsr-rsendbuff.h.
References m_sendBufferTimeout.
Referenced by ns3::dsr::DsrSendBuffTest::DoRun(), and ns3::dsr::DsrRouting::Start().
Here is the caller graph for this function:
|
private |
Definition at line 166 of file dsr-rsendbuff.h.
Referenced by Enqueue(), GetMaxQueueLen(), and SetMaxQueueLen().
|
private |
Definition at line 160 of file dsr-rsendbuff.h.
Referenced by Dequeue(), DropPacketWithDst(), Enqueue(), Find(), GetBuffer(), GetSize(), and Purge().
|
private |
Definition at line 168 of file dsr-rsendbuff.h.
Referenced by Enqueue(), GetSendBufferTimeout(), and SetSendBufferTimeout().