[Winpcap-users] struct bpf_hdr mismatch

Gianluca Varenni gianluca.varenni at cacetech.com
Thu Sep 4 17:32:07 GMT 2008

I definitely need to look into that.

As a matter of fact, I haven't migrated to VS2008 (I just migrated the build 
of WinPcap to VS2005 and WDK6000 in the last weeks).

Have a nice day

----- Original Message ----- 
From: "Gisle Vanem" <gvanem at broadpark.no>
To: "WinDump" <winpcap-users at winpcap.org>
Sent: Thursday, September 04, 2008 6:43 AM
Subject: Re: [Winpcap-users] struct bpf_hdr mismatch

> "Fish" <fish at infidels.org> wrote:
>> Gisle Vanem wrote:
>> [...]
>>> layout of this structure has changed. But I fail
>>> to see why; 'time_t' is still a 'long' from what
>>> I can see from 'cl -E'.
>> Does:
>>  cl -MTd -W2 struct_bpf.c -I<pcap_root>\Include -D_USE_32BIT_TIME_T
>> help any?
> Yes, that helps. But that raises another question; should WinPcap/libpcap
> users really have to remember to set '-D_USE_32BIT_TIME_T'? If so, what a 
> kludge!
> Maybe there should be a new 'struct npf_sys_timeval' structure to match
> what npf.sys was built with. Or a runtime check to warn users bout this?
> What do you say Gianluca?
> --gv
> _______________________________________________
> 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