Open hdm opened 4 years ago
I have the same issue. The error happens very rarely, like ones per 100 runs, and without any obvious reason. Update: As I can see, errorBufferSize is set to PCAP_ERRBUF_SIZE constant from WinPcap, and it is in compliance with documentation of pcap_findalldevs function, PCAP_ERRBUF_SIZE is defined as 256 for the latest WinPcap 4.0.2, so everything seems right. Therefore, in my opinion, it is not a gopacket's issue, but an issue of WinPcap library.
It looks like newer versions of npcap may require a larger error buffer size. In some cases (mostly concurrent use of the interface), the syscall returns an error:
This comes from
const errorBufferSize = 0x100
created by generate_defs.exe.Could this buffer size be increased, or the defs regenerated using the current npcap?