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

DSR Error Buffer Entry. More...

#include "dsr-errorbuff.h"

+ Collaboration diagram for ns3::dsr::DsrErrorBuffEntry:

Public Member Functions

 DsrErrorBuffEntry (Ptr< const Packet > pa=nullptr, Ipv4Address d=Ipv4Address(), Ipv4Address s=Ipv4Address(), Ipv4Address n=Ipv4Address(), Time exp=Simulator::Now(), uint8_t p=0)
 Create an DsrErrorBuffEntry with the given parameters. More...
 
Ipv4Address GetDestination () const
 Get destination address. More...
 
Time GetExpireTime () const
 Get expire time. More...
 
Ipv4Address GetNextHop () const
 Get next hop. More...
 
Ptr< const PacketGetPacket () const
 Get packet from entry. More...
 
uint8_t GetProtocol () const
 Get protocol number. More...
 
Ipv4Address GetSource () const
 Get source address. More...
 
bool operator== (const DsrErrorBuffEntry &o) const
 Compare send buffer entries. More...
 
void SetDestination (Ipv4Address d)
 Set destination address. More...
 
void SetExpireTime (Time exp)
 Set expire time. More...
 
void SetNextHop (Ipv4Address n)
 Set next hop. More...
 
void SetPacket (Ptr< const Packet > p)
 Set packet for entry. More...
 
void SetProtocol (uint8_t p)
 Set protocol number. More...
 
void SetSource (Ipv4Address s)
 Set source address. More...
 

Private Attributes

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

Detailed Description

DSR Error Buffer Entry.

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

Constructor & Destructor Documentation

◆ DsrErrorBuffEntry()

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

Create an DsrErrorBuffEntry with the given parameters.

Parameters
papacket
dIPv4 address of the destination
sIPv4 address of the source
nIPv4 address of the next hop
expexpiration time
pprotocol number

Definition at line 60 of file dsr-errorbuff.h.

Member Function Documentation

◆ GetDestination()

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

Get destination address.

Returns
the destination IPv4 address

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

References m_dst.

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

+ Here is the caller graph for this function:

◆ GetExpireTime()

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

Get expire time.

Returns
the expire time

Definition at line 172 of file dsr-errorbuff.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()

Ipv4Address ns3::dsr::DsrErrorBuffEntry::GetNextHop ( ) const
inline

Get next hop.

Returns
the next hop address

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

References m_nextHop.

Referenced by ns3::dsr::DsrErrorBuffer::DropLink(), and ns3::dsr::DsrErrorBuffer::Enqueue().

+ Here is the caller graph for this function:

◆ GetPacket()

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

Get packet from entry.

Returns
the packet

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

References m_packet.

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

+ Here is the caller graph for this function:

◆ GetProtocol()

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

Get protocol number.

Returns
the protocol number

Definition at line 190 of file dsr-errorbuff.h.

References m_protocol.

◆ GetSource()

Ipv4Address ns3::dsr::DsrErrorBuffEntry::GetSource ( ) const
inline

Get source address.

Returns
the source IPv4 address

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

References m_source.

Referenced by ns3::dsr::DsrErrorBuffer::DropLink(), and ns3::dsr::DsrErrorBuffer::Enqueue().

+ Here is the caller graph for this function:

◆ operator==()

bool ns3::dsr::DsrErrorBuffEntry::operator== ( const DsrErrorBuffEntry o) const
inline

Compare send buffer entries.

Parameters
oanother DsrErrorBuffEntry
Returns
true if equal

Definition at line 80 of file dsr-errorbuff.h.

References m_dst, m_expire, m_nextHop, m_packet, and m_source.

◆ SetDestination()

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

Set destination address.

Parameters
dthe destination IPv4 address

Definition at line 118 of file dsr-errorbuff.h.

References m_dst.

◆ SetExpireTime()

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

Set expire time.

Parameters
expthe expire time

Definition at line 163 of file dsr-errorbuff.h.

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

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

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

◆ SetNextHop()

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

Set next hop.

Parameters
nthe next hop IPv4 address

Definition at line 154 of file dsr-errorbuff.h.

References m_nextHop.

◆ SetPacket()

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

Set packet for entry.

Parameters
pthe packet

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

References m_packet.

◆ SetProtocol()

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

Set protocol number.

Parameters
pthe protocol number

Definition at line 181 of file dsr-errorbuff.h.

References m_protocol.

◆ SetSource()

void ns3::dsr::DsrErrorBuffEntry::SetSource ( Ipv4Address  s)
inline

Set source address.

Parameters
sthe source IPv4 address

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

References m_source.

Member Data Documentation

◆ m_dst

Ipv4Address ns3::dsr::DsrErrorBuffEntry::m_dst
private

Destination address.

destination address

Definition at line 199 of file dsr-errorbuff.h.

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

◆ m_expire

Time ns3::dsr::DsrErrorBuffEntry::m_expire
private

Expire time for queue entry.

expiration time

Definition at line 205 of file dsr-errorbuff.h.

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

◆ m_nextHop

Ipv4Address ns3::dsr::DsrErrorBuffEntry::m_nextHop
private

Nexthop address.

next hop

Definition at line 203 of file dsr-errorbuff.h.

Referenced by GetNextHop(), operator==(), and SetNextHop().

◆ m_packet

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

Data packet.

the packet

Definition at line 197 of file dsr-errorbuff.h.

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

◆ m_protocol

uint8_t ns3::dsr::DsrErrorBuffEntry::m_protocol
private

The protocol number.

Definition at line 207 of file dsr-errorbuff.h.

Referenced by GetProtocol(), and SetProtocol().

◆ m_source

Ipv4Address ns3::dsr::DsrErrorBuffEntry::m_source
private

Source address.

source address

Definition at line 201 of file dsr-errorbuff.h.

Referenced by GetSource(), operator==(), and SetSource().


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