A Discrete-Event Network Simulator
API
ns3::dsr::DsrMaintainBuffEntry Class Reference

DSR Maintain Buffer Entry. More...

#include "dsr-maintain-buff.h"

+ Collaboration diagram for ns3::dsr::DsrMaintainBuffEntry:

Public Member Functions

 DsrMaintainBuffEntry (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 DsrMaintainBuffEntry with the given parameters. More...
 
uint16_t GetAckId () const
 
Ipv4Address GetDst () const
 
Time GetExpireTime () const
 
Ipv4Address GetNextHop () const
 
Ipv4Address GetOurAdd () const
 
Ptr< const PacketGetPacket () const
 
uint8_t GetSegsLeft () const
 
Ipv4Address GetSrc () const
 
void SetAckId (uint16_t ackId)
 
void SetDst (Ipv4Address n)
 
void SetExpireTime (Time exp)
 
void SetNextHop (Ipv4Address n)
 
void SetOurAdd (Ipv4Address us)
 
void SetPacket (Ptr< const Packet > p)
 
void SetSegsLeft (uint8_t segs)
 
void SetSrc (Ipv4Address s)
 

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::DsrMaintainBuffEntry::DsrMaintainBuffEntry ( 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 DsrMaintainBuffEntry 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::DsrMaintainBuffEntry::GetExpireTime ( ) const
inline

Definition at line 222 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::DsrMaintainBuffEntry::SetAckId ( uint16_t  ackId)
inline

Definition at line 206 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::DsrMaintainBuffEntry::SetDst ( Ipv4Address  n)
inline

Definition at line 190 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::DsrMaintainBuffEntry::SetExpireTime ( Time  exp)
inline

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

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

Referenced by ns3::dsr::DsrMaintainBuffer::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::DsrMaintainBuffEntry::SetNextHop ( Ipv4Address  n)
inline

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

References m_nextHop.

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

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

References m_ourAdd.

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

Definition at line 214 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::DsrMaintainBuffEntry::SetSrc ( Ipv4Address  s)
inline

Definition at line 198 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::DsrMaintainBuffEntry::m_ackId
private

The data ack id.

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

Referenced by GetAckId(), and SetAckId().

Ipv4Address ns3::dsr::DsrMaintainBuffEntry::m_dst
private

The destination address.

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

Referenced by GetDst(), and SetDst().

Time ns3::dsr::DsrMaintainBuffEntry::m_expire
private

Expire time for queue entry.

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

Referenced by GetExpireTime(), and SetExpireTime().

Ipv4Address ns3::dsr::DsrMaintainBuffEntry::m_nextHop
private

Next hop Ip address.

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

Referenced by GetNextHop(), and SetNextHop().

Ipv4Address ns3::dsr::DsrMaintainBuffEntry::m_ourAdd
private

Our own ip address.

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

Referenced by GetOurAdd(), and SetOurAdd().

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

Data packet.

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

Referenced by GetPacket(), and SetPacket().

uint8_t ns3::dsr::DsrMaintainBuffEntry::m_segsLeft
private

The segments left field.

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

Referenced by GetSegsLeft(), and SetSegsLeft().

Ipv4Address ns3::dsr::DsrMaintainBuffEntry::m_src
private

The source address.

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

Referenced by GetSrc(), and SetSrc().


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