|
INET Framework for OMNeT++/OMNEST
|
#include <SctpCrcInsertionHook.h>
Public Member Functions | |
| SctpCrcInsertion () | |
| void | setCrcMode (CrcMode crcModeP) |
| void | insertCrc (const Protocol *networkProtocol, const L3Address &srcAddress, const L3Address &destAddress, const Ptr< SctpHeader > &sctpHeader, Packet *packet) |
| uint32_t | checksum (unsigned char const *, unsigned int) |
| virtual Result | datagramPreRoutingHook (Packet *packet) 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 Result | datagramForwardHook (Packet *packet) override |
| This is the second hook called by the network protocol before it sends a datagram to the lower layer. More... | |
| virtual Result | datagramPostRoutingHook (Packet *packet) override |
| This is the last hook called by the network protocol before it sends a datagram to the lower layer. More... | |
| virtual Result | datagramLocalInHook (Packet *packet) override |
| This is the last hook called by the network protocol before it sends a datagram to the upper layer. More... | |
| virtual Result | datagramLocalOutHook (Packet *packet) override |
| This is the first hook called by the network protocol before it routes a datagram that was received from the upper layer. More... | |
Public Member Functions inherited from inet::NetfilterBase::HookBase | |
| virtual | ~HookBase () |
| void | registeredTo (INetfilter *nf) |
| void | unregisteredFrom (INetfilter *nf) |
| bool | isRegisteredHook (INetfilter *nf) |
Public Member Functions inherited from inet::INetfilter::IHook | |
| virtual | ~IHook () |
Private Attributes | |
| CrcMode | crcMode = CRC_MODE_UNDEFINED |
Additional Inherited Members | |
Public Types inherited from inet::INetfilter::IHook | |
| enum | Type { PREROUTING, LOCALIN, FORWARD, POSTROUTING, LOCALOUT } |
| enum | Result { ACCEPT, DROP, QUEUE, STOLEN } |
Protected Attributes inherited from inet::NetfilterBase::HookBase | |
| std::vector< INetfilter * > | netfilters |
| uint32_t inet::sctp::SctpCrcInsertion::checksum | ( | unsigned char const * | , |
| unsigned int | |||
| ) |
|
inlineoverridevirtual |
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.
|
inlineoverridevirtual |
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.
|
inlineoverridevirtual |
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 outputNetworkInterface is a nullptr. After this is done
Implements inet::INetfilter::IHook.
|
overridevirtual |
This is the last hook called by the network protocol before it sends a datagram to the lower layer.
Implements inet::INetfilter::IHook.
|
inlineoverridevirtual |
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 outputNetworkInterface is nullptr.
Implements inet::INetfilter::IHook.
| void inet::sctp::SctpCrcInsertion::insertCrc | ( | const Protocol * | networkProtocol, |
| const L3Address & | srcAddress, | ||
| const L3Address & | destAddress, | ||
| const Ptr< SctpHeader > & | sctpHeader, | ||
| Packet * | packet | ||
| ) |
Referenced by datagramPostRoutingHook().
|
private |
Referenced by insertCrc(), and setCrcMode().