A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::dsr::MaintainBuffEntry Class Reference

DSR Maintain Buffer Entry. More...

#include <dsr-maintain-buff.h>

+ Collaboration diagram for ns3::dsr::MaintainBuffEntry:

Public Member Functions

 MaintainBuffEntry (Ptr< const Packet > pa=0, Ipv4Address us=Ipv4Address(), Ipv4Address n=Ipv4Address(), Ipv4Address s=Ipv4Address(), Ipv4Address dst=Ipv4Address(), uint16_t ackId=0, uint8_t segs=0, Time exp=Simulator::Now())
 Construct a MaintainBuffEntry with the given parameters. More...
 
Fields
Ptr< const PacketGetPacket () const
 
void SetPacket (Ptr< const Packet > p)
 
Ipv4Address GetOurAdd () const
 
void SetOurAdd (Ipv4Address us)
 
Ipv4Address GetNextHop () const
 
void SetNextHop (Ipv4Address n)
 
Ipv4Address GetDst () const
 
void SetDst (Ipv4Address n)
 
Ipv4Address GetSrc () const
 
void SetSrc (Ipv4Address s)
 
uint16_t GetAckId () const
 
void SetAckId (uint16_t ackId)
 
uint8_t GetSegsLeft () const
 
void SetSegsLeft (uint8_t segs)
 
void SetExpireTime (Time exp)
 
Time GetExpireTime () const
 

Private Attributes

uint16_t m_ackId
 The data ack id. More...
 
Ipv4Address m_dst
 The destination address. More...
 
Time m_expire
 Expire time for queue entry. More...
 
Ipv4Address m_nextHop
 Next hop Ip address. More...
 
Ipv4Address m_ourAdd
 Our own ip address. More...
 
Ptr< const Packetm_packet
 Data packet. More...
 
uint8_t m_segsLeft
 The segments left field. More...
 
Ipv4Address m_src
 The source address. More...
 

Detailed Description

DSR Maintain Buffer Entry.

Definition at line 132 of file dsr-maintain-buff.h.

Constructor & Destructor Documentation

ns3::dsr::MaintainBuffEntry::MaintainBuffEntry ( Ptr< const Packet pa = 0,
Ipv4Address  us = Ipv4Address (),
Ipv4Address  n = Ipv4Address (),
Ipv4Address  s = Ipv4Address (),
Ipv4Address  dst = Ipv4Address (),
uint16_t  ackId = 0,
uint8_t  segs = 0,
Time  exp = Simulator::Now () 
)
inline

Construct a MaintainBuffEntry with the given parameters.

Parameters
papacket
usour IPv4 address
nnext hop IPv4 address
sIPv4 address of the source
dstIPv4 address of the destination
ackIdACK ID
segsnumber of segments left
expexpiration time

Definition at line 147 of file dsr-maintain-buff.h.

Member Function Documentation

Time ns3::dsr::MaintainBuffEntry::GetExpireTime ( ) const
inline

Definition at line 223 of file dsr-maintain-buff.h.

References m_expire, and ns3::Simulator::Now().

Referenced by ns3::dsr::IsExpired::operator()().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::dsr::MaintainBuffEntry::SetAckId ( uint16_t  ackId)
inline

Definition at line 207 of file dsr-maintain-buff.h.

References m_ackId.

Referenced by ns3::dsr::DsrRouting::CancelPassiveTimer(), ns3::dsr::DsrRouting::PassiveEntryCheck(), and ns3::dsr::DsrRouting::ScheduleNetworkPacketRetry().

+ Here is the caller graph for this function:

void ns3::dsr::MaintainBuffEntry::SetDst ( Ipv4Address  n)
inline

Definition at line 191 of file dsr-maintain-buff.h.

References m_dst.

Referenced by ns3::dsr::DsrRouting::CancelPassiveTimer(), and ns3::dsr::DsrRouting::PassiveEntryCheck().

+ Here is the caller graph for this function:

void ns3::dsr::MaintainBuffEntry::SetExpireTime ( Time  exp)
inline

Definition at line 219 of file dsr-maintain-buff.h.

References m_expire, and ns3::Simulator::Now().

Referenced by ns3::dsr::MaintainBuffer::Enqueue(), and ns3::dsr::DsrRouting::ScheduleNetworkPacketRetry().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::dsr::MaintainBuffEntry::SetNextHop ( Ipv4Address  n)
inline

Definition at line 183 of file dsr-maintain-buff.h.

References m_nextHop.

void ns3::dsr::MaintainBuffEntry::SetOurAdd ( Ipv4Address  us)
inline

Definition at line 175 of file dsr-maintain-buff.h.

References m_ourAdd.

void ns3::dsr::MaintainBuffEntry::SetPacket ( Ptr< const Packet p)
inline
void ns3::dsr::MaintainBuffEntry::SetSegsLeft ( uint8_t  segs)
inline

Definition at line 215 of file dsr-maintain-buff.h.

References m_segsLeft.

Referenced by ns3::dsr::DsrRouting::CancelPassiveTimer(), and ns3::dsr::DsrRouting::PassiveEntryCheck().

+ Here is the caller graph for this function:

void ns3::dsr::MaintainBuffEntry::SetSrc ( Ipv4Address  s)
inline

Definition at line 199 of file dsr-maintain-buff.h.

References m_src, and s.

Referenced by ns3::dsr::DsrRouting::CancelPassiveTimer(), and ns3::dsr::DsrRouting::PassiveEntryCheck().

+ Here is the caller graph for this function:

Member Data Documentation

uint16_t ns3::dsr::MaintainBuffEntry::m_ackId
private

The data ack id.

Definition at line 240 of file dsr-maintain-buff.h.

Referenced by GetAckId(), and SetAckId().

Ipv4Address ns3::dsr::MaintainBuffEntry::m_dst
private

The destination address.

Definition at line 238 of file dsr-maintain-buff.h.

Referenced by GetDst(), and SetDst().

Time ns3::dsr::MaintainBuffEntry::m_expire
private

Expire time for queue entry.

Definition at line 244 of file dsr-maintain-buff.h.

Referenced by GetExpireTime(), and SetExpireTime().

Ipv4Address ns3::dsr::MaintainBuffEntry::m_nextHop
private

Next hop Ip address.

Definition at line 234 of file dsr-maintain-buff.h.

Referenced by GetNextHop(), and SetNextHop().

Ipv4Address ns3::dsr::MaintainBuffEntry::m_ourAdd
private

Our own ip address.

Definition at line 232 of file dsr-maintain-buff.h.

Referenced by GetOurAdd(), and SetOurAdd().

Ptr<const Packet> ns3::dsr::MaintainBuffEntry::m_packet
private

Data packet.

Definition at line 230 of file dsr-maintain-buff.h.

Referenced by GetPacket(), and SetPacket().

uint8_t ns3::dsr::MaintainBuffEntry::m_segsLeft
private

The segments left field.

Definition at line 242 of file dsr-maintain-buff.h.

Referenced by GetSegsLeft(), and SetSegsLeft().

Ipv4Address ns3::dsr::MaintainBuffEntry::m_src
private

The source address.

Definition at line 236 of file dsr-maintain-buff.h.

Referenced by GetSrc(), and SetSrc().


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