Classes | Public Member Functions

ns3::aodv::IdCache Class Reference
[AODV]

Unique packets identification cache used for simple duplicate detection. More...

#include <aodv-id-cache.h>

Collaboration diagram for ns3::aodv::IdCache:
Collaboration graph
[legend]

List of all members.

Classes

struct  IsExpired
struct  UniqueId
 Unique packet ID.

Public Member Functions

 IdCache (Time lifetime)
 c-tor
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.
uint32_t GetSize ()
 Return number of entries in cache.
void SetLifetime (Time lifetime)
 Set lifetime for future added entries.
Time GetLifeTime () const
 Return lifetime for existing entries in cache.

Detailed Description

Unique packets identification cache used for simple duplicate detection.


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