|
virtual Result | datagramPreRoutingHook (INetworkDatagram *datagram, const InterfaceEntry *inIE, const InterfaceEntry *&outIE, L3Address &nextHopAddr) override |
| called before a packet arriving from the network is routed More...
|
|
virtual Result | datagramForwardHook (INetworkDatagram *datagram, const InterfaceEntry *inIE, const InterfaceEntry *&outIE, L3Address &nextHopAddr) override |
| called before a packet arriving from the network is delivered via the network More...
|
|
virtual Result | datagramPostRoutingHook (INetworkDatagram *datagram, const InterfaceEntry *inIE, const InterfaceEntry *&outIE, L3Address &nextHopAddr) override |
| called before a packet is delivered via the network More...
|
|
virtual Result | datagramLocalInHook (INetworkDatagram *datagram, const InterfaceEntry *inIE) override |
| called before a packet arriving from the network is delivered locally More...
|
|
virtual Result | datagramLocalOutHook (INetworkDatagram *datagram, const InterfaceEntry *&outIE, L3Address &nextHopAddr) override |
| called before a packet arriving locally is delivered More...
|
|
virtual | ~IHook () |
|
called before a packet arriving from the network is delivered via the network
Implements inet::INetfilter::IHook.
92 EV_INFO <<
"HOOK " << getFullPath() <<
": FORWARD: packet=" << check_and_cast<cObject *>(datagram)->getName()
93 <<
" inIE=" << (inIE ? inIE->getName() :
"nullptr")
94 <<
" outIE=" << (outIE ? outIE->getName() :
"nullptr")
95 <<
" nextHop=" << nextHopAddr
allows the datagram to pass to the next hook
Definition: INetfilter.h:50
called before a packet arriving from the network is delivered locally
Implements inet::INetfilter::IHook.
112 EV_INFO <<
"HOOK " << getFullPath() <<
": LOCAL IN: packet=" << check_and_cast<cObject *>(datagram)->getName()
113 <<
" inIE=" << (inIE ? inIE->getName() :
"nullptr")
allows the datagram to pass to the next hook
Definition: INetfilter.h:50
called before a packet arriving locally is delivered
Implements inet::INetfilter::IHook.
120 EV_INFO <<
"HOOK " << getFullPath() <<
": LOCAL OUT: packet=" << check_and_cast<cObject *>(datagram)->getName()
121 <<
" outIE=" << (outIE ? outIE->getName() :
"nullptr")
allows the datagram to pass to the next hook
Definition: INetfilter.h:50
called before a packet is delivered via the network
Implements inet::INetfilter::IHook.
102 EV_INFO <<
"HOOK " << getFullPath() <<
": POSTROUTING packet=" << check_and_cast<cObject *>(datagram)->getName()
103 <<
" inIE=" << (inIE ? inIE->getName() :
"nullptr")
104 <<
" outIE=" << (outIE ? outIE->getName() :
"nullptr")
105 <<
" nextHop=" << nextHopAddr
allows the datagram to pass to the next hook
Definition: INetfilter.h:50
called before a packet arriving from the network is routed
Implements inet::INetfilter::IHook.
84 EV_INFO <<
"HOOK " << getFullPath() <<
": PREROUTING packet=" << check_and_cast<cObject *>(datagram)->getName()
85 <<
" inIE=" << (inIE ? inIE->getName() :
"nullptr")
allows the datagram to pass to the next hook
Definition: INetfilter.h:50
void inet::NetfilterInfoHook::finish |
( |
| ) |
|
|
overrideprotectedvirtual |
virtual void unregisterHook(int priority, IHook *hook)=0
Removes the provided hook from the list of registered hooks.
INetfilter * netfilter
Definition: NetfilterInfoHook.cc:30
void inet::NetfilterInfoHook::handleMessage |
( |
cMessage * |
msg | ) |
|
|
overrideprotectedvirtual |
79 throw cRuntimeError(
"This module can not receive messages");
void inet::NetfilterInfoHook::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
69 cSimpleModule::initialize(stage);
Initialization of network-layer protocols, stage 1.
Definition: InitStages.h:72
cModule * getContainingNode(const cModule *from)
Find the node containing the given module.
Definition: ModuleAccess.cc:65
INetfilter * netfilter
Definition: NetfilterInfoHook.cc:30
virtual void registerHook(int priority, IHook *hook)=0
Adds the provided hook to the list of registered hooks that will be called by the network layer when ...
virtual int inet::NetfilterInfoHook::numInitStages |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
The number of initialization stages.
Definition: InitStages.h:116
The documentation for this class was generated from the following file: