A Discrete-Event Network Simulator
API
ns3::dsr::DsrReceivedRreqEntry Class Reference

The request entry for intermediate nodes to check if they have received this request or not This is used to control the duplication request from being processed. More...

#include "dsr-rreq-table.h"

+ Collaboration diagram for ns3::dsr::DsrReceivedRreqEntry:

Public Member Functions

 DsrReceivedRreqEntry (Ipv4Address d=Ipv4Address(), uint16_t i=0)
 Construct a DsrReceivedRreqEntry with the given parameters. More...
 
Ipv4Address GetDestination () const
 Return IPv4 address of the destination. More...
 
Time GetExpireTime () const
 Return the remaining time before the RREQ entry expires. More...
 
uint16_t GetIdentification () const
 Return identification. More...
 
Ipv4Address GetSource () const
 Return IPv4 address of the source. More...
 
bool operator== (DsrReceivedRreqEntry const &o) const
 Compare send buffer entries (destination address and identification) More...
 
void SetDestination (Ipv4Address d)
 Set IPv4 address of the destination. More...
 
void SetExpireTime (Time exp)
 Set expire time for the RREQ entry. More...
 
void SetIdentification (uint16_t i)
 Set identification. More...
 
void SetSource (Ipv4Address s)
 Set IPv4 address of the source. More...
 

Private Attributes

Ipv4Address m_destination
 IPv4 address of the destinaton. More...
 
Time m_expire
 Route request expire time. More...
 
uint16_t m_identification
 Route request identification. More...
 
Ipv4Address m_source
 IPv4 address of the source. More...
 

Detailed Description

The request entry for intermediate nodes to check if they have received this request or not This is used to control the duplication request from being processed.

Definition at line 86 of file dsr-rreq-table.h.

Constructor & Destructor Documentation

◆ DsrReceivedRreqEntry()

ns3::dsr::DsrReceivedRreqEntry::DsrReceivedRreqEntry ( Ipv4Address  d = Ipv4Address (),
uint16_t  i = 0 
)
inline

Construct a DsrReceivedRreqEntry with the given parameters.

Parameters
dIPv4 address of the destination
iidentification

Definition at line 95 of file dsr-rreq-table.h.

Member Function Documentation

◆ GetDestination()

Ipv4Address ns3::dsr::DsrReceivedRreqEntry::GetDestination ( ) const
inline

Return IPv4 address of the destination.

Returns
IPv4 address of the destination

Definition at line 116 of file dsr-rreq-table.h.

References m_destination.

◆ GetExpireTime()

Time ns3::dsr::DsrReceivedRreqEntry::GetExpireTime ( ) const
inline

Return the remaining time before the RREQ entry expires.

Note that we return the remaining time but the stored value is the absolute time.

Returns
the remaining time before the RREQ entry expires

Definition at line 183 of file dsr-rreq-table.h.

References m_expire, and ns3::Simulator::Now().

+ Here is the call graph for this function:

◆ GetIdentification()

uint16_t ns3::dsr::DsrReceivedRreqEntry::GetIdentification ( ) const
inline

Return identification.

Returns
identification

Definition at line 152 of file dsr-rreq-table.h.

References m_identification.

◆ GetSource()

Ipv4Address ns3::dsr::DsrReceivedRreqEntry::GetSource ( ) const
inline

Return IPv4 address of the source.

Returns
IPv4 address of the source

Definition at line 134 of file dsr-rreq-table.h.

References m_source.

◆ operator==()

bool ns3::dsr::DsrReceivedRreqEntry::operator== ( DsrReceivedRreqEntry const &  o) const
inline

Compare send buffer entries (destination address and identification)

Parameters
oanother DsrReceivedRreqEntry
Returns
true if equal

Definition at line 105 of file dsr-rreq-table.h.

References m_destination, and m_identification.

◆ SetDestination()

void ns3::dsr::DsrReceivedRreqEntry::SetDestination ( Ipv4Address  d)
inline

Set IPv4 address of the destination.

Parameters
dIPv4 address of the destination

Definition at line 125 of file dsr-rreq-table.h.

References m_destination.

Referenced by ns3::dsr::DsrRreqTable::FindSourceEntry().

+ Here is the caller graph for this function:

◆ SetExpireTime()

void ns3::dsr::DsrReceivedRreqEntry::SetExpireTime ( Time  exp)
inline

Set expire time for the RREQ entry.

Note that the parameter is duration but the stored value is the absolute time.

Parameters
expduration before expire

Definition at line 172 of file dsr-rreq-table.h.

References m_expire, and ns3::Simulator::Now().

+ Here is the call graph for this function:

◆ SetIdentification()

void ns3::dsr::DsrReceivedRreqEntry::SetIdentification ( uint16_t  i)
inline

Set identification.

Parameters
iidentification

Definition at line 161 of file dsr-rreq-table.h.

References m_identification.

Referenced by ns3::dsr::DsrRreqTable::FindSourceEntry().

+ Here is the caller graph for this function:

◆ SetSource()

void ns3::dsr::DsrReceivedRreqEntry::SetSource ( Ipv4Address  s)
inline

Set IPv4 address of the source.

Parameters
sIPv4 address of the source

Definition at line 143 of file dsr-rreq-table.h.

References m_source.

Member Data Documentation

◆ m_destination

Ipv4Address ns3::dsr::DsrReceivedRreqEntry::m_destination
private

IPv4 address of the destinaton.

Definition at line 189 of file dsr-rreq-table.h.

Referenced by GetDestination(), operator==(), and SetDestination().

◆ m_expire

Time ns3::dsr::DsrReceivedRreqEntry::m_expire
private

Route request expire time.

Definition at line 192 of file dsr-rreq-table.h.

Referenced by GetExpireTime(), and SetExpireTime().

◆ m_identification

uint16_t ns3::dsr::DsrReceivedRreqEntry::m_identification
private

Route request identification.

Definition at line 191 of file dsr-rreq-table.h.

Referenced by GetIdentification(), operator==(), and SetIdentification().

◆ m_source

Ipv4Address ns3::dsr::DsrReceivedRreqEntry::m_source
private

IPv4 address of the source.

Definition at line 190 of file dsr-rreq-table.h.

Referenced by GetSource(), and SetSource().


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