On Tue, Nov 20, 2001 at 02:41:59PM -0500, Roopa Satyanarayana wrote:
> What does Error Code 2 mean??
> An application (sniffer) developed using WinPCap gives the following error
> code...
> API PacketOpenAdapter fails with GetLastError() = 2

WinPcap 2.2 should try to interpret the error code from
"GetLastError()", as it uses "FormatMessage()" - it shouldn't show the
error as a number.

If you're calling "pcap_open_live()", what is the exact error string
that gets put by "pcap_open_live()" into the error message buffer handed
to "pcap_open_live()"?

If you're *not* calling "pcap_open_live()", but are directly calling
"PacketOpenAdapter()", you're asking the wrong people - that's the
Windows-specific part of WinPcap, and you should ask

        [EMAIL PROTECTED]

for help, as I do not have the numerical values of Win32 error codes
memorized (and I suspect few, if any, other people on this list do,
either), and thus have no idea what error code 2 is.  (That's why
WinPcap 2.2 uses "FormatMessage()" - so that people *don't* have to have
those numerical values memorized....)
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe

Reply via email to