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())
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
Ipv4Address m_dst
Time m_expire
uint16_t m_id
Ipv4Address m_nextHop
Ipv4Address m_ourAdd
Ptr< const Packetm_packet
uint8_t m_segsLeft
Ipv4Address m_src

Detailed Description

DSR Maintain Buffer Entry.

Definition at line 109 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

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

Member Function Documentation

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

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

References m_expire, and ns3::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 173 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 157 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 185 of file dsr-maintain-buff.h.

References m_expire, and ns3::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 149 of file dsr-maintain-buff.h.

References m_nextHop.

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

Definition at line 141 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 181 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 165 of file dsr-maintain-buff.h.

References m_src.

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

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

Referenced by GetAckId(), and SetAckId().

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

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

Referenced by GetDst(), and SetDst().

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

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

Referenced by GetExpireTime(), and SetExpireTime().

uint16_t ns3::dsr::MaintainBuffEntry::m_id
private

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

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

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

Referenced by GetNextHop(), and SetNextHop().

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

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

Referenced by GetOurAdd(), and SetOurAdd().

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

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

Referenced by GetPacket(), and SetPacket().

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

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

Referenced by GetSegsLeft(), and SetSegsLeft().

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

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

Referenced by GetSrc(), and SetSrc().


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