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

DSR Passive Buffer Entry. More...

#include <dsr-passive-buff.h>

+ Collaboration diagram for ns3::dsr::PassiveBuffEntry:

Public Member Functions

 PassiveBuffEntry (Ptr< const Packet > pa=0, Ipv4Address d=Ipv4Address(), Ipv4Address s=Ipv4Address(), Ipv4Address n=Ipv4Address(), uint16_t i=0, uint16_t f=0, uint8_t seg=0, Time exp=Simulator::Now(), uint8_t p=0)
 
bool operator== (PassiveBuffEntry const &o) const
 
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)
 
uint16_t GetIdentification () const
 
void SetIdentification (uint16_t i)
 
uint16_t GetFragmentOffset () const
 
void SetFragmentOffset (uint16_t f)
 
uint8_t GetSegsLeft () const
 
void SetSegsLeft (uint8_t seg)
 
void SetExpireTime (Time exp)
 
Time GetExpireTime () const
 
void SetProtocol (uint8_t p)
 
uint8_t GetProtocol () const
 

Private Attributes

Ipv4Address m_dst
 
Time m_expire
 
uint16_t m_fragmentOffset
 
uint16_t m_identification
 
Ipv4Address m_nextHop
 
Ptr< const Packetm_packet
 
uint8_t m_protocol
 
uint8_t m_segsLeft
 
Ipv4Address m_source
 

Detailed Description

DSR Passive Buffer Entry.

Definition at line 45 of file dsr-passive-buff.h.

Constructor & Destructor Documentation

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

Definition at line 49 of file dsr-passive-buff.h.

Member Function Documentation

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

Definition at line 81 of file dsr-passive-buff.h.

References m_dst.

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

+ Here is the caller graph for this function:

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

Definition at line 133 of file dsr-passive-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:

uint16_t ns3::dsr::PassiveBuffEntry::GetFragmentOffset ( ) const
inline

Definition at line 113 of file dsr-passive-buff.h.

References m_fragmentOffset.

Referenced by ns3::dsr::PassiveBuffer::AllEqual(), and ns3::dsr::PassiveBuffer::Enqueue().

+ Here is the caller graph for this function:

uint16_t ns3::dsr::PassiveBuffEntry::GetIdentification ( ) const
inline

Definition at line 105 of file dsr-passive-buff.h.

References m_identification.

Referenced by ns3::dsr::PassiveBuffer::AllEqual(), and ns3::dsr::PassiveBuffer::Enqueue().

+ Here is the caller graph for this function:

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

Definition at line 97 of file dsr-passive-buff.h.

References m_nextHop.

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

+ Here is the caller graph for this function:

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

Definition at line 141 of file dsr-passive-buff.h.

References m_protocol.

uint8_t ns3::dsr::PassiveBuffEntry::GetSegsLeft ( ) const
inline

Definition at line 121 of file dsr-passive-buff.h.

References m_segsLeft.

Referenced by ns3::dsr::PassiveBuffer::AllEqual(), and ns3::dsr::PassiveBuffer::Enqueue().

+ Here is the caller graph for this function:

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

Definition at line 89 of file dsr-passive-buff.h.

References m_source.

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

+ Here is the caller graph for this function:

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

Compare send buffer entries

Returns
true if equal

Definition at line 67 of file dsr-passive-buff.h.

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

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

Definition at line 85 of file dsr-passive-buff.h.

References m_dst.

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

+ Here is the caller graph for this function:

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

Definition at line 129 of file dsr-passive-buff.h.

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

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::dsr::PassiveBuffEntry::SetFragmentOffset ( uint16_t  f)
inline

Definition at line 117 of file dsr-passive-buff.h.

References m_fragmentOffset.

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

+ Here is the caller graph for this function:

void ns3::dsr::PassiveBuffEntry::SetIdentification ( uint16_t  i)
inline

Definition at line 109 of file dsr-passive-buff.h.

References m_identification.

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

+ Here is the caller graph for this function:

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

Definition at line 101 of file dsr-passive-buff.h.

References m_nextHop.

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

Definition at line 77 of file dsr-passive-buff.h.

References m_packet.

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

+ Here is the caller graph for this function:

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

Definition at line 137 of file dsr-passive-buff.h.

References m_protocol.

void ns3::dsr::PassiveBuffEntry::SetSegsLeft ( uint8_t  seg)
inline

Definition at line 125 of file dsr-passive-buff.h.

References m_segsLeft.

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

+ Here is the caller graph for this function:

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

Definition at line 93 of file dsr-passive-buff.h.

References m_source, and s.

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

+ Here is the caller graph for this function:

Member Data Documentation

Ipv4Address ns3::dsr::PassiveBuffEntry::m_dst
private

Definition at line 150 of file dsr-passive-buff.h.

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

Time ns3::dsr::PassiveBuffEntry::m_expire
private

Definition at line 160 of file dsr-passive-buff.h.

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

uint16_t ns3::dsr::PassiveBuffEntry::m_fragmentOffset
private

Definition at line 157 of file dsr-passive-buff.h.

Referenced by GetFragmentOffset(), and SetFragmentOffset().

uint16_t ns3::dsr::PassiveBuffEntry::m_identification
private

Definition at line 156 of file dsr-passive-buff.h.

Referenced by GetIdentification(), and SetIdentification().

Ipv4Address ns3::dsr::PassiveBuffEntry::m_nextHop
private

Definition at line 154 of file dsr-passive-buff.h.

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

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

Definition at line 148 of file dsr-passive-buff.h.

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

uint8_t ns3::dsr::PassiveBuffEntry::m_protocol
private

Definition at line 162 of file dsr-passive-buff.h.

Referenced by GetProtocol(), and SetProtocol().

uint8_t ns3::dsr::PassiveBuffEntry::m_segsLeft
private

Definition at line 158 of file dsr-passive-buff.h.

Referenced by GetSegsLeft(), and SetSegsLeft().

Ipv4Address ns3::dsr::PassiveBuffEntry::m_source
private

Definition at line 152 of file dsr-passive-buff.h.

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


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