PcapPlusPlus  19.12
pcpp::PfRingDeviceList Class Reference

#include <PfRingDeviceList.h>

Public Member Functions

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

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

◆ getInstance()

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

A static method that returns the singleton object for PfRingDeviceList

Returns
PfRingDeviceList singleton

◆ getPfRingDeviceByName()

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

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

◆ getPfRingDevicesList()

const std::vector<PfRingDevice*>& pcpp::PfRingDeviceList::getPfRingDevicesList ( ) const
inline

Return a list of all available PF_RING devices

Returns
a list of all available PF_RING devices

◆ getPfRingVersion()

std::string pcpp::PfRingDeviceList::getPfRingVersion ( ) const
inline

Get installed PF_RING version

Returns
A string representing PF_RING version