DSR Error Buffer Entry. More...
#include "dsr-errorbuff.h"
Public Member Functions | |
DsrErrorBuffEntry (Ptr< const Packet > pa=nullptr, Ipv4Address d=Ipv4Address(), Ipv4Address s=Ipv4Address(), Ipv4Address n=Ipv4Address(), Time exp=Simulator::Now(), uint8_t p=0) | |
Create an DsrErrorBuffEntry with the given parameters. | |
Ipv4Address | GetDestination () const |
Get destination address. | |
Time | GetExpireTime () const |
Get expire time. | |
Ipv4Address | GetNextHop () const |
Get next hop. | |
Ptr< const Packet > | GetPacket () const |
Get packet from entry. | |
uint8_t | GetProtocol () const |
Get protocol number. | |
Ipv4Address | GetSource () const |
Get source address. | |
bool | operator== (const DsrErrorBuffEntry &o) const |
Compare send buffer entries. | |
void | SetDestination (Ipv4Address d) |
Set destination address. | |
void | SetExpireTime (Time exp) |
Set expire time. | |
void | SetNextHop (Ipv4Address n) |
Set next hop. | |
void | SetPacket (Ptr< const Packet > p) |
Set packet for entry. | |
void | SetProtocol (uint8_t p) |
Set protocol number. | |
void | SetSource (Ipv4Address s) |
Set source address. | |
Private Attributes | |
Ipv4Address | m_dst |
Destination address. | |
Time | m_expire |
Expire time for queue entry. | |
Ipv4Address | m_nextHop |
Nexthop address. | |
Ptr< const Packet > | m_packet |
Data packet. | |
uint8_t | m_protocol |
The protocol number. | |
Ipv4Address | m_source |
Source address. | |
DSR Error Buffer Entry.
Definition at line 36 of file dsr-errorbuff.h.
|
inline |
Create an DsrErrorBuffEntry 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 |
exp | expiration time |
p | protocol number |
Definition at line 49 of file dsr-errorbuff.h.
|
inline |
Get destination address.
Definition at line 98 of file dsr-errorbuff.h.
References m_dst.
Referenced by ns3::dsr::DsrErrorBuffer::Drop(), and ns3::dsr::DsrErrorBuffer::Enqueue().
|
inline |
Get expire time.
Definition at line 161 of file dsr-errorbuff.h.
References m_expire, and ns3::Simulator::Now().
Referenced by ns3::dsr::IsExpired::operator()().
|
inline |
Get next hop.
Definition at line 134 of file dsr-errorbuff.h.
References m_nextHop.
Referenced by ns3::dsr::DsrErrorBuffer::DropLink(), and ns3::dsr::DsrErrorBuffer::Enqueue().
Get packet from entry.
Definition at line 80 of file dsr-errorbuff.h.
References m_packet.
Referenced by ns3::dsr::DsrErrorBuffer::Dequeue(), ns3::dsr::DsrErrorBuffer::Drop(), ns3::dsr::DsrErrorBuffer::DropLink(), ns3::dsr::DsrErrorBuffer::Enqueue(), and ns3::dsr::DsrRouting::SendPacketFromBuffer().
|
inline |
Get protocol number.
Definition at line 179 of file dsr-errorbuff.h.
References m_protocol.
|
inline |
Get source address.
Definition at line 116 of file dsr-errorbuff.h.
References m_source.
Referenced by ns3::dsr::DsrErrorBuffer::DropLink(), and ns3::dsr::DsrErrorBuffer::Enqueue().
|
inline |
Compare send buffer entries.
o | another DsrErrorBuffEntry |
Definition at line 69 of file dsr-errorbuff.h.
References m_dst, m_expire, m_nextHop, m_packet, and m_source.
|
inline |
Set destination address.
d | the destination IPv4 address |
Definition at line 107 of file dsr-errorbuff.h.
References m_dst.
|
inline |
Set expire time.
exp | the expire time |
Definition at line 152 of file dsr-errorbuff.h.
References m_expire, and ns3::Simulator::Now().
Referenced by ns3::dsr::DsrErrorBuffer::Enqueue().
|
inline |
Set next hop.
n | the next hop IPv4 address |
Definition at line 143 of file dsr-errorbuff.h.
References m_nextHop.
Set packet for entry.
p | the packet |
Definition at line 89 of file dsr-errorbuff.h.
References m_packet.
|
inline |
Set protocol number.
p | the protocol number |
Definition at line 170 of file dsr-errorbuff.h.
References m_protocol.
|
inline |
Set source address.
s | the source IPv4 address |
Definition at line 125 of file dsr-errorbuff.h.
References m_source.
|
private |
Destination address.
destination address
Definition at line 188 of file dsr-errorbuff.h.
Referenced by GetDestination(), operator==(), and SetDestination().
|
private |
Expire time for queue entry.
expiration time
Definition at line 194 of file dsr-errorbuff.h.
Referenced by GetExpireTime(), operator==(), and SetExpireTime().
|
private |
Nexthop address.
next hop
Definition at line 192 of file dsr-errorbuff.h.
Referenced by GetNextHop(), operator==(), and SetNextHop().
Data packet.
the packet
Definition at line 186 of file dsr-errorbuff.h.
Referenced by GetPacket(), operator==(), and SetPacket().
|
private |
The protocol number.
Definition at line 196 of file dsr-errorbuff.h.
Referenced by GetProtocol(), and SetProtocol().
|
private |
Source address.
source address
Definition at line 190 of file dsr-errorbuff.h.
Referenced by GetSource(), operator==(), and SetSource().