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

Helper class used to remember already seen packets and detect duplicates. More...

#include <aodv-dpd.h>

Public Member Functions

 DuplicatePacketDetection (Time lifetime)
 C-tor.
 
Time GetLifetime () const
 Get duplicate records lifetimes.
 
bool IsDuplicate (Ptr< const Packet > p, const Ipv4Header &header)
 Check that the packet is duplicated. If not, save information about this packet.
 
void SetLifetime (Time lifetime)
 Set duplicate records lifetimes.
 

Private Attributes

IdCache m_idCache
 Impl.
 

Detailed Description

Helper class used to remember already seen packets and detect duplicates.

Currently duplicate detection is based on uinique packet ID given by Packet::GetUid () This approach is known to be weak and should be changed.

Definition at line 43 of file aodv-dpd.h.


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