#include "dsdv-packet-queue.h"
Collaboration diagram for ns3::dsdv::QueueEntry:Public Types | |
| typedef Ipv4RoutingProtocol::ErrorCallback | ErrorCallback |
| Error callback function typedef. | |
| typedef Ipv4RoutingProtocol::UnicastForwardCallback | UnicastForwardCallback |
| Unicast forward call back function typedef. | |
Public Member Functions | |
| QueueEntry (Ptr< const Packet > pa=nullptr, const Ipv4Header &h=Ipv4Header(), UnicastForwardCallback ucb=UnicastForwardCallback(), ErrorCallback ecb=ErrorCallback()) | |
| c-tor | |
| ErrorCallback | GetErrorCallback () const |
| Get error callback function. | |
| Time | GetExpireTime () const |
| Get expire time. | |
| Ipv4Header | GetIpv4Header () const |
| Get IP header. | |
| Ptr< const Packet > | GetPacket () const |
| Get packet. | |
| UnicastForwardCallback | GetUnicastForwardCallback () const |
| Get unicast forward callback function. | |
| bool | operator== (const QueueEntry &o) const |
| Compare queue entries. | |
| void | SetErrorCallback (ErrorCallback ecb) |
| Set error callback function. | |
| void | SetExpireTime (Time exp) |
| Set expire time. | |
| void | SetIpv4Header (Ipv4Header h) |
| Set IP header. | |
| void | SetPacket (Ptr< const Packet > p) |
| Set packet. | |
| void | SetUnicastForwardCallback (UnicastForwardCallback ucb) |
| Set unicast forward callback function. | |
Private Attributes | |
| ErrorCallback | m_ecb |
| Error callback. | |
| Time | m_expire |
| Expire time for queue entry. | |
| Ipv4Header | m_header |
| IP header. | |
| Ptr< const Packet > | m_packet |
| Data packet. | |
| UnicastForwardCallback | m_ucb |
| Unicast forward callback. | |
DSDV Queue Entry.
Definition at line 36 of file dsdv-packet-queue.h.
Error callback function typedef.
Definition at line 42 of file dsdv-packet-queue.h.
Unicast forward call back function typedef.
Definition at line 40 of file dsdv-packet-queue.h.
|
inline |
c-tor
| pa | the packet to create the entry |
| h | the Ipv4Header |
| ucb | the UnicastForwardCallback function |
| ecb | the ErrorCallback function |
Definition at line 52 of file dsdv-packet-queue.h.
References m_ecb, m_expire, m_header, m_packet, and m_ucb.
Referenced by operator==().
Here is the caller graph for this function:
|
inline |
Get error callback function.
Definition at line 99 of file dsdv-packet-queue.h.
References m_ecb.
|
inline |
Get expire time.
Definition at line 162 of file dsdv-packet-queue.h.
References m_expire, and ns3::Simulator::Now().
Referenced by ns3::dsdv::IsExpired::operator()().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Get IP header.
Definition at line 135 of file dsdv-packet-queue.h.
References m_header.
Referenced by ns3::dsdv::PacketQueue::Drop(), ns3::dsdv::PacketQueue::Enqueue(), and ns3::dsdv::RoutingProtocol::SendPacketFromQueue().
Here is the caller graph for this function:Get packet.
Definition at line 117 of file dsdv-packet-queue.h.
References m_packet.
Referenced by ns3::dsdv::PacketQueue::Drop(), ns3::dsdv::PacketQueue::Enqueue(), and ns3::dsdv::RoutingProtocol::SendPacketFromQueue().
Here is the caller graph for this function:
|
inline |
Get unicast forward callback function.
Definition at line 81 of file dsdv-packet-queue.h.
References m_ucb.
Referenced by ns3::dsdv::RoutingProtocol::SendPacketFromQueue().
Here is the caller graph for this function:
|
inline |
Compare queue entries.
| o | QueueEntry to compare |
Definition at line 69 of file dsdv-packet-queue.h.
References QueueEntry(), ns3::Ipv4Header::GetDestination(), m_expire, m_header, and m_packet.
Here is the call graph for this function:
|
inline |
Set error callback function.
| ecb | the error callback |
Definition at line 108 of file dsdv-packet-queue.h.
References m_ecb.
|
inline |
Set expire time.
| exp |
Definition at line 153 of file dsdv-packet-queue.h.
References m_expire, and ns3::Simulator::Now().
Referenced by ns3::dsdv::PacketQueue::Enqueue().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Set IP header.
| h | The IPv4 header |
Definition at line 144 of file dsdv-packet-queue.h.
References m_header.
Set packet.
| p | The current packet |
Definition at line 126 of file dsdv-packet-queue.h.
References m_packet.
|
inline |
Set unicast forward callback function.
| ucb | the unicast forward callback |
Definition at line 90 of file dsdv-packet-queue.h.
References m_ucb.
|
private |
Error callback.
Definition at line 175 of file dsdv-packet-queue.h.
Referenced by QueueEntry(), GetErrorCallback(), and SetErrorCallback().
|
private |
Expire time for queue entry.
Definition at line 177 of file dsdv-packet-queue.h.
Referenced by QueueEntry(), GetExpireTime(), operator==(), and SetExpireTime().
|
private |
IP header.
Definition at line 171 of file dsdv-packet-queue.h.
Referenced by QueueEntry(), GetIpv4Header(), operator==(), and SetIpv4Header().
Data packet.
Definition at line 169 of file dsdv-packet-queue.h.
Referenced by QueueEntry(), GetPacket(), operator==(), and SetPacket().
|
private |
Unicast forward callback.
Definition at line 173 of file dsdv-packet-queue.h.
Referenced by QueueEntry(), GetUnicastForwardCallback(), and SetUnicastForwardCallback().