A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
aodv-dpd.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2009 IITP RAS
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 *
7 * Authors: Elena Buchatskaia <borovkovaes@iitp.ru>
8 * Pavel Boyko <boyko@iitp.ru>
9 */
10
11#include "aodv-dpd.h"
12
13namespace ns3
14{
15namespace aodv
16{
17
18bool
20{
21 return m_idCache.IsDuplicate(header.GetSource(), p->GetUid());
22}
23
24void
29
30Time
35
36} // namespace aodv
37} // namespace ns3
Packet header for IPv4.
Definition ipv4-header.h:23
Ipv4Address GetSource() const
Smart pointer class similar to boost::intrusive_ptr.
Simulation virtual time values and global simulation resolution.
Definition nstime.h:94
Time GetLifetime() const
Get duplicate record lifetime.
Definition aodv-dpd.cc:31
bool IsDuplicate(Ptr< const Packet > p, const Ipv4Header &header)
Check if the packet is a duplicate.
Definition aodv-dpd.cc:19
void SetLifetime(Time lifetime)
Set duplicate record lifetime.
Definition aodv-dpd.cc:25
void SetLifetime(Time lifetime)
Set lifetime for future added entries.
Time GetLifeTime() const
Return lifetime for existing entries in cache.
bool IsDuplicate(Ipv4Address addr, uint32_t id)
Check that entry (addr, id) exists in cache.
Every class exported by the ns3 library is enclosed in the ns3 namespace.