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)
 Construct a PassiveBuffEntry with the given parameters. More...
 
bool operator== (PassiveBuffEntry 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)
 
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
 Destination address. More...
 
Time m_expire
 Expire time for queue entry. More...
 
uint16_t m_fragmentOffset
 
uint16_t m_identification
 
Ipv4Address m_nextHop
 Nexthop address. More...
 
Ptr< const Packetm_packet
 Data packet. More...
 
uint8_t m_protocol
 The protocol number. More...
 
uint8_t m_segsLeft
 
Ipv4Address m_source
 Source address. More...
 

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

Construct a PassiveBuffEntry with the given parameters.

Parameters
papacket
dIPv4 address of the destination
sIPv4 address of the source
nIPv4 address of the next hop node
iID
ffragment offset
segnumber of segments left
expexpiration time
pprotocol number

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

Member Function Documentation

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

Definition at line 93 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 145 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 125 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 117 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 109 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 153 of file dsr-passive-buff.h.

References m_protocol.

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

Definition at line 133 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 101 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 79 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 97 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 141 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 129 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 121 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 113 of file dsr-passive-buff.h.

References m_nextHop.

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

Definition at line 89 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 149 of file dsr-passive-buff.h.

References m_protocol.

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

Definition at line 137 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 105 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

Destination address.

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

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

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

Expire time for queue entry.

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

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

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

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

Referenced by GetFragmentOffset(), and SetFragmentOffset().

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

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

Referenced by GetIdentification(), and SetIdentification().

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

Nexthop address.

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

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

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

Data packet.

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

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

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

The protocol number.

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

Referenced by GetProtocol(), and SetProtocol().

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

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

Referenced by GetSegsLeft(), and SetSegsLeft().

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

Source address.

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

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


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