|
LiveDeviceType | getDeviceType () const override |
|
bool | setMinAmountOfDataToCopyFromKernelToApplication (int size) |
|
int | getMinAmountOfDataToCopyFromKernelToApplication () const |
|
WinPcapLiveDevice * | clone () const override |
|
virtual int | sendPackets (RawPacket *rawPacketsArr, int arrLength, bool checkMtu=false) |
|
virtual int | sendPackets (Packet **packetsArr, int arrLength, bool checkMtu=true) |
|
virtual int | sendPackets (const RawPacketVector &rawPackets, bool checkMtu=false) |
|
| ~PcapLiveDevice () override |
| A destructor for this class.
|
|
std::string | getName () const |
|
std::string | getDesc () const |
|
bool | getLoopback () const |
|
virtual uint32_t | getMtu () const |
|
virtual LinkLayerType | getLinkType () const |
|
std::vector< IPAddress > | getIPAddresses () const |
|
virtual MacAddress | getMacAddress () const |
|
IPv4Address | getIPv4Address () const |
|
IPv6Address | getIPv6Address () const |
|
IPv4Address | getDefaultGateway () const |
|
const std::vector< IPv4Address > & | getDnsServers () const |
|
virtual bool | startCapture (OnPacketArrivesCallback onPacketArrives, void *onPacketArrivesUserCookie) |
|
virtual bool | startCapture (OnPacketArrivesCallback onPacketArrives, void *onPacketArrivesUserCookie, int intervalInSecondsToUpdateStats, OnStatsUpdateCallback onStatsUpdate, void *onStatsUpdateUserCookie) |
|
virtual bool | startCapture (int intervalInSecondsToUpdateStats, OnStatsUpdateCallback onStatsUpdate, void *onStatsUpdateUserCookie) |
|
virtual bool | startCapture (RawPacketVector &capturedPacketsVector) |
|
virtual int | startCaptureBlockingMode (OnPacketArrivesStopBlocking onPacketArrives, void *userCookie, const double timeout) |
|
void | stopCapture () |
|
bool | captureActive () |
|
bool | doMtuCheck (int packetPayloadLength) const |
|
bool | sendPacket (Packet *packet, bool checkMtu=true) |
|
bool | sendPacket (Packet const &packet, bool checkMtu=true) |
|
bool | sendPacket (RawPacket const &rawPacket, bool checkMtu=false) |
|
bool | sendPacket (const uint8_t *packetData, int packetDataLength, int packetPayloadLength) |
|
bool | sendPacket (const uint8_t *packetData, int packetDataLength, bool checkMtu=false, pcpp::LinkLayerType linkType=pcpp::LINKTYPE_ETHERNET) |
|
virtual int | sendPackets (RawPacket *rawPacketsArr, int arrLength, bool checkMtu=false) |
|
virtual int | sendPackets (Packet **packetsArr, int arrLength, bool checkMtu=true) |
|
virtual int | sendPackets (const RawPacketVector &rawPackets, bool checkMtu=false) |
|
bool | open () override |
|
bool | open (const DeviceConfiguration &config) |
|
void | close () override |
| Close the device.
|
|
void | getStatistics (IPcapDevice::PcapStats &stats) const override |
|
bool | setFilter (std::string filterAsString) override |
|
bool | clearFilter () override |
|
virtual bool | setFilter (GeneralFilter &filter) |
|
virtual bool | setFilter (std::string filterAsString)=0 |
|
bool | isOpened () |
|
virtual bool | setFilter (GeneralFilter &filter) |
|
PcapStats | getStatistics () const |
| Get statistics from the device. More...
|
|
|
void | prepareCapture (bool asyncCapture, bool captureStats) override |
| Called before starting a capture to prepare the device for capturing packets. More...
|
|
bool | isPayloadWithinMtu (size_t payloadLength) const |
| Checks whether the packetPayloadLength is smaller or equal than the device MTU. More...
|
|
bool | isPayloadWithinMtu (Packet const &packet, bool allowUnknownLength=false, size_t *outPayloadLength=nullptr) const |
| Checks whether the packet's payload length is smaller or equal than the device MTU. More...
|
|
bool | isPayloadWithinMtu (RawPacket const &rawPacket, bool allowUnknownLength=false, size_t *outPayloadLength=nullptr) const |
| Checks whether the payload length of a RawPacket is smaller or equal than the device MTU. More...
|
|
bool | isPayloadWithinMtu (uint8_t const *packetData, size_t packetLen, LinkLayerType linkType=pcpp::LINKTYPE_ETHERNET, bool allowUnknownLength=false, size_t *outPayloadLength=nullptr) const |
| Checks whether the payload length of a packet's raw data is smaller or equal than the device MTU. More...
|
|
A class that wraps a Windows network interface (each of the interfaces listed in ipconfig). This class is almost similar in its capabilities to PcapLiveDevice (its parent class) with some small changes that mainly result from differences between libpcap and WinPcap/Npcap. Please see the reference for PcapLiveDevice for more details