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

DSR Passive Buffer Entry. More...

#include "dsr-passive-buff.h"

+ Collaboration diagram for ns3::dsr::DsrPassiveBuffEntry:

Public Member Functions

 DsrPassiveBuffEntry (Ptr< const Packet > pa=nullptr, 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 DsrPassiveBuffEntry with the given parameters.
 
Ipv4Address GetDestination () const
 Get destination address function.
 
Time GetExpireTime () const
 Get expire time.
 
uint16_t GetFragmentOffset () const
 Get fragment offset function.
 
uint16_t GetIdentification () const
 Get identification function.
 
Ipv4Address GetNextHop () const
 Get next hop address function.
 
Ptr< const PacketGetPacket () const
 Get packet function.
 
uint8_t GetProtocol () const
 Get protocol.
 
uint8_t GetSegsLeft () const
 Get segments left function.
 
Ipv4Address GetSource () const
 Get source address function.
 
bool operator== (const DsrPassiveBuffEntry &o) const
 Compare send buffer entries.
 
void SetDestination (Ipv4Address d)
 Set destination address function.
 
void SetExpireTime (Time exp)
 Set expire time.
 
void SetFragmentOffset (uint16_t f)
 Set fragment offset function.
 
void SetIdentification (uint16_t i)
 Set identification function.
 
void SetNextHop (Ipv4Address n)
 Set next hop address function.
 
void SetPacket (Ptr< const Packet > p)
 Set packet function.
 
void SetProtocol (uint8_t p)
 Set protocol function.
 
void SetSegsLeft (uint8_t seg)
 Set segments left.
 
void SetSource (Ipv4Address s)
 Set surce address function.
 

Private Attributes

Ipv4Address m_dst
 Destination address.
 
Time m_expire
 Expire time for queue entry.
 
uint16_t m_fragmentOffset
 Fragment offset.
 
uint16_t m_identification
 Identification.
 
Ipv4Address m_nextHop
 Nexthop address.
 
Ptr< const Packetm_packet
 Data packet.
 
uint8_t m_protocol
 The protocol number.
 
uint8_t m_segsLeft
 Segments left.
 
Ipv4Address m_source
 Source address.
 

Detailed Description

DSR Passive Buffer Entry.

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

Constructor & Destructor Documentation

◆ DsrPassiveBuffEntry()

ns3::dsr::DsrPassiveBuffEntry::DsrPassiveBuffEntry ( Ptr< const Packet > pa = nullptr,
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 DsrPassiveBuffEntry 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 52 of file dsr-passive-buff.h.

Member Function Documentation

◆ GetDestination()

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

Get destination address function.

Returns
the destination IP address

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

References m_dst.

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

+ Here is the caller graph for this function:

◆ GetExpireTime()

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

Get expire time.

Returns
the expire time

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

◆ GetFragmentOffset()

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

Get fragment offset function.

Returns
the fragment offset

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

References m_fragmentOffset.

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

+ Here is the caller graph for this function:

◆ GetIdentification()

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

Get identification function.

Returns
the identification

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

References m_identification.

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

+ Here is the caller graph for this function:

◆ GetNextHop()

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

Get next hop address function.

Returns
the next hop IP address

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

References m_nextHop.

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

+ Here is the caller graph for this function:

◆ GetPacket()

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

Get packet function.

Returns
the current packet

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

References m_packet.

Referenced by ns3::dsr::DsrPassiveBuffer::AllEqual(), ns3::dsr::DsrPassiveBuffer::Dequeue(), ns3::dsr::DsrPassiveBuffer::Drop(), ns3::dsr::DsrPassiveBuffer::DropLink(), and ns3::dsr::DsrPassiveBuffer::Enqueue().

+ Here is the caller graph for this function:

◆ GetProtocol()

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

Get protocol.

Returns
the protocol number

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

References m_protocol.

◆ GetSegsLeft()

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

Get segments left function.

Returns
the number of segments left

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

References m_segsLeft.

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

+ Here is the caller graph for this function:

◆ GetSource()

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

Get source address function.

Returns
the source IP address

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

References m_source.

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

+ Here is the caller graph for this function:

◆ operator==()

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

Compare send buffer entries.

Parameters
opassive buffer entry to compare
Returns
true if equal

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

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

◆ SetDestination()

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

Set destination address function.

Parameters
dthe destination IP address

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

References m_dst.

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

+ Here is the caller graph for this function:

◆ SetExpireTime()

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

Set expire time.

Parameters
expthe expire time

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

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

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

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

◆ SetFragmentOffset()

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

Set fragment offset function.

Parameters
fthe fragment offset

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

References m_fragmentOffset.

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

+ Here is the caller graph for this function:

◆ SetIdentification()

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

Set identification function.

Parameters
ithe identification

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

References m_identification.

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

+ Here is the caller graph for this function:

◆ SetNextHop()

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

Set next hop address function.

Parameters
nthe next hop address

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

References m_nextHop.

◆ SetPacket()

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

Set packet function.

Parameters
pthe current packet

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

References m_packet.

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

+ Here is the caller graph for this function:

◆ SetProtocol()

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

Set protocol function.

Parameters
pthe protocol

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

References m_protocol.

◆ SetSegsLeft()

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

Set segments left.

Parameters
segthe number of segments left

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

References m_segsLeft.

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

+ Here is the caller graph for this function:

◆ SetSource()

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

Set surce address function.

Parameters
sthe source IP address

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

References m_source.

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

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_dst

Ipv4Address ns3::dsr::DsrPassiveBuffEntry::m_dst
private

Destination address.

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

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

◆ m_expire

Time ns3::dsr::DsrPassiveBuffEntry::m_expire
private

Expire time for queue entry.

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

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

◆ m_fragmentOffset

uint16_t ns3::dsr::DsrPassiveBuffEntry::m_fragmentOffset
private

Fragment offset.

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

Referenced by GetFragmentOffset(), and SetFragmentOffset().

◆ m_identification

uint16_t ns3::dsr::DsrPassiveBuffEntry::m_identification
private

Identification.

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

Referenced by GetIdentification(), and SetIdentification().

◆ m_nextHop

Ipv4Address ns3::dsr::DsrPassiveBuffEntry::m_nextHop
private

Nexthop address.

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

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

◆ m_packet

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

Data packet.

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

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

◆ m_protocol

uint8_t ns3::dsr::DsrPassiveBuffEntry::m_protocol
private

The protocol number.

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

Referenced by GetProtocol(), and SetProtocol().

◆ m_segsLeft

uint8_t ns3::dsr::DsrPassiveBuffEntry::m_segsLeft
private

Segments left.

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

Referenced by GetSegsLeft(), and SetSegsLeft().

◆ m_source

Ipv4Address ns3::dsr::DsrPassiveBuffEntry::m_source
private

Source address.

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

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


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