PcapPlusPlus
pcpp::PfRingDeviceList Class Reference

#include <PfRingDeviceList.h>

Public Member Functions

const std::vector< PfRingDevice * > & getPfRingDevicesList ()
 
PfRingDevicegetPfRingDeviceByName (const std::string devName)
 
std::string getPfRingVersion ()
 

Static Public Member Functions

static PfRingDeviceListgetInstance ()
 

Detailed Description

A singleton class that holds all available PF_RING devices. Through this class the user can iterate all PF_RING devices or find a specific device by name

Member Function Documentation

static PfRingDeviceList& pcpp::PfRingDeviceList::getInstance ( )
inlinestatic

A static method that returns the singleton object for PfRingDeviceList

Returns
PfRingDeviceList singleton
PfRingDevice* pcpp::PfRingDeviceList::getPfRingDeviceByName ( const std::string  devName)

Get a PF_RING device by name. The name is the Linux interface name which appears in ifconfig (e.g eth0, eth1, etc.)

Returns
A pointer to the PF_RING device
const std::vector<PfRingDevice*>& pcpp::PfRingDeviceList::getPfRingDevicesList ( )
inline

Return a list of all available PF_RING devices

Returns
a list of all available PF_RING devices
std::string pcpp::PfRingDeviceList::getPfRingVersion ( )
inline

Get installed PF_RING version

Returns
A string representing PF_RING version