In libpcap, we're able to listen to all devices by simply doing
pcap_t * handle = pcap_open_live(NULL , INT_MAX , 0 , 500 , errbuf);
if (handle == NULL)
{
exit(1);
}
//Put the device in sniff loop
pcap_loop(handle , -1 , process_packet , NULL);
Where NULL in the first argument of pcap_open_live is simply a wild card. I am wondering if there's an equivalent in PcapPlusPlus.
Also, I tried simply calling pcpp::PcapLiveDeviceList::getInstance().reset(), but that caused a crash when I tried running it each time I would cycle through the pcpp::PcapLiveDeviceList::getInstance().getPcapLiveDevicesList().