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. More... | |
Ipv4Address | GetDestination () const |
Get destination address function. More... | |
Time | GetExpireTime () const |
Get expire time. More... | |
uint16_t | GetFragmentOffset () const |
Get fragment offset function. More... | |
uint16_t | GetIdentification () const |
Get identification function. More... | |
Ipv4Address | GetNextHop () const |
Get next hop address function. More... | |
Ptr< const Packet > | GetPacket () const |
Get packet function. More... | |
uint8_t | GetProtocol () const |
Get protocol. More... | |
uint8_t | GetSegsLeft () const |
Get segments left function. More... | |
Ipv4Address | GetSource () const |
Get source address function. More... | |
bool | operator== (const DsrPassiveBuffEntry &o) const |
Compare send buffer entries. More... | |
void | SetDestination (Ipv4Address d) |
Set destination address function. More... | |
void | SetExpireTime (Time exp) |
Set expire time. More... | |
void | SetFragmentOffset (uint16_t f) |
Set fragment offset function. More... | |
void | SetIdentification (uint16_t i) |
Set identification function. More... | |
void | SetNextHop (Ipv4Address n) |
Set next hop address function. More... | |
void | SetPacket (Ptr< const Packet > p) |
Set packet function. More... | |
void | SetProtocol (uint8_t p) |
Set protocol function. More... | |
void | SetSegsLeft (uint8_t seg) |
Set segments left. More... | |
void | SetSource (Ipv4Address s) |
Set surce address function. More... | |
Private Attributes | |
Ipv4Address | m_dst |
Destination address. More... | |
Time | m_expire |
Expire time for queue entry. More... | |
uint16_t | m_fragmentOffset |
Fragment offset. More... | |
uint16_t | m_identification |
Identification. More... | |
Ipv4Address | m_nextHop |
Nexthop address. More... | |
Ptr< const Packet > | m_packet |
Data packet. More... | |
uint8_t | m_protocol |
The protocol number. More... | |
uint8_t | m_segsLeft |
Segments left. More... | |
Ipv4Address | m_source |
Source address. More... | |
DSR Passive Buffer Entry.
Definition at line 47 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 63 of file dsr-passive-buff.h.
|
inline |
Get destination address function.
Definition at line 118 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 235 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 190 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 172 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 154 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 100 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 253 of file dsr-passive-buff.h.
References m_protocol.
|
inline |
Get segments left function.
Definition at line 208 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 136 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 127 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 226 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 199 of file dsr-passive-buff.h.
References f(), and m_fragmentOffset.
Referenced by ns3::dsr::DsrRouting::PassiveEntryCheck().
|
inline |
Set identification function.
i | the identification |
Definition at line 181 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 163 of file dsr-passive-buff.h.
References m_nextHop.
Set packet function.
p | the current packet |
Definition at line 109 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 244 of file dsr-passive-buff.h.
References m_protocol.
|
inline |
Set segments left.
seg | the number of segments left |
Definition at line 217 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 145 of file dsr-passive-buff.h.
References m_source.
Referenced by ns3::dsr::DsrRouting::PassiveEntryCheck().
|
private |
Destination address.
Definition at line 262 of file dsr-passive-buff.h.
Referenced by GetDestination(), operator==(), and SetDestination().
|
private |
Expire time for queue entry.
Definition at line 274 of file dsr-passive-buff.h.
Referenced by GetExpireTime(), operator==(), and SetExpireTime().
|
private |
Fragment offset.
Definition at line 270 of file dsr-passive-buff.h.
Referenced by GetFragmentOffset(), and SetFragmentOffset().
|
private |
Identification.
Definition at line 268 of file dsr-passive-buff.h.
Referenced by GetIdentification(), and SetIdentification().
|
private |
Nexthop address.
Definition at line 266 of file dsr-passive-buff.h.
Referenced by GetNextHop(), operator==(), and SetNextHop().
Data packet.
Definition at line 260 of file dsr-passive-buff.h.
Referenced by GetPacket(), operator==(), and SetPacket().
|
private |
The protocol number.
Definition at line 276 of file dsr-passive-buff.h.
Referenced by GetProtocol(), and SetProtocol().
|
private |
Segments left.
Definition at line 272 of file dsr-passive-buff.h.
Referenced by GetSegsLeft(), and SetSegsLeft().
|
private |
Source address.
Definition at line 264 of file dsr-passive-buff.h.
Referenced by GetSource(), operator==(), and SetSource().