|
PcapPlusPlus
19.12
|
Go to the documentation of this file. 1 #ifndef PCAPPP_PCAP_DEVICE
2 #define PCAPPP_PCAP_DEVICE
14 #if defined(PCAPPP_MINGW_ENV) && !defined(WIN32)
38 pcap_t* m_PcapDescriptor;
67 #if __cplusplus > 201402L || _MSC_VER >= 1900
68 [[deprecated(
"Prefer building a BPFStringFilter class and calling verifyFilter on it to check if a filter string is valid see PcapFilter.h")]]
79 #if __cplusplus > 201402L || _MSC_VER >= 1900
80 [[deprecated(
"Prefer building a GeneralFilter class and calling matchPacketWithFilter using the constructed filter. See PcapFilter.h")]]
103 virtual bool setFilter(std::string filterAsString);
114 #endif // PCAPPP_PCAP_DEVICE
static std::string getPcapLibVersionInfo()
virtual void getStatistics(pcap_stat &stats) const =0
virtual bool setFilter(GeneralFilter &filter)
Definition: Device.h:76
virtual bool setFilter(std::string filterAsString)
static bool matchPacketWithFilter(std::string filterAsString, RawPacket *rawPacket)
Definition: PcapDevice.h:35
The main namespace for the PcapPlusPlus lib.
Definition: PcapFilter.h:78
Definition: RawPacket.h:219
static bool verifyFilter(std::string filterAsString)