A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::dsr::DsrNetworkQueueEntry Class Reference

DSR Network Queue Entry. More...

#include "dsr-network-queue.h"

+ Collaboration diagram for ns3::dsr::DsrNetworkQueueEntry:

Public Member Functions

 DsrNetworkQueueEntry (Ptr< const Packet > pa=nullptr, Ipv4Address s=Ipv4Address(), Ipv4Address n=Ipv4Address(), Time exp=Simulator::Now(), Ptr< Ipv4Route > r=nullptr)
 Construct a DsrNetworkQueueEntry with the given parameters.
 
Time GetInsertedTimeStamp () const
 Get inserted time stamp function.
 
Ptr< Ipv4RouteGetIpv4Route () const
 Get IP route function.
 
Ipv4Address GetNextHopAddress () const
 Get next hop address function.
 
Ptr< const PacketGetPacket () const
 Get packet function.
 
Ipv4Address GetSourceAddress () const
 Get source address function.
 
bool operator== (const DsrNetworkQueueEntry &o) const
 Compare send buffer entries.
 
void SetInsertedTimeStamp (Time time)
 Set inserted time stamp function.
 
void SetIpv4Route (Ptr< Ipv4Route > route)
 Set IP route function.
 
void SetNextHopAddress (Ipv4Address addr)
 Set next hop address function.
 
void SetPacket (Ptr< const Packet > p)
 Set packet function.
 
void SetSourceAddress (Ipv4Address addr)
 Set source address function.
 

Private Attributes

Ptr< Ipv4Routem_ipv4Route
 Ipv4Route.
 
Ipv4Address m_nextHopAddr
 next hop address
 
Ptr< const Packetm_packet
 Data packet.
 
Ipv4Address m_srcAddr
 source address
 
Time tstamp
 timestamp
 

Detailed Description

DSR Network Queue Entry.

Definition at line 46 of file dsr-network-queue.h.

Constructor & Destructor Documentation

◆ DsrNetworkQueueEntry()

ns3::dsr::DsrNetworkQueueEntry::DsrNetworkQueueEntry ( Ptr< const Packet > pa = nullptr,
Ipv4Address s = Ipv4Address(),
Ipv4Address n = Ipv4Address(),
Time exp = Simulator::Now(),
Ptr< Ipv4Route > r = nullptr )
inline

Construct a DsrNetworkQueueEntry with the given parameters.

Parameters
papacket
sIPv4 address of the source
nIPv4 address of the next hop node
expexpiration time
rRoute

Definition at line 58 of file dsr-network-queue.h.

Member Function Documentation

◆ GetInsertedTimeStamp()

Time ns3::dsr::DsrNetworkQueueEntry::GetInsertedTimeStamp ( ) const
inline

Get inserted time stamp function.

Returns
the inserted time stamp

Definition at line 160 of file dsr-network-queue.h.

References tstamp.

◆ GetIpv4Route()

Ptr< Ipv4Route > ns3::dsr::DsrNetworkQueueEntry::GetIpv4Route ( ) const
inline

Get IP route function.

Returns
the IP route

Definition at line 106 of file dsr-network-queue.h.

References m_ipv4Route.

Referenced by ns3::dsr::DsrRouting::SendRealDown().

+ Here is the caller graph for this function:

◆ GetNextHopAddress()

Ipv4Address ns3::dsr::DsrNetworkQueueEntry::GetNextHopAddress ( ) const
inline

Get next hop address function.

Returns
the next hop IP address

Definition at line 142 of file dsr-network-queue.h.

References m_nextHopAddr.

Referenced by ns3::dsr::DsrRouting::SendRealDown().

+ Here is the caller graph for this function:

◆ GetPacket()

Ptr< const Packet > ns3::dsr::DsrNetworkQueueEntry::GetPacket ( ) const
inline

Get packet function.

Returns
the current packet

Definition at line 88 of file dsr-network-queue.h.

References m_packet.

Referenced by ns3::dsr::DsrRouting::SendRealDown().

+ Here is the caller graph for this function:

◆ GetSourceAddress()

Ipv4Address ns3::dsr::DsrNetworkQueueEntry::GetSourceAddress ( ) const
inline

Get source address function.

Returns
the source IP address

Definition at line 124 of file dsr-network-queue.h.

References m_srcAddr.

Referenced by ns3::dsr::DsrRouting::SendRealDown().

+ Here is the caller graph for this function:

◆ operator==()

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

Compare send buffer entries.

Parameters
oentry to compare
Returns
true if equal

Definition at line 76 of file dsr-network-queue.h.

References m_ipv4Route, m_nextHopAddr, m_packet, m_srcAddr, and tstamp.

◆ SetInsertedTimeStamp()

void ns3::dsr::DsrNetworkQueueEntry::SetInsertedTimeStamp ( Time time)
inline

Set inserted time stamp function.

Parameters
timethe inserted timestamp

Definition at line 169 of file dsr-network-queue.h.

References tstamp.

Referenced by ns3::dsr::DsrNetworkQueue::Enqueue().

+ Here is the caller graph for this function:

◆ SetIpv4Route()

void ns3::dsr::DsrNetworkQueueEntry::SetIpv4Route ( Ptr< Ipv4Route > route)
inline

Set IP route function.

Parameters
route

Definition at line 115 of file dsr-network-queue.h.

References m_ipv4Route.

◆ SetNextHopAddress()

void ns3::dsr::DsrNetworkQueueEntry::SetNextHopAddress ( Ipv4Address addr)
inline

Set next hop address function.

Parameters
addrthe next hop IP address

Definition at line 151 of file dsr-network-queue.h.

References m_nextHopAddr.

◆ SetPacket()

void ns3::dsr::DsrNetworkQueueEntry::SetPacket ( Ptr< const Packet > p)
inline

Set packet function.

Parameters
pthe current packet

Definition at line 97 of file dsr-network-queue.h.

References m_packet.

◆ SetSourceAddress()

void ns3::dsr::DsrNetworkQueueEntry::SetSourceAddress ( Ipv4Address addr)
inline

Set source address function.

Parameters
addrthe source IP address

Definition at line 133 of file dsr-network-queue.h.

References m_srcAddr.

Member Data Documentation

◆ m_ipv4Route

Ptr<Ipv4Route> ns3::dsr::DsrNetworkQueueEntry::m_ipv4Route
private

Ipv4Route.

Definition at line 181 of file dsr-network-queue.h.

Referenced by GetIpv4Route(), operator==(), and SetIpv4Route().

◆ m_nextHopAddr

Ipv4Address ns3::dsr::DsrNetworkQueueEntry::m_nextHopAddr
private

next hop address

Definition at line 178 of file dsr-network-queue.h.

Referenced by GetNextHopAddress(), operator==(), and SetNextHopAddress().

◆ m_packet

Ptr<const Packet> ns3::dsr::DsrNetworkQueueEntry::m_packet
private

Data packet.

the packet

Definition at line 176 of file dsr-network-queue.h.

Referenced by GetPacket(), operator==(), and SetPacket().

◆ m_srcAddr

Ipv4Address ns3::dsr::DsrNetworkQueueEntry::m_srcAddr
private

source address

Definition at line 177 of file dsr-network-queue.h.

Referenced by GetSourceAddress(), operator==(), and SetSourceAddress().

◆ tstamp

Time ns3::dsr::DsrNetworkQueueEntry::tstamp
private

timestamp

Definition at line 179 of file dsr-network-queue.h.

Referenced by GetInsertedTimeStamp(), operator==(), and SetInsertedTimeStamp().


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