35 #include "ns3/ipv4-route.h"    36 #include "ns3/socket.h"    56   for (std::vector<DsrSendBuffEntry>::const_iterator i = 
m_sendBuffer.begin (); i
    91   for (std::vector<DsrSendBuffEntry>::iterator i = 
m_sendBuffer.begin (); i
    94       if (i->GetDestination () == dst)
    96           Drop (*i, 
"DropPacketWithDst");
   100                                  { 
return en.GetDestination () == dst; });
   113       if (i->GetDestination () == dst)
   130   for (std::vector<DsrSendBuffEntry>::const_iterator i = 
m_sendBuffer.begin (); i
   133       if (i->GetDestination () == dst)
   165   for (std::vector<DsrSendBuffEntry>::iterator i = 
m_sendBuffer.begin (); i
   171           Drop (*i, 
"Drop out-dated packet ");
 uint32_t GetSize()
Number of entries. 
uint64_t GetUid(void) const
Returns the packet's Uid. 
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
Ipv4Address GetDestination() const
Get destination address of entry. 
std::vector< DsrSendBuffEntry > m_sendBuffer
The send buffer to cache unsent packet. 
uint32_t GetSize(void) const
Returns the the size in bytes of the packet (including the zero-filled initial payload). 
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name. 
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO. 
void Purge()
Remove all expired entries. 
Ptr< const Packet > GetPacket() const
Get pointer to entry's packet. 
void SetExpireTime(Time exp)
Set expire time for entry. 
void DropPacketWithDst(Ipv4Address dst)
Remove all packets with destination IP address dst. 
Time m_sendBufferTimeout
The maximum period of time that a routing protocol is allowed to buffer a packet for, seconds. 
void Drop(DsrSendBuffEntry en, std::string reason)
Notify that packet is dropped from queue by timeout. 
bool Find(Ipv4Address dst)
Check if a packet with destination dst exists in the queue. 
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC. 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
Time GetExpireTime() const
Get expire time for entry. 
bool Enqueue(DsrSendBuffEntry &entry)
Push entry in queue, if there is no entry with the same packet and destination address in queue...
Ipv4 addresses are stored in host order in this class. 
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG. 
Time Seconds(double value)
Construct a Time in the indicated unit. 
bool operator()(DsrErrorBuffEntry const &e) const
comparison operator 
uint32_t m_maxLen
The maximum number of packets that we allow a routing protocol to buffer. 
bool Dequeue(Ipv4Address dst, DsrSendBuffEntry &entry)
Return first found (the earliest) entry for the given destination.