|
INET Framework for OMNeT++/OMNEST
|
This class provides a generic filter for packets. More...
#include <PacketFilter.h>
Classes | |
| class | DynamicExpressionResolver |
| class | PacketDissectorCallback |
Public Member Functions | |
| PacketFilter () | |
| virtual | ~PacketFilter () |
| void | setPattern (const char *pattern) |
| void | setExpression (const char *expression) |
| void | setExpression (cDynamicExpression *expression) |
| void | setExpression (cOwnedDynamicExpression *expression) |
| void | setExpression (cValueHolder *expression) |
| void | setExpression (cObject *expression) |
| void | setExpression (cValue &expression) |
| bool | matches (const cPacket *packet) const |
Protected Member Functions | |
| const cObject * | findPacketTag (const char *className) const |
Protected Attributes | |
| cDynamicExpression * | filterExpression = nullptr |
| cMatchExpression * | matchExpression = nullptr |
| PacketDissectorCallback * | packetDissectorCallback = nullptr |
| const cPacket * | cpacket = nullptr |
| std::multimap< const Protocol *, Chunk * > | protocolToChunkMap |
| std::multimap< std::string, Chunk * > | classNameToChunkMap |
This class provides a generic filter for packets.
The filter is expressed as two patterns using the cMatchExpression format. One filter is applied to the Packet the other one is applied to each Chunk in the packet using the PacketDissector.
| inet::PacketFilter::PacketFilter | ( | ) |
|
virtual |
|
protected |
| bool inet::PacketFilter::matches | ( | const cPacket * | packet | ) | const |
Referenced by inet::PacketEmitter::emitPacket(), inet::StreamIdentifier::processPacket(), and inet::PcapRecorder::recordPacket().
| void inet::PacketFilter::setExpression | ( | cDynamicExpression * | expression | ) |
| void inet::PacketFilter::setExpression | ( | cObject * | expression | ) |
| void inet::PacketFilter::setExpression | ( | const char * | expression | ) |
| void inet::PacketFilter::setExpression | ( | cOwnedDynamicExpression * | expression | ) |
| void inet::PacketFilter::setExpression | ( | cValue & | expression | ) |
| void inet::PacketFilter::setExpression | ( | cValueHolder * | expression | ) |
| void inet::PacketFilter::setPattern | ( | const char * | pattern | ) |
Referenced by setExpression().
|
mutableprotected |
|
mutableprotected |
Referenced by findPacketTag(), and matches().
|
protected |
Referenced by matches(), setExpression(), and ~PacketFilter().
|
protected |
Referenced by matches(), setPattern(), and ~PacketFilter().
|
protected |
Referenced by matches(), PacketFilter(), and ~PacketFilter().