5 #include "DeviceListBase.h"
27 std::vector<PcapLiveDevice*> m_LiveDeviceListView;
29 std::vector<IPv4Address> m_DnsServers;
35 static std::vector<IPv4Address> fetchDnsServers();
54 return m_LiveDeviceListView;
60 PCPP_DEPRECATED(
"Use `getDeviceByIp`")
Definition: IpAddress.h:276
Definition: IpAddress.h:28
Definition: IpAddress.h:156
Definition: PcapLiveDevice.h:66
Definition: PcapLiveDeviceList.h:22
const std::vector< IPv4Address > & getDnsServers() const
Definition: PcapLiveDeviceList.h:127
PcapLiveDevice * getPcapLiveDeviceByIp(const IPAddress &ipAddr) const
PcapLiveDeviceList * clone()
PcapLiveDevice * getDeviceByIp(const IPAddress &ipAddr) const
PcapLiveDevice * getDeviceByName(const std::string &name) const
PcapLiveDevice * getPcapLiveDeviceByName(const std::string &name) const
static PcapLiveDeviceList & getInstance()
Definition: PcapLiveDeviceList.h:45
PcapLiveDevice * getPcapLiveDeviceByIpOrName(const std::string &ipOrName) const
PcapLiveDevice * getDeviceByIpOrName(const std::string &ipOrName) const
const std::vector< PcapLiveDevice * > & getPcapLiveDevicesList() const
Definition: PcapLiveDeviceList.h:52
void reset()
Reset the live device list and DNS server list, meaning clear and refetch them.
Definition: PointerVector.h:50
A base class for device lists, providing common functionality for managing a list of devices.
Definition: DeviceListBase.h:10
The main namespace for the PcapPlusPlus lib.