-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
That error has been reported in Wireshark bug 16329 and bug 16355.
It looks as if the most likely reason for that would be that NPF_Pause() is called before pcap_dispatch()/pcap_loop() without NPF_Restart() also having been called after NPF_Pause() but before the libpcap routine.
According to Pausing a Driver Stack; might that be occurring due to adding (or removing?) a binding? The second bug involves disconnecting from the Wi-Fi network, which might tweak bindings if, for example, a disconnected adapter doesn't have the Internet protocol stack bound to it but a connected adapter does.
Is this covered by the comment
/* TODO: Allow the read to continue if the filter module is
* detached (NPF_StartUsingOpenInstance above returned false)
* but we have packet data in the buffer that can still be
* delivered. */
in NPF_Read()?
And should there be OpenPausing and OpenPaused states, so that the instance isn't marked as "closing" or "closed" if it's just being paused or finished being paused?