Unique packets identification cache used for simple duplicate detection. More...
#include <aodv-id-cache.h>
Classes | |
struct | IsExpired |
struct | UniqueId |
Unique packet ID. More... | |
Public Member Functions | |
IdCache (Time lifetime) | |
c-tor | |
Time | GetLifeTime () const |
Return lifetime for existing entries in cache. | |
uint32_t | GetSize () |
Return number of entries in cache. | |
bool | IsDuplicate (Ipv4Address addr, uint32_t id) |
Check that entry (addr, id) exists in cache. Add entry, if it doesn't exist. | |
void | Purge () |
Remove all expired entries. | |
void | SetLifetime (Time lifetime) |
Set lifetime for future added entries. | |
Private Attributes | |
std::vector< UniqueId > | m_idCache |
Already seen IDs. | |
Time | m_lifetime |
Default lifetime for ID records. | |
Unique packets identification cache used for simple duplicate detection.
Definition at line 45 of file aodv-id-cache.h.