Thanks for the help. I have posted a query to
<[EMAIL PROTECTED]>

I belive the error codes mean the same in both winpcap and libpcap. SO I
added "pcap_strerror" in libpcap and got the strings for the error codes...
for example: 
1- operation not permitted.
2- no such file or directory
3- no such process ... and so on.

By the way, how do I check the version of winpcap installed? 

Thanks again,
Roopa



-----Original Message-----
From: Guy Harris [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 21, 2001 1:46 AM
To: Roopa Satyanarayana
Cc: '[EMAIL PROTECTED]'
Subject: Re: [tcpdump-workers] error code 2 ?


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