title: pcap_handler callback contains empty packets only when using npcap v0.9991
body: <p>I have some code that is supposed to capture data from an ethernet adapter. I am using the following steps to get the data (after determining the name of the device in the format: &quot;rpcap://\Device\NPF_{0C5[...]C89}&quot;):</p>
  <pre><code>deviceHandle = pcap_open(device_name, 65536, 1 /* promiscous */, 100, NULL, errbuf)
  </code></pre>
  <p>Then running a loop (until capture is supposed to be stopped) over:</p>
  <pre><code>pcap_dispatch(deviceHandle, -1, pcap_handler, userHandle /* unsigned char* to user handle */)
  </code></pre>
  <p>When running this with the npcap dll &quot;wpcap.dll&quot; loaded from Windows\System32\Npcap folder I get calls to the pcap_handler callback but all parameters in the callback are always zero:</p>
  <pre><code>header-&gt;caplen == 0
  header-&gt;len == 0
  header-&gt;ts.tv_sec == 0
  header-&gt;ts.tv_usec == 0
  </code></pre>
  <p>The unsigned char* data is not NULL but the memory it points to is zeros only.</p>
  <p>When I run the exact same code with just using Win10Pcap v10.2.5002 wpcap.dll from &quot;Program Files (x86)\Win10Pcap\x64&quot; (currently latest version) everything works fine and I get the captured data properly. The code was working about a year ago, so there might have been changes to npcap that cause a difference in the behavior, but I couldn't find why there is no data provided in the callback.</p>
  <p>The npcap installation and dll is part of a Wireshark v3.2.4 64bit installation and when running Wireshark and capturing data on the same ethernet adapter the data is properly shown in Wireshark, so the npcap library is working properly in that scenario.</p>
  <p>Can anyone give me a hint where the problem might be? I am running the code on 64bit Windows 10. As it was working before there probably has been a change in npcap v0.9991 that was changing the behavior or requirements to get the captured data that I'm not aware of which is causing the issue.</p>
  <p>Best regards,
  Gunnar</p>