INET Framework for OMNeT++/OMNEST
|
#include <CloudDelayerBase.h>
Public Member Functions | |
CloudDelayerBase () | |
~CloudDelayerBase () | |
Public Member Functions inherited from inet::INetfilter::IHook | |
virtual | ~IHook () |
Protected Member Functions | |
virtual void | initialize (int stage) override |
virtual int | numInitStages () const override |
virtual void | finish () override |
virtual void | handleMessage (cMessage *msg) override |
virtual void | calculateDropAndDelay (const cMessage *msg, int srcID, int destID, bool &outDrop, simtime_t &outDelay) |
Returns true in outDrop if the msg is dropped in cloud, otherwise returns calculated delay in outDelay. More... | |
virtual INetfilter::IHook::Result | datagramPreRoutingHook (INetworkDatagram *datagram, const InterfaceEntry *inputInterfaceEntry, const InterfaceEntry *&outputInterfaceEntry, L3Address &nextHopAddress) override |
This is the first hook called by the network protocol before it routes a datagram that was received from the lower layer. More... | |
virtual INetfilter::IHook::Result | datagramForwardHook (INetworkDatagram *datagram, const InterfaceEntry *inputInterfaceEntry, const InterfaceEntry *&outputInterfaceEntry, L3Address &nextHopAddress) override |
This is the second hook called by the network protocol before it sends a datagram to the lower layer. More... | |
virtual INetfilter::IHook::Result | datagramPostRoutingHook (INetworkDatagram *datagram, const InterfaceEntry *inputInterfaceEntry, const InterfaceEntry *&outputInterfaceEntry, L3Address &nextHopAddress) override |
This is the last hook called by the network protocol before it sends a datagram to the lower layer. More... | |
virtual INetfilter::IHook::Result | datagramLocalInHook (INetworkDatagram *datagram, const InterfaceEntry *inputInterfaceEntry) override |
This is the last hook called by the network protocol before it sends a datagram to the upper layer. More... | |
virtual INetfilter::IHook::Result | datagramLocalOutHook (INetworkDatagram *datagram, const InterfaceEntry *&outputInterfaceEntry, L3Address &nextHopAddress) override |
This is the first hook called by the network protocol before it routes a datagram that was received from the upper layer. More... | |
Protected Attributes | |
IPv4 * | ipv4Layer |
Additional Inherited Members | |
Public Types inherited from inet::INetfilter::IHook | |
enum | Type { PREROUTING, LOCALIN, FORWARD, POSTROUTING, LOCALOUT } |
enum | Result { ACCEPT, DROP, QUEUE, STOLEN } |
inet::CloudDelayerBase::CloudDelayerBase | ( | ) |
inet::CloudDelayerBase::~CloudDelayerBase | ( | ) |
|
protectedvirtual |
Returns true in outDrop if the msg is dropped in cloud, otherwise returns calculated delay in outDelay.
Reimplemented in inet::MatrixCloudDelayer.
Referenced by datagramForwardHook().
|
overrideprotectedvirtual |
This is the second hook called by the network protocol before it sends a datagram to the lower layer.
This is done after the datagramPreRoutingHook or the datagramLocalInHook is called and the datagram is routed.
Implements inet::INetfilter::IHook.
|
overrideprotectedvirtual |
This is the last hook called by the network protocol before it sends a datagram to the upper layer.
This is done after the datagramPreRoutingHook is called and the datagram is routed.
Implements inet::INetfilter::IHook.
|
overrideprotectedvirtual |
This is the first hook called by the network protocol before it routes a datagram that was received from the upper layer.
The nextHopAddress is ignored when the outputInterfaceEntry is a nullptr. After this is done
Implements inet::INetfilter::IHook.
|
overrideprotectedvirtual |
This is the last hook called by the network protocol before it sends a datagram to the lower layer.
Implements inet::INetfilter::IHook.
|
overrideprotectedvirtual |
This is the first hook called by the network protocol before it routes a datagram that was received from the lower layer.
The nextHopAddress is ignored when the outputInterfaceEntry is nullptr.
Implements inet::INetfilter::IHook.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Reimplemented in inet::MatrixCloudDelayer.
Referenced by inet::MatrixCloudDelayer::initialize().
|
inlineoverrideprotectedvirtual |
Reimplemented in inet::MatrixCloudDelayer.
|
protected |
Referenced by CloudDelayerBase(), finish(), handleMessage(), initialize(), and ~CloudDelayerBase().