PcapPlusPlus
21.05
|
#include <PcapFilter.h>
Public Member Functions | |
virtual void | parseToString (std::string &result)=0 |
bool | matchPacketWithFilter (RawPacket *rawPacket) |
virtual | ~GeneralFilter () |
The base class for all filter classes. This class is virtual and abstract, hence cannot be instantiated.
For deeper understanding of the filter concept please refer to PcapFilter.h
|
inlinevirtual |
Virtual destructor, frees the bpf program
bool pcpp::GeneralFilter::matchPacketWithFilter | ( | RawPacket * | rawPacket | ) |
Match a raw packet with a given BPF filter.
[in] | rawPacket | A pointer to the raw packet to match the BPF filter with |
|
pure virtual |
A method that parses the class instance into BPF string format
[out] | result | An empty string that the parsing will be written into. If the string isn't empty, its content will be overridden |
Implemented in pcpp::UdpLengthFilter, pcpp::TcpWindowSizeFilter, pcpp::TcpFlagsFilter, pcpp::VlanFilter, pcpp::ArpFilter, pcpp::ProtoFilter, pcpp::NotFilter, pcpp::OrFilter, pcpp::AndFilter, pcpp::EtherTypeFilter, pcpp::MacAddressFilter, pcpp::PortRangeFilter, pcpp::PortFilter, pcpp::IPv4TotalLengthFilter, pcpp::IPv4IDFilter, pcpp::IPFilter, and pcpp::BPFStringFilter.