DSR Passive Buffer Entry. More...
#include "dsr-passive-buff.h"
Public Member Functions | |
DsrPassiveBuffEntry (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 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== (DsrPassiveBuffEntry const &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 45 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 61 of file dsr-passive-buff.h.
|
inline |
Get destination address function.
Definition at line 106 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 210 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 170 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 154 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 138 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 90 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 226 of file dsr-passive-buff.h.
References m_protocol.
|
inline |
Get segments left function.
Definition at line 186 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 122 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 114 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 202 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 178 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 162 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 146 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 218 of file dsr-passive-buff.h.
References m_protocol.
|
inline |
Set segments left.
seg | the number of segments left |
Definition at line 194 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 130 of file dsr-passive-buff.h.
References m_source.
Referenced by ns3::dsr::DsrRouting::PassiveEntryCheck().
|
private |
Destination address.
Definition at line 235 of file dsr-passive-buff.h.
Referenced by GetDestination(), operator==(), and SetDestination().
|
private |
Expire time for queue entry.
Definition at line 247 of file dsr-passive-buff.h.
Referenced by GetExpireTime(), operator==(), and SetExpireTime().
|
private |
Fragment offset.
Definition at line 243 of file dsr-passive-buff.h.
Referenced by GetFragmentOffset(), and SetFragmentOffset().
|
private |
Identification.
Definition at line 241 of file dsr-passive-buff.h.
Referenced by GetIdentification(), and SetIdentification().
|
private |
Nexthop address.
Definition at line 239 of file dsr-passive-buff.h.
Referenced by GetNextHop(), operator==(), and SetNextHop().
Data packet.
Definition at line 233 of file dsr-passive-buff.h.
Referenced by GetPacket(), operator==(), and SetPacket().
|
private |
The protocol number.
Definition at line 249 of file dsr-passive-buff.h.
Referenced by GetProtocol(), and SetProtocol().
|
private |
Segments left.
Definition at line 245 of file dsr-passive-buff.h.
Referenced by GetSegsLeft(), and SetSegsLeft().
|
private |
Source address.
Definition at line 237 of file dsr-passive-buff.h.
Referenced by GetSource(), operator==(), and SetSource().