[Winpcap-bugs] Bug in pcap-new.c compatibility with linux.
Noam Dev
noamdev at gmail.com
Thu Sep 6 16:31:45 GMT 2007
Hi,
I am using rpcapd through a linux installation. I applied
remote-code.patchand 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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-bugs/attachments/20070906/2647eea0/attachment.htm
More information about the Winpcap-bugs
mailing list