A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
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 > packet=nullptr, Ipv4Address ourAddress=Ipv4Address(), Ipv4Address nextHop=Ipv4Address(), Ipv4Address src=Ipv4Address(), Ipv4Address dst=Ipv4Address(), uint16_t ackId=0, uint8_t segsLeft=0, Time expire=Simulator::Now())
 Construct a DsrMaintainBuffEntry with the given parameters.
 
uint16_t GetAckId () const
 Get acknowledge ID.
 
Ipv4Address GetDst () const
 Get destination address.
 
Time GetExpireTime () const
 Get expiration time.
 
Ipv4Address GetNextHop () const
 Get next hop of entry.
 
Ipv4Address GetOurAdd () const
 Get local address of entry.
 
Ptr< const PacketGetPacket () const
 Get packet.
 
uint8_t GetSegsLeft () const
 Get segments left.
 
Ipv4Address GetSrc () const
 Get source address.
 
void SetAckId (uint16_t ackId)
 Set acknowledge ID.
 
void SetDst (Ipv4Address n)
 Set destination address.
 
void SetExpireTime (Time exp)
 Set expiration time.
 
void SetNextHop (Ipv4Address n)
 Set next hop of entry.
 
void SetOurAdd (Ipv4Address us)
 Set local address of entry.
 
void SetPacket (Ptr< const Packet > p)
 Set packet.
 
void SetSegsLeft (uint8_t segs)
 Set segments left.
 
void SetSrc (Ipv4Address s)
 Set source address.
 

Private Attributes

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

Detailed Description

DSR Maintain Buffer Entry.

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

Constructor & Destructor Documentation

◆ DsrMaintainBuffEntry()

ns3::dsr::DsrMaintainBuffEntry::DsrMaintainBuffEntry ( Ptr< const Packet > packet = nullptr,
Ipv4Address ourAddress = Ipv4Address(),
Ipv4Address nextHop = Ipv4Address(),
Ipv4Address src = Ipv4Address(),
Ipv4Address dst = Ipv4Address(),
uint16_t ackId = 0,
uint8_t segsLeft = 0,
Time expire = Simulator::Now() )
inline

Construct a DsrMaintainBuffEntry with the given parameters.

Parameters
packetpacket
ourAddressour IPv4 address
nextHopnext hop IPv4 address
srcIPv4 address of the source
dstIPv4 address of the destination
ackIdACK ID
segsLeftnumber of segments left
expireexpiration time

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

Member Function Documentation

◆ GetAckId()

◆ GetDst()

◆ GetExpireTime()

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

Get expiration time.

Returns
the expiration time

Definition at line 379 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:

◆ GetNextHop()

◆ GetOurAdd()

◆ GetPacket()

Ptr< const Packet > ns3::dsr::DsrMaintainBuffEntry::GetPacket ( ) const
inline

◆ GetSegsLeft()

◆ GetSrc()

◆ SetAckId()

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

Set acknowledge ID.

Parameters
ackIdthe acknowledge ID

Definition at line 343 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:

◆ SetDst()

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

Set destination address.

Parameters
nthe destination IP address

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

References m_dst.

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

+ Here is the caller graph for this function:

◆ SetExpireTime()

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

Set expiration time.

Parameters
expthe expire time

Definition at line 370 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:

◆ SetNextHop()

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

Set next hop of entry.

Parameters
nthe next hop IP address

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

References m_nextHop.

Referenced by ns3::dsr::DsrRouting::PromiscReceive().

+ Here is the caller graph for this function:

◆ SetOurAdd()

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

Set local address of entry.

Parameters
usthe local IP address

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

References m_ourAdd.

Referenced by ns3::dsr::DsrRouting::PromiscReceive().

+ Here is the caller graph for this function:

◆ SetPacket()

void ns3::dsr::DsrMaintainBuffEntry::SetPacket ( Ptr< const Packet > p)
inline

Set packet.

Parameters
pthe current packet

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

References m_packet.

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

+ Here is the caller graph for this function:

◆ SetSegsLeft()

void ns3::dsr::DsrMaintainBuffEntry::SetSegsLeft ( uint8_t segs)
inline

Set segments left.

Parameters
segsthe number of segments left

Definition at line 361 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:

◆ SetSrc()

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

Set source address.

Parameters
sthe source IP address

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

References m_src.

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

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_ackId

uint16_t ns3::dsr::DsrMaintainBuffEntry::m_ackId
private

The data ack id.

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

Referenced by GetAckId(), and SetAckId().

◆ m_dst

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

The destination address.

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

Referenced by GetDst(), and SetDst().

◆ m_expire

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

Expire time for queue entry.

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

Referenced by GetExpireTime(), and SetExpireTime().

◆ m_nextHop

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

Next hop Ip address.

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

Referenced by GetNextHop(), and SetNextHop().

◆ m_ourAdd

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

Our own ip address.

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

Referenced by GetOurAdd(), and SetOurAdd().

◆ m_packet

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

Data packet.

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

Referenced by GetPacket(), and SetPacket().

◆ m_segsLeft

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

The segments left field.

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

Referenced by GetSegsLeft(), and SetSegsLeft().

◆ m_src

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

The source address.

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

Referenced by GetSrc(), and SetSrc().


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