[Winpcap-users] pcap_fopen_offline not exported?

Guy Harris guy at alum.mit.edu
Mon Jul 28 23:40:49 GMT 2008


On Jul 28, 2008, at 6:45 AM, Okraszewski, Marcin wrote:

> So I have it working now. I have slightly modified WinPcap to make the
> API expose the pcap_fopen_offline():
>
> In pcap.h I have added:
> -------------------------------------------------------
> #ifndef LIBPCAP_EXPORTS
> #define pcap_fopen_offline(f,b) \
>        pcap_hopen_offline(_get_osfhandle(_fileno(f)), b)
> #endif

Should this be a macro or a function?  It's a function in UN*X, and if  
anybody writes code that expects it to be a function (e.g., passes  
around a pointer to it), that code won't work on Windows if it's not a  
function.


More information about the Winpcap-users mailing list