A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::dsr::DsrSendBuffEntry Class Reference

DSR Send Buffer Entry. More...

#include "dsr-rsendbuff.h"

+ Collaboration diagram for ns3::dsr::DsrSendBuffEntry:

Public Member Functions

 DsrSendBuffEntry (Ptr< const Packet > pa=nullptr, Ipv4Address d=Ipv4Address(), Time exp=Simulator::Now(), uint8_t p=0)
 Construct DsrSendBuffEntry with the given parameters.
 
Ipv4Address GetDestination () const
 Get destination address of entry.
 
Time GetExpireTime () const
 Get expire time for entry.
 
Ptr< const PacketGetPacket () const
 Get pointer to entry's packet.
 
uint8_t GetProtocol () const
 Get protocol value.
 
bool operator== (const DsrSendBuffEntry &o) const
 Compare send buffer entries.
 
void SetDestination (Ipv4Address d)
 Set destination address of entry.
 
void SetExpireTime (Time exp)
 Set expire time for entry.
 
void SetPacket (Ptr< const Packet > p)
 Set pointer to entry's packet.
 
void SetProtocol (uint8_t p)
 Set protocol value.
 

Private Attributes

Ipv4Address m_dst
 Destination address.
 
Time m_expire
 Expire time for queue entry.
 
Ptr< const Packetm_packet
 Data packet.
 
uint8_t m_protocol
 The protocol number.
 

Detailed Description

DSR Send Buffer Entry.

Definition at line 36 of file dsr-rsendbuff.h.

Constructor & Destructor Documentation

◆ DsrSendBuffEntry()

ns3::dsr::DsrSendBuffEntry::DsrSendBuffEntry ( Ptr< const Packet > pa = nullptr,
Ipv4Address d = Ipv4Address(),
Time exp = Simulator::Now(),
uint8_t p = 0 )
inline

Construct DsrSendBuffEntry with the given parameters.

Parameters
papacket
ddestination address
expexpiration time
pprotocol number

Definition at line 47 of file dsr-rsendbuff.h.

Member Function Documentation

◆ GetDestination()

Ipv4Address ns3::dsr::DsrSendBuffEntry::GetDestination ( ) const
inline

Get destination address of entry.

Returns
the destination IPv4 address

Definition at line 91 of file dsr-rsendbuff.h.

References m_dst.

Referenced by ns3::dsr::DsrSendBuffer::Drop(), and ns3::dsr::DsrSendBuffer::Enqueue().

+ Here is the caller graph for this function:

◆ GetExpireTime()

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

Get expire time for entry.

Returns
the expire time

Definition at line 118 of file dsr-rsendbuff.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:

◆ GetPacket()

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

Get pointer to entry's packet.

Returns
the current packet

Definition at line 73 of file dsr-rsendbuff.h.

References m_packet.

Referenced by ns3::dsr::DsrSendBuffer::Dequeue(), ns3::dsr::DsrSendBuffer::Drop(), ns3::dsr::DsrSendBuffer::Enqueue(), and ns3::dsr::DsrRouting::SendPacketFromBuffer().

+ Here is the caller graph for this function:

◆ GetProtocol()

uint8_t ns3::dsr::DsrSendBuffEntry::GetProtocol ( ) const
inline

Get protocol value.

Returns
the protocol

Definition at line 136 of file dsr-rsendbuff.h.

References m_protocol.

◆ operator==()

bool ns3::dsr::DsrSendBuffEntry::operator== ( const DsrSendBuffEntry & o) const
inline

Compare send buffer entries.

Parameters
oanother DsrSendBuffEntry
Returns
true if equal

Definition at line 63 of file dsr-rsendbuff.h.

References m_dst, m_expire, and m_packet.

◆ SetDestination()

void ns3::dsr::DsrSendBuffEntry::SetDestination ( Ipv4Address d)
inline

Set destination address of entry.

Parameters
dthe destination IP address

Definition at line 100 of file dsr-rsendbuff.h.

References m_dst.

◆ SetExpireTime()

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

Set expire time for entry.

Parameters
expthe expire time

Definition at line 109 of file dsr-rsendbuff.h.

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

Referenced by ns3::dsr::DsrSendBuffer::Enqueue().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetPacket()

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

Set pointer to entry's packet.

Parameters
pthe current packet

Definition at line 82 of file dsr-rsendbuff.h.

References m_packet.

◆ SetProtocol()

void ns3::dsr::DsrSendBuffEntry::SetProtocol ( uint8_t p)
inline

Set protocol value.

Parameters
pthe protocol

Definition at line 127 of file dsr-rsendbuff.h.

References m_protocol.

Member Data Documentation

◆ m_dst

Ipv4Address ns3::dsr::DsrSendBuffEntry::m_dst
private

Destination address.

Definition at line 145 of file dsr-rsendbuff.h.

Referenced by GetDestination(), operator==(), and SetDestination().

◆ m_expire

Time ns3::dsr::DsrSendBuffEntry::m_expire
private

Expire time for queue entry.

Definition at line 147 of file dsr-rsendbuff.h.

Referenced by GetExpireTime(), operator==(), and SetExpireTime().

◆ m_packet

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

Data packet.

Definition at line 143 of file dsr-rsendbuff.h.

Referenced by GetPacket(), operator==(), and SetPacket().

◆ m_protocol

uint8_t ns3::dsr::DsrSendBuffEntry::m_protocol
private

The protocol number.

Definition at line 149 of file dsr-rsendbuff.h.

Referenced by GetProtocol(), and SetProtocol().


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