A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::dsr::ErrorBuffEntry Class Reference

DSR Error Buffer Entry. More...

#include <dsr-errorbuff.h>

+ Collaboration diagram for ns3::dsr::ErrorBuffEntry:

Public Member Functions

 ErrorBuffEntry (Ptr< const Packet > pa=0, Ipv4Address d=Ipv4Address(), Ipv4Address s=Ipv4Address(), Ipv4Address n=Ipv4Address(), Time exp=Simulator::Now(), uint8_t p=0)
 Create an ErrorBuffEntry with the given parameters. More...
 
bool operator== (ErrorBuffEntry const &o) const
 Compare send buffer entries. More...
 
Fields
Ptr< const PacketGetPacket () const
 
void SetPacket (Ptr< const Packet > p)
 
Ipv4Address GetDestination () const
 
void SetDestination (Ipv4Address d)
 
Ipv4Address GetSource () const
 
void SetSource (Ipv4Address s)
 
Ipv4Address GetNextHop () const
 
void SetNextHop (Ipv4Address n)
 
void SetExpireTime (Time exp)
 
Time GetExpireTime () const
 
void SetProtocol (uint8_t p)
 
uint8_t GetProtocol () const
 

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 45 of file dsr-errorbuff.h.

Constructor & Destructor Documentation

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

Create an ErrorBuffEntry 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 58 of file dsr-errorbuff.h.

Member Function Documentation

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

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

References m_dst.

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

+ Here is the caller graph for this function:

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

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

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

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

References m_nextHop.

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

+ Here is the caller graph for this function:

Ptr<const Packet> ns3::dsr::ErrorBuffEntry::GetPacket ( ) const
inline
uint8_t ns3::dsr::ErrorBuffEntry::GetProtocol ( ) const
inline

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

References m_protocol.

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

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

References m_source.

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

+ Here is the caller graph for this function:

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

Compare send buffer entries.

Parameters
oanother ErrorBuffEntry
Returns
true if equal

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

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

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

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

References m_dst.

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

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

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

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

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

References m_nextHop.

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

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

References m_packet.

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

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

References m_protocol.

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

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

References m_source, and s.

Member Data Documentation

Ipv4Address ns3::dsr::ErrorBuffEntry::m_dst
private

Destination address.

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

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

Time ns3::dsr::ErrorBuffEntry::m_expire
private

Expire time for queue entry.

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

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

Ipv4Address ns3::dsr::ErrorBuffEntry::m_nextHop
private

Nexthop address.

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

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

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

Data packet.

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

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

uint8_t ns3::dsr::ErrorBuffEntry::m_protocol
private

The protocol number.

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

Referenced by GetProtocol(), and SetProtocol().

Ipv4Address ns3::dsr::ErrorBuffEntry::m_source
private

Source address.

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

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


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