[Winpcap-users] pcap_fopen_offline not exported?

Gianluca Varenni gianluca.varenni at cacetech.com
Wed Jul 23 05:43:31 GMT 2008


Actually, the function has not been exported because as far as I remember it 
doesn't work on Windows. The reason is the usual one with MS C RunTimes 
(CRTs): you cannot pass FILE* handlers between modules compiled with 
different versions of the CRT.

Have a nice day
GV


----- Original Message ----- 
From: "Guy Harris" <guy at alum.mit.edu>
To: <winpcap-users at winpcap.org>
Sent: Tuesday, July 22, 2008 6:54 PM
Subject: Re: [Winpcap-users] pcap_fopen_offline not exported?


>
> On Jul 22, 2008, at 8:36 AM, Okraszewski, Marcin wrote:
>
>> I wanted to use pcap_fopen_offline which is mentioned in  documentation 
>> as well as available in pcap.h. Unfortunately this  function is not 
>> exported by both 4.0.2 and 4.1 beta 4. Is it on  purpose or some 
>> oversight?
>
> Probably an oversight.  The .def files weren't updated when the  libpcap 
> base of WinPcap was updated to a version that includes 
> pcap_fopen_offline(); the release notes for libpcap release that first 
> included them might not have mentioned that routine.
>
> (So what exactly *are* the benefits of requiring a .def file when you 
> build a dynamically-linked library?  No UN*X that I know of requires  that 
> the exported functions be explicitly declared when you build a 
> dynamically-linked shared library....)
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users 



More information about the Winpcap-users mailing list