AODV route request queue. More...
#include <aodv-rqueue.h>
Public Member Functions | |
RequestQueue (uint32_t maxLen, Time routeToQueueTimeout) | |
Default c-tor. | |
bool | Dequeue (Ipv4Address dst, QueueEntry &entry) |
Return first found (the earliest) entry for given destination. | |
void | DropPacketWithDst (Ipv4Address dst) |
Remove all packets with destination IP address dst. | |
bool | Enqueue (QueueEntry &entry) |
Push entry in queue, if there is no entry with the same packet and destination address in queue. | |
bool | Find (Ipv4Address dst) |
Finds whether a packet with destination dst exists in the queue. | |
uint32_t | GetSize () |
Number of entries. | |
Fields | |
uint32_t | GetMaxQueueLen () const |
void | SetMaxQueueLen (uint32_t len) |
Time | GetQueueTimeout () const |
void | SetQueueTimeout (Time t) |
Private Member Functions | |
void | Drop (QueueEntry en, std::string reason) |
Notify that packet is dropped from queue by timeout. | |
void | Purge () |
Remove all expired entries. | |
Static Private Member Functions | |
static bool | IsEqual (QueueEntry en, const Ipv4Address dst) |
Private Attributes | |
uint32_t | m_maxLen |
The maximum number of packets that we allow a routing protocol to buffer. | |
std::vector< QueueEntry > | m_queue |
Time | m_queueTimeout |
The maximum period of time that a routing protocol is allowed to buffer a packet for, seconds. | |
AODV route request queue.
Since AODV is an on demand routing we queue requests while looking for route.
Definition at line 95 of file aodv-rqueue.h.