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. | |
Time | GetInsertedTimeStamp () const |
Get inserted time stamp function. | |
Ptr< Ipv4Route > | GetIpv4Route () const |
Get IP route function. | |
Ipv4Address | GetNextHopAddress () const |
Get next hop address function. | |
Ptr< const Packet > | GetPacket () 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< Ipv4Route > | m_ipv4Route |
Ipv4Route. | |
Ipv4Address | m_nextHopAddr |
next hop address | |
Ptr< const Packet > | m_packet |
Data packet. | |
Ipv4Address | m_srcAddr |
source address | |
Time | tstamp |
timestamp | |
DSR Network Queue Entry.
Definition at line 46 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 58 of file dsr-network-queue.h.
|
inline |
Get inserted time stamp function.
Definition at line 160 of file dsr-network-queue.h.
References tstamp.
Get IP route function.
Definition at line 106 of file dsr-network-queue.h.
References m_ipv4Route.
Referenced by ns3::dsr::DsrRouting::SendRealDown().
|
inline |
Get next hop address function.
Definition at line 142 of file dsr-network-queue.h.
References m_nextHopAddr.
Referenced by ns3::dsr::DsrRouting::SendRealDown().
Get packet function.
Definition at line 88 of file dsr-network-queue.h.
References m_packet.
Referenced by ns3::dsr::DsrRouting::SendRealDown().
|
inline |
Get source address function.
Definition at line 124 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 76 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 169 of file dsr-network-queue.h.
References tstamp.
Referenced by ns3::dsr::DsrNetworkQueue::Enqueue().
Set IP route function.
route |
Definition at line 115 of file dsr-network-queue.h.
References m_ipv4Route.
|
inline |
Set next hop address function.
addr | the next hop IP address |
Definition at line 151 of file dsr-network-queue.h.
References m_nextHopAddr.
Set packet function.
p | the current packet |
Definition at line 97 of file dsr-network-queue.h.
References m_packet.
|
inline |
Set source address function.
addr | the source IP address |
Definition at line 133 of file dsr-network-queue.h.
References m_srcAddr.
Definition at line 181 of file dsr-network-queue.h.
Referenced by GetIpv4Route(), operator==(), and SetIpv4Route().
|
private |
next hop address
Definition at line 178 of file dsr-network-queue.h.
Referenced by GetNextHopAddress(), operator==(), and SetNextHopAddress().
Data packet.
the packet
Definition at line 176 of file dsr-network-queue.h.
Referenced by GetPacket(), operator==(), and SetPacket().
|
private |
source address
Definition at line 177 of file dsr-network-queue.h.
Referenced by GetSourceAddress(), operator==(), and SetSourceAddress().
|
private |
timestamp
Definition at line 179 of file dsr-network-queue.h.
Referenced by GetInsertedTimeStamp(), operator==(), and SetInsertedTimeStamp().