DSR Network Queue Entry. More...
#include "dsr-network-queue.h"
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< 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== (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< 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 53 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 65 of file dsr-network-queue.h.
|
inline |
Get inserted time stamp function.
Definition at line 154 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 138 of file dsr-network-queue.h.
References m_nextHopAddr.
Referenced by ns3::dsr::DsrRouting::SendRealDown().
Get packet function.
Definition at line 90 of file dsr-network-queue.h.
References m_packet.
Referenced by ns3::dsr::DsrRouting::SendRealDown().
|
inline |
Get source address function.
Definition at line 122 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 79 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 162 of file dsr-network-queue.h.
References tstamp.
Referenced by ns3::dsr::DsrNetworkQueue::Enqueue().
Set IP route function.
route |
Definition at line 114 of file dsr-network-queue.h.
References m_ipv4Route.
|
inline |
Set next hop address function.
addr | the next hop IP address |
Definition at line 146 of file dsr-network-queue.h.
References m_nextHopAddr.
Set packet function.
p | the current packet |
Definition at line 98 of file dsr-network-queue.h.
References m_packet.
|
inline |
Set source address function.
addr | the source IP address |
Definition at line 130 of file dsr-network-queue.h.
References m_srcAddr.
Definition at line 174 of file dsr-network-queue.h.
Referenced by GetIpv4Route(), operator==(), and SetIpv4Route().
|
private |
next hop address
Definition at line 171 of file dsr-network-queue.h.
Referenced by GetNextHopAddress(), operator==(), and SetNextHopAddress().
Data packet.
the packet
Definition at line 169 of file dsr-network-queue.h.
Referenced by GetPacket(), operator==(), and SetPacket().
|
private |
source address
Definition at line 170 of file dsr-network-queue.h.
Referenced by GetSourceAddress(), operator==(), and SetSourceAddress().
|
private |
timestamp
Definition at line 172 of file dsr-network-queue.h.
Referenced by GetInsertedTimeStamp(), operator==(), and SetInsertedTimeStamp().