21 int m_MinAmountOfDataToCopyFromKernelToApplication;
24 WinPcapLiveDevice(pcap_if_t* iface,
bool calculateMTU,
bool calculateMacAddress,
bool calculateDefaultGateway)
26 calculateDefaultGateway)
29 bool calculateDefaultGateway);
42 void* onStatsUpdateUserCookie)
override;
44 void* onStatsUpdateUserCookie)
override;
65 return m_MinAmountOfDataToCopyFromKernelToApplication;
Definition: PcapLiveDevice.h:68
LiveDeviceType
The type of the live device.
Definition: PcapLiveDevice.h:142
@ WinPcapDevice
WinPcap/Npcap live device.
Definition: PcapLiveDevice.h:146
virtual bool startCapture(OnPacketArrivesCallback onPacketArrives, void *onPacketArrivesUserCookie)
virtual int sendPackets(RawPacket *rawPacketsArr, int arrLength, bool checkMtu=false)
Definition: PcapLiveDeviceList.h:20
Definition: PointerVector.h:50
Definition: RawPacket.h:269
Definition: WinPcapLiveDevice.h:17
bool startCapture(RawPacketVector &capturedPacketsVector) override
Definition: WinPcapLiveDevice.h:45
int getMinAmountOfDataToCopyFromKernelToApplication() const
Definition: WinPcapLiveDevice.h:63
virtual int sendPackets(RawPacket *rawPacketsArr, int arrLength, bool checkMtu=false)
LiveDeviceType getDeviceType() const override
Definition: WinPcapLiveDevice.h:35
bool startCapture(OnPacketArrivesCallback onPacketArrives, void *onPacketArrivesUserCookie, int intervalInSecondsToUpdateStats, OnStatsUpdateCallback onStatsUpdate, void *onStatsUpdateUserCookie) override
bool setMinAmountOfDataToCopyFromKernelToApplication(int size)
bool startCapture(int intervalInSecondsToUpdateStats, OnStatsUpdateCallback onStatsUpdate, void *onStatsUpdateUserCookie) override
WinPcapLiveDevice * clone() const override
The main namespace for the PcapPlusPlus lib.
std::function< void(RawPacket *, PcapLiveDevice *, void *)> OnPacketArrivesCallback
Definition: PcapLiveDevice.h:31
std::function< void(IPcapDevice::PcapStats &, void *)> OnStatsUpdateCallback
Definition: PcapLiveDevice.h:44
A struct that contains all details of a network interface.
Definition: PcapLiveDevice.h:75