A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
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.
 
Ipv4Address GetDestination () const
 Return IPv4 address of the destination.
 
Time GetExpireTime () const
 Return the remaining time before the RREQ entry expires.
 
uint16_t GetIdentification () const
 Return identification.
 
Ipv4Address GetSource () const
 Return IPv4 address of the source.
 
bool operator== (const DsrReceivedRreqEntry &o) const
 Compare send buffer entries (destination address and identification)
 
void SetDestination (Ipv4Address d)
 Set IPv4 address of the destination.
 
void SetExpireTime (Time exp)
 Set expire time for the RREQ entry.
 
void SetIdentification (uint16_t i)
 Set identification.
 
void SetSource (Ipv4Address s)
 Set IPv4 address of the source.
 

Private Attributes

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

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 80 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 89 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 110 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 184 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 150 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 130 of file dsr-rreq-table.h.

References m_source.

◆ operator==()

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

Compare send buffer entries (destination address and identification)

Parameters
oanother DsrReceivedRreqEntry
Returns
true if equal

Definition at line 100 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 120 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 160 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 140 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 destination.

Definition at line 191 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 194 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 193 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 192 of file dsr-rreq-table.h.

Referenced by GetSource(), and SetSource().


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