PcapPlusPlus: Can't get network device live from getPcapLiveDevicesList()
Hello @seladb
I’m using Visual Studio 2022 on Windows 11 and Npcap 1.72.
I can’t get any device from PcapLiveDeviceList class.
I installed PcapPlusPlus using vcpkg with this command. vcpkg install pcapplusplus:x64-windows
this is my code
#include <PcapLiveDeviceList.h>
for (auto device : pcpp::PcapLiveDeviceList::getInstance().getPcapLiveDevicesList()) {
std::cout << device->getName() << std::endl;
std::cout << device->getDesc() << std::endl;
}
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 16 (10 by maintainers)
You may close the issue. Thanks for the support
Thanks @kokose1234 , I’ll take a look in the next few days and keep you posted