#include <PacketFilter.h>
Inheritance diagram for CompoundPacketFilter:
Public Member Functions | |
CompoundPacketFilter (const CompoundPacketFilter &toCopy) | |
CompoundPacketFilter (const PacketFilter &l, const PacketFilter &r, int oper) | |
CompoundPacketFilter (const PacketFilter &r, int oper) | |
virtual PacketFilter * | clone (void) const |
virtual bool | match (const TraceIterator &pkt) const |
Match a packet against a packet filter. | |
virtual bool | match (const StreamKey &key) const |
Match a StreamKey representing a Trace against a packet filter. | |
virtual std::string | toString (void) const |
Static Public Member Functions | |
static PacketFilter * | parse (const std::string &filterString) |
Static Public Attributes | |
static const int | NOT = 1 |
static const int | MAX_UNARY = 16 |
static const int | AND = 17 |
static const int | OR = 18 |
Protected Attributes | |
PacketFilter * | left |
PacketFilter * | right |
int | op |
Friends | |
std::ostream & | operator<< (std::ostream &os, const PacketFilter &filter) |
|
create a binary CompoundPacketFilter |
|
create a unary CompoundPacketFilter |
|
Match a StreamKey representing a Trace against a packet filter. Used to determine if all packets in a Trace are guaranteed to match the filter. Implements PacketFilter. |
|
Match a packet against a packet filter. Match is done against a TraceIterator (a custom iterator defined relative to a Trace) so that the filter has access to relative features (e.g. frame.time_delta) Implements PacketFilter. |
|
parser to generate packet filters from a filter string
|