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=0, Ipv4Address s=Ipv4Address(), Ipv4Address n=Ipv4Address(), Time exp=Simulator::Now(), Ptr< Ipv4Route > r=0)
 Construct a DsrNetworkQueueEntry with the given parameters. More...
 
Time GetInsertedTimeStamp (void) 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== (DsrNetworkQueueEntry const &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 53 of file dsr-network-queue.h.

Constructor & Destructor Documentation

◆ DsrNetworkQueueEntry()

ns3::dsr::DsrNetworkQueueEntry::DsrNetworkQueueEntry ( Ptr< const Packet pa = 0,
Ipv4Address  s = Ipv4Address (),
Ipv4Address  n = Ipv4Address (),
Time  exp = Simulator::Now (),
Ptr< Ipv4Route r = 0 
)
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 65 of file dsr-network-queue.h.

Member Function Documentation

◆ GetInsertedTimeStamp()

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

Get inserted time stamp function.

Returns
the inserted time stamp

Definition at line 154 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 138 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 90 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 122 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== ( DsrNetworkQueueEntry const &  o) const
inline

Compare send buffer entries.

Parameters
oentry to compare
Returns
true if equal

Definition at line 79 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 162 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 114 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 146 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 98 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 130 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 174 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 171 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 169 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 170 of file dsr-network-queue.h.

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

◆ tstamp

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

timestamp

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

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


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