DSR Passive Buffer Entry. More...
#include "dsr-passive-buff.h"
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 Packet > | GetPacket () 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 Packet > | m_packet |
Data packet. | |
uint8_t | m_protocol |
The protocol number. | |
uint8_t | m_segsLeft |
Segments left. | |
Ipv4Address | m_source |
Source address. | |
DSR Passive Buffer Entry.
Definition at line 36 of file dsr-passive-buff.h.
|
inline |
Construct a DsrPassiveBuffEntry with the given parameters.
pa | packet |
d | IPv4 address of the destination |
s | IPv4 address of the source |
n | IPv4 address of the next hop node |
i | ID |
f | fragment offset |
seg | number of segments left |
exp | expiration time |
p | protocol number |
Definition at line 52 of file dsr-passive-buff.h.
|
inline |
Get destination address function.
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().
|
inline |
Get 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()().
|
inline |
Get fragment offset function.
Definition at line 179 of file dsr-passive-buff.h.
References m_fragmentOffset.
Referenced by ns3::dsr::DsrPassiveBuffer::AllEqual(), and ns3::dsr::DsrPassiveBuffer::Enqueue().
|
inline |
Get identification function.
Definition at line 161 of file dsr-passive-buff.h.
References m_identification.
Referenced by ns3::dsr::DsrPassiveBuffer::AllEqual(), and ns3::dsr::DsrPassiveBuffer::Enqueue().
|
inline |
Get next hop address function.
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().
Get packet function.
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().
|
inline |
Get protocol.
Definition at line 242 of file dsr-passive-buff.h.
References m_protocol.
|
inline |
Get segments left function.
Definition at line 197 of file dsr-passive-buff.h.
References m_segsLeft.
Referenced by ns3::dsr::DsrPassiveBuffer::AllEqual(), and ns3::dsr::DsrPassiveBuffer::Enqueue().
|
inline |
Get source address function.
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().
|
inline |
|
inline |
Set destination address function.
d | the destination IP address |
Definition at line 116 of file dsr-passive-buff.h.
References m_dst.
Referenced by ns3::dsr::DsrRouting::PassiveEntryCheck().
|
inline |
Set expire time.
exp | the 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().
|
inline |
Set fragment offset function.
f | the fragment offset |
Definition at line 188 of file dsr-passive-buff.h.
References m_fragmentOffset.
Referenced by ns3::dsr::DsrRouting::PassiveEntryCheck().
|
inline |
Set identification function.
i | the identification |
Definition at line 170 of file dsr-passive-buff.h.
References m_identification.
Referenced by ns3::dsr::DsrRouting::PassiveEntryCheck().
|
inline |
Set next hop address function.
n | the next hop address |
Definition at line 152 of file dsr-passive-buff.h.
References m_nextHop.
Set packet function.
p | the current packet |
Definition at line 98 of file dsr-passive-buff.h.
References m_packet.
Referenced by ns3::dsr::DsrRouting::PassiveEntryCheck().
|
inline |
Set protocol function.
p | the protocol |
Definition at line 233 of file dsr-passive-buff.h.
References m_protocol.
|
inline |
Set segments left.
seg | the number of segments left |
Definition at line 206 of file dsr-passive-buff.h.
References m_segsLeft.
Referenced by ns3::dsr::DsrRouting::PassiveEntryCheck().
|
inline |
Set surce address function.
s | the source IP address |
Definition at line 134 of file dsr-passive-buff.h.
References m_source.
Referenced by ns3::dsr::DsrRouting::PassiveEntryCheck().
|
private |
Destination address.
Definition at line 251 of file dsr-passive-buff.h.
Referenced by GetDestination(), operator==(), and SetDestination().
|
private |
Expire time for queue entry.
Definition at line 263 of file dsr-passive-buff.h.
Referenced by GetExpireTime(), operator==(), and SetExpireTime().
|
private |
Fragment offset.
Definition at line 259 of file dsr-passive-buff.h.
Referenced by GetFragmentOffset(), and SetFragmentOffset().
|
private |
Identification.
Definition at line 257 of file dsr-passive-buff.h.
Referenced by GetIdentification(), and SetIdentification().
|
private |
Nexthop address.
Definition at line 255 of file dsr-passive-buff.h.
Referenced by GetNextHop(), operator==(), and SetNextHop().
Data packet.
Definition at line 249 of file dsr-passive-buff.h.
Referenced by GetPacket(), operator==(), and SetPacket().
|
private |
The protocol number.
Definition at line 265 of file dsr-passive-buff.h.
Referenced by GetProtocol(), and SetProtocol().
|
private |
Segments left.
Definition at line 261 of file dsr-passive-buff.h.
Referenced by GetSegsLeft(), and SetSegsLeft().
|
private |
Source address.
Definition at line 253 of file dsr-passive-buff.h.
Referenced by GetSource(), operator==(), and SetSource().