A Discrete-Event Network Simulator
API
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. More...
 
Time GetInsertedTimeStamp () const
 Get inserted time stamp function. More...
 
Ptr< Ipv4RouteGetIpv4Route () const
 Get IP route function. More...
 
Ipv4Address GetNextHopAddress () const
 Get next hop address function. More...
 
Ptr< const PacketGetPacket () const
 Get packet function. More...
 
Ipv4Address GetSourceAddress () const
 Get source address function. More...
 
bool operator== (const DsrNetworkQueueEntry &o) const
 Compare send buffer entries. More...
 
void SetInsertedTimeStamp (Time time)
 Set inserted time stamp function. More...
 
void SetIpv4Route (Ptr< Ipv4Route > route)
 Set IP route function. More...
 
void SetNextHopAddress (Ipv4Address addr)
 Set next hop address function. More...
 
void SetPacket (Ptr< const Packet > p)
 Set packet function. More...
 
void SetSourceAddress (Ipv4Address addr)
 Set source address function. More...
 

Private Attributes

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

Detailed Description

DSR Network Queue Entry.

Definition at line 57 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 69 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 171 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 117 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 153 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 99 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 135 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 87 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 180 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 126 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 162 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 108 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 144 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 192 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 189 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 187 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 188 of file dsr-network-queue.h.

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

◆ tstamp

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

timestamp

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

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


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