DSR Network Queue Entry. More...
#include "dsr-network-queue.h"
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< Ipv4Route > | GetIpv4Route () const |
Get IP route function. More... | |
Ipv4Address | GetNextHopAddress () const |
Get next hop address function. More... | |
Ptr< const Packet > | GetPacket () 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< Ipv4Route > | m_ipv4Route |
Ipv4Route. More... | |
Ipv4Address | m_nextHopAddr |
next hop address More... | |
Ptr< const Packet > | m_packet |
Data packet. More... | |
Ipv4Address | m_srcAddr |
source address More... | |
Time | tstamp |
timestamp More... | |
DSR Network Queue Entry.
Definition at line 57 of file dsr-network-queue.h.
|
inline |
Construct a DsrNetworkQueueEntry with the given parameters.
pa | packet |
s | IPv4 address of the source |
n | IPv4 address of the next hop node |
exp | expiration time |
r | Route |
Definition at line 69 of file dsr-network-queue.h.
|
inline |
Get inserted time stamp function.
Definition at line 171 of file dsr-network-queue.h.
References tstamp.
Get IP route function.
Definition at line 117 of file dsr-network-queue.h.
References m_ipv4Route.
Referenced by ns3::dsr::DsrRouting::SendRealDown().
|
inline |
Get next hop address function.
Definition at line 153 of file dsr-network-queue.h.
References m_nextHopAddr.
Referenced by ns3::dsr::DsrRouting::SendRealDown().
Get packet function.
Definition at line 99 of file dsr-network-queue.h.
References m_packet.
Referenced by ns3::dsr::DsrRouting::SendRealDown().
|
inline |
Get source address function.
Definition at line 135 of file dsr-network-queue.h.
References m_srcAddr.
Referenced by ns3::dsr::DsrRouting::SendRealDown().
|
inline |
Compare send buffer entries.
o | entry to compare |
Definition at line 87 of file dsr-network-queue.h.
References m_ipv4Route, m_nextHopAddr, m_packet, m_srcAddr, and tstamp.
|
inline |
Set inserted time stamp function.
time | the inserted timestamp |
Definition at line 180 of file dsr-network-queue.h.
References tstamp.
Referenced by ns3::dsr::DsrNetworkQueue::Enqueue().
Set IP route function.
route |
Definition at line 126 of file dsr-network-queue.h.
References m_ipv4Route.
|
inline |
Set next hop address function.
addr | the next hop IP address |
Definition at line 162 of file dsr-network-queue.h.
References m_nextHopAddr.
Set packet function.
p | the current packet |
Definition at line 108 of file dsr-network-queue.h.
References m_packet.
|
inline |
Set source address function.
addr | the source IP address |
Definition at line 144 of file dsr-network-queue.h.
References m_srcAddr.
Definition at line 192 of file dsr-network-queue.h.
Referenced by GetIpv4Route(), operator==(), and SetIpv4Route().
|
private |
next hop address
Definition at line 189 of file dsr-network-queue.h.
Referenced by GetNextHopAddress(), operator==(), and SetNextHopAddress().
Data packet.
the packet
Definition at line 187 of file dsr-network-queue.h.
Referenced by GetPacket(), operator==(), and SetPacket().
|
private |
source address
Definition at line 188 of file dsr-network-queue.h.
Referenced by GetSourceAddress(), operator==(), and SetSourceAddress().
|
private |
timestamp
Definition at line 190 of file dsr-network-queue.h.
Referenced by GetInsertedTimeStamp(), operator==(), and SetInsertedTimeStamp().