DSR Send Buffer Entry. More...
#include "dsr-rsendbuff.h"
Public Member Functions | |
DsrSendBuffEntry (Ptr< const Packet > pa=0, Ipv4Address d=Ipv4Address(), Time exp=Simulator::Now(), uint8_t p=0) | |
Construct DsrSendBuffEntry with the given parameters. More... | |
Ipv4Address | GetDestination () const |
Get destination address of entry. More... | |
Time | GetExpireTime () const |
Get expire time for entry. More... | |
Ptr< const Packet > | GetPacket () const |
Get pointer to entry's packet. More... | |
uint8_t | GetProtocol () const |
Get protocol value. More... | |
bool | operator== (DsrSendBuffEntry const &o) const |
Compare send buffer entries. More... | |
void | SetDestination (Ipv4Address d) |
Set destination address of entry. More... | |
void | SetExpireTime (Time exp) |
Set expire time for entry. More... | |
void | SetPacket (Ptr< const Packet > p) |
Set pointer to entry's packet. More... | |
void | SetProtocol (uint8_t p) |
Set protocol value. More... | |
Private Attributes | |
Ipv4Address | m_dst |
Destination address. More... | |
Time | m_expire |
Expire time for queue entry. More... | |
Ptr< const Packet > | m_packet |
Data packet. More... | |
uint8_t | m_protocol |
The protocol number. More... | |
DSR Send Buffer Entry.
Definition at line 45 of file dsr-rsendbuff.h.
|
inline |
Construct DsrSendBuffEntry with the given parameters.
pa | packet |
d | destination address |
exp | expiration time |
p | protocol number |
Definition at line 56 of file dsr-rsendbuff.h.
|
inline |
Get destination address of entry.
Definition at line 95 of file dsr-rsendbuff.h.
References m_dst.
Referenced by ns3::dsr::DsrSendBuffer::Drop(), and ns3::dsr::DsrSendBuffer::Enqueue().
|
inline |
Get expire time for entry.
Definition at line 119 of file dsr-rsendbuff.h.
References m_expire, and ns3::Simulator::Now().
Referenced by ns3::dsr::IsExpired::operator()().
Get pointer to entry's packet.
Definition at line 79 of file dsr-rsendbuff.h.
References m_packet.
Referenced by ns3::dsr::DsrSendBuffer::Dequeue(), ns3::dsr::DsrSendBuffer::Drop(), ns3::dsr::DsrSendBuffer::Enqueue(), and ns3::dsr::DsrRouting::SendPacketFromBuffer().
|
inline |
Get protocol value.
Definition at line 135 of file dsr-rsendbuff.h.
References m_protocol.
|
inline |
Compare send buffer entries.
o | another DsrSendBuffEntry |
Definition at line 69 of file dsr-rsendbuff.h.
|
inline |
Set destination address of entry.
d | the destination IP address |
Definition at line 103 of file dsr-rsendbuff.h.
References m_dst.
|
inline |
Set expire time for entry.
exp | the expire time |
Definition at line 111 of file dsr-rsendbuff.h.
References m_expire, and ns3::Simulator::Now().
Referenced by ns3::dsr::DsrSendBuffer::Enqueue().
Set pointer to entry's packet.
p | the current packet |
Definition at line 87 of file dsr-rsendbuff.h.
References m_packet.
|
inline |
Set protocol value.
p | the protocol |
Definition at line 127 of file dsr-rsendbuff.h.
References m_protocol.
|
private |
Destination address.
Definition at line 144 of file dsr-rsendbuff.h.
Referenced by GetDestination(), operator==(), and SetDestination().
|
private |
Expire time for queue entry.
Definition at line 146 of file dsr-rsendbuff.h.
Referenced by GetExpireTime(), operator==(), and SetExpireTime().
Data packet.
Definition at line 142 of file dsr-rsendbuff.h.
Referenced by GetPacket(), operator==(), and SetPacket().
|
private |
The protocol number.
Definition at line 148 of file dsr-rsendbuff.h.
Referenced by GetProtocol(), and SetProtocol().