[Winpcap-users] Error opening adapter. The system can not find the device specified.

企鵝狂 ksc91u at gmail.com
Fri Sep 1 12:57:38 GMT 2006


Hi~
I have problem opening PPPOE device in my GTK program.
This is what I do in a thread.

if ((adhandle= pcap_open_live(currentdev->name,	32,1,1000, errbuf )) == NULL)
	{
            gdk_threads_enter ();
        gtk_label_set_text(lookup_widget(GTK_WIDGET(window1),"label6"),errbuf);
        gdk_threads_leave ();
		return NULL;
	}

Error message is Error opening adapter. The system can not find the
device specified. (20)

C:\Documents and Settings\Administrator\Desktop>WinDump.exe -D
1.\Device\NPF_GenericDialupAdapter (Adapter for generic dialup and VPN capture)
2.\Device\NPF_{A0D943D3-503A-49EC-A000-467BC6F046FC} (WAN  PPP/SLIP) Interface)
3.\Device\NPF_{5AFEDFAE-76A9-47D2-96AA-89AEDA57DF0E} (MS Tunnel
Interface Driver)
4.\Device\NPF_{37D3F1D4-E517-49A1-B7D3-9FE4F482D37F} (NVIDIA nForce
MCP Networking Adapter Driver)

I can use windump to open adapter 1-4
and open adapter 3 4 in my program.

OS Windows 2003 R2
WinPCAP 3.1 and 4.0beta

Any suggestion?


More information about the Winpcap-users mailing list