1 #ifndef PCAPPP_PCAP_DEVICE 2 #define PCAPPP_PCAP_DEVICE 14 #if defined(PCAPPP_MINGW_ENV) && !defined(WIN32) 42 pcap_t* m_PcapDescriptor;
85 #if __cplusplus > 201402L || _MSC_VER >= 1900 86 [[deprecated(
"Prefer building a BPFStringFilter class and calling verifyFilter on it to check if a filter string is valid see PcapFilter.h")]]
97 #if __cplusplus > 201402L || _MSC_VER >= 1900 98 [[deprecated(
"Prefer building a GeneralFilter class and calling matchPacketWithFilter using the constructed filter. See PcapFilter.h")]]
123 virtual bool setFilter(std::string filterAsString);
134 #endif // PCAPPP_PCAP_DEVICE The main namespace for the PcapPlusPlus lib.
static bool matchPacketWithFilter(std::string filterAsString, RawPacket *rawPacket)
uint64_t packetsDropByInterface
Definition: PcapDevice.h:60
Definition: PcapDevice.h:39
Definition: PcapFilter.h:136
Definition: RawPacket.h:252
uint64_t packetsDrop
Definition: PcapDevice.h:58
uint64_t packetsRecv
Definition: PcapDevice.h:56
static std::string getPcapLibVersionInfo()
static bool verifyFilter(std::string filterAsString)
virtual void getStatistics(PcapStats &stats) const =0
virtual bool setFilter(std::string filterAsString)
virtual bool setFilter(GeneralFilter &filter)
Definition: Device.h:77
Definition: PcapDevice.h:53