#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 47 of file dsdv-packet-queue.h.
Error callback function typedef.
Definition at line 53 of file dsdv-packet-queue.h.
Unicast forward call back function typedef.
Definition at line 51 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 63 of file dsdv-packet-queue.h.
|
inline |
Get error callback function.
Definition at line 110 of file dsdv-packet-queue.h.
References m_ecb.
|
inline |
Get expire time.
Definition at line 173 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 146 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 128 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 92 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 80 of file dsdv-packet-queue.h.
References 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 119 of file dsdv-packet-queue.h.
References m_ecb.
|
inline |
Set expire time.
| exp |
Definition at line 164 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 155 of file dsdv-packet-queue.h.
References m_header.
Set packet.
| p | The current packet |
Definition at line 137 of file dsdv-packet-queue.h.
References m_packet.
|
inline |
Set unicast forward callback function.
| ucb | the unicast forward callback |
Definition at line 101 of file dsdv-packet-queue.h.
References m_ucb.
|
private |
Error callback.
Definition at line 186 of file dsdv-packet-queue.h.
Referenced by GetErrorCallback(), and SetErrorCallback().
|
private |
Expire time for queue entry.
Definition at line 188 of file dsdv-packet-queue.h.
Referenced by GetExpireTime(), operator==(), and SetExpireTime().
|
private |
IP header.
Definition at line 182 of file dsdv-packet-queue.h.
Referenced by GetIpv4Header(), operator==(), and SetIpv4Header().
Data packet.
Definition at line 180 of file dsdv-packet-queue.h.
Referenced by GetPacket(), operator==(), and SetPacket().
|
private |
Unicast forward callback.
Definition at line 184 of file dsdv-packet-queue.h.
Referenced by GetUnicastForwardCallback(), and SetUnicastForwardCallback().