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

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< UniqueIdm_idCache
 Already seen IDs.
 
Time m_lifetime
 Default lifetime for ID records.
 

Detailed Description

Unique packets identification cache used for simple duplicate detection.

Definition at line 45 of file aodv-id-cache.h.


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