DSR Send Buffer Entry. More...
#include "dsr-rsendbuff.h"
Collaboration diagram for ns3::dsr::DsrSendBuffEntry:Public Member Functions | |
| DsrSendBuffEntry (Ptr< const Packet > pa=nullptr, Ipv4Address d=Ipv4Address(), Time exp=Simulator::Now(), uint8_t p=0) | |
| Construct DsrSendBuffEntry with the given parameters. | |
| Ipv4Address | GetDestination () const |
| Get destination address of entry. | |
| Time | GetExpireTime () const |
| Get expire time for entry. | |
| Ptr< const Packet > | GetPacket () const |
| Get pointer to entry's packet. | |
| uint8_t | GetProtocol () const |
| Get protocol value. | |
| bool | operator== (const DsrSendBuffEntry &o) const |
| Compare send buffer entries. | |
| void | SetDestination (Ipv4Address d) |
| Set destination address of entry. | |
| void | SetExpireTime (Time exp) |
| Set expire time for entry. | |
| void | SetPacket (Ptr< const Packet > p) |
| Set pointer to entry's packet. | |
| void | SetProtocol (uint8_t p) |
| Set protocol value. | |
Private Attributes | |
| Ipv4Address | m_dst |
| Destination address. | |
| Time | m_expire |
| Expire time for queue entry. | |
| Ptr< const Packet > | m_packet |
| Data packet. | |
| uint8_t | m_protocol |
| The protocol number. | |
DSR Send Buffer Entry.
Definition at line 36 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 47 of file dsr-rsendbuff.h.
References m_dst, m_expire, m_packet, m_protocol, ns3::Now(), and ns3::Simulator::Now().
Referenced by operator==().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Get destination address of entry.
Definition at line 91 of file dsr-rsendbuff.h.
References m_dst.
Referenced by ns3::dsr::DsrSendBuffer::Drop(), and ns3::dsr::DsrSendBuffer::Enqueue().
Here is the caller graph for this function:
|
inline |
Get expire time for entry.
Definition at line 118 of file dsr-rsendbuff.h.
References m_expire, and ns3::Simulator::Now().
Referenced by ns3::dsr::IsExpired::operator()().
Here is the call graph for this function:
Here is the caller graph for this function:Get pointer to entry's packet.
Definition at line 73 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().
Here is the caller graph for this function:
|
inline |
Get protocol value.
Definition at line 136 of file dsr-rsendbuff.h.
References m_protocol.
|
inline |
Compare send buffer entries.
| o | another DsrSendBuffEntry |
Definition at line 63 of file dsr-rsendbuff.h.
References DsrSendBuffEntry(), m_dst, m_expire, and m_packet.
Here is the call graph for this function:
|
inline |
Set destination address of entry.
| d | the destination IP address |
Definition at line 100 of file dsr-rsendbuff.h.
References m_dst.
|
inline |
Set expire time for entry.
| exp | the expire time |
Definition at line 109 of file dsr-rsendbuff.h.
References m_expire, and ns3::Simulator::Now().
Referenced by ns3::dsr::DsrSendBuffer::Enqueue().
Here is the call graph for this function:
Here is the caller graph for this function:Set pointer to entry's packet.
| p | the current packet |
Definition at line 82 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 145 of file dsr-rsendbuff.h.
Referenced by DsrSendBuffEntry(), GetDestination(), operator==(), and SetDestination().
|
private |
Expire time for queue entry.
Definition at line 147 of file dsr-rsendbuff.h.
Referenced by DsrSendBuffEntry(), GetExpireTime(), operator==(), and SetExpireTime().
Data packet.
Definition at line 143 of file dsr-rsendbuff.h.
Referenced by DsrSendBuffEntry(), GetPacket(), operator==(), and SetPacket().
|
private |
The protocol number.
Definition at line 149 of file dsr-rsendbuff.h.
Referenced by DsrSendBuffEntry(), GetProtocol(), and SetProtocol().