#include <PacketFilter.h>
Inheritance diagram for SimplePacketFilter:
Public Member Functions | |
SimplePacketFilter (const PacketAttribute &attrib, const PacketAttributeValue &val, int comp) | |
SimplePacketFilter (const SimplePacketFilter &toCopy) | |
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. | |
std::string | toString (void) const |
Static Public Member Functions | |
static PacketFilter * | parse (const std::string &filterString) |
Static Public Attributes | |
static const int | EQUAL = 1 |
static const int | LESS = 2 |
static const int | LESS_OR_EQUAL = 3 |
static const int | GREATER = 4 |
static const int | GREATER_OR_EQUAL = 5 |
static const int | NOT_EQUAL = 6 |
static const int | EXISTS = 7 |
Protected Attributes | |
PacketAttribute * | attribute |
PacketAttributeValue * | value |
int | comparison |
Friends | |
std::ostream & | operator<< (std::ostream &os, const PacketFilter &filter) |
|
parses the given filter string to generate a filter |
|
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
|