[Winpcap-bugs] Bug in pcap-new.c compatibility with linux.
Gianluca Varenni
gianluca.varenni at cacetech.com
Mon Sep 10 09:21:51 GMT 2007
This is a known bug in the sources of WinPcap 4.0, 4.0.1 and 4.1 beta (and some previous beta versions as well).
I have already fixed it in source tree, so it will be available in the next release of WinPcap.
Thanks for the report!
Have a nice day
GV
----- Original Message -----
From: Noam Dev
To: winpcap-bugs at winpcap.org
Sent: Thursday, September 06, 2007 9:31 AM
Subject: [Winpcap-bugs] Bug in pcap-new.c compatibility with linux.
Hi,
I am using rpcapd through a linux installation. I applied remote-code.patch and copied the extra files, but there was still a problem. This is it :
in pcap_open, you recently (my previous codebase was 3.1 ) added the ability to set windows-specific options when opening a device from far away.
This is the code :
case PCAP_SRC_IFLOCAL:
#ifdef WIN32
//
// these flags are supported on Windows only
//
fp = pcap_open_live(name, snaplen, (flags & PCAP_OPENFLAG_PROMISCUOUS), read_timeout, errbuf);
... (windows specific code follows)
The first line (the pcap_open_live call) needs to be called regardless of the OS. The code should look like this :
case PCAP_SRC_IFLOCAL:
fp = pcap_open_live(name, snaplen, (flags & PCAP_OPENFLAG_PROMISCUOUS), read_timeout, errbuf);
#ifdef WIN32
//
// these flags are supported on Windows only
//
.... (windows specific code follows)
I don't know how to create a .patch file that does this change, but it shouldnt take more than 10 seconds for anyone who does.
Please consider adding this to the main branch, i see this as a clean bug fix...
Thanks!
------------------------------------------------------------------------------
_______________________________________________
Winpcap-bugs mailing list
Winpcap-bugs at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-bugs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-bugs/attachments/20070910/c91ee01b/attachment.htm
More information about the Winpcap-bugs
mailing list