[Winpcap-users] Pcap_open locks
jos.groot at rfx-solutions.nl
Tue Mar 20 16:28:56 UTC 2018
I tried this example for opening an adapter and capturing packets:
It prints the adapter list but after that pcap_open does not
return and locks Matlab. I have to quit and restart Matlab to continue.
If I do not pass the correct devicename to pcap_open but
something like "dummy", I get the correct error message.
Windump and WireShark function perfectly, so the installed WinPcap 4.1.3
I use Microsoft Windows SDK 7.1 (C) and compile in Matlab with:
The defines and includes are:
#define WIN32 // otherwise the Unix branch is selected in pcap.h
#define HAVE_REMOTE // needed according to Q-23 of the WinPcap FAQ
#include "mex.h" // needed for Matlab
#include "pcap.h" // straight from this WinPcap example
More information about the Winpcap-users