PcapPlusPlus
21.05
|
#include <Device.h>
Public Member Functions | |
virtual bool | setFilter (GeneralFilter &filter) |
virtual bool | setFilter (std::string filterAsString)=0 |
virtual bool | clearFilter ()=0 |
An abstract interface representing all devices that have BPF (Berkeley Packet Filter) filtering capabilities, meaning devices that can filter packets based on the BPF filtering syntax. This is an abstract class that cannot be instantiated
|
pure virtual |
Clear the filter currently set on the device
Implemented in pcpp::PfRingDevice, and pcpp::IPcapDevice.
|
inlinevirtual |
Set a filter for the device. When implemented by the device, only packets that match the filter will be received
[in] | filter | The filter to be set in PcapPlusPlus' GeneralFilter format |
|
pure virtual |
Set a filter for the device. When implemented by the device, only packets that match the filter will be received
[in] | filterAsString | The filter to be set in Berkeley Packet Filter (BPF) syntax (http://biot.com/capstats/bpf.html) |
Implemented in pcpp::PcapNgFileWriterDevice, pcpp::PfRingDevice, pcpp::PcapNgFileReaderDevice, and pcpp::IPcapDevice.