Re: [tcpdump-workers] libpcap build problem

2009-01-24 Thread Michael Richardson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > "Tron" == Tron McConnell writes: Tron> When attempting to build libpcap 1.0.0 under Slackware 12.2, Tron> compilation of the Tron> file pcap-linux.c fails with a structure redefinition error. Tron> This occurs because Tron

Re: [tcpdump-workers] Buffer overwrites with pcap_next_ex

2009-01-24 Thread Guy Harris
On Jan 24, 2009, at 11:01 AM, Guy Harris wrote: No. pcap_next_ex() returns a pointer to a packet header and a pointer to packet data. These are, in fact, pointers to a structure internal to libpcap and a buffer internal to libpcap, respectively Make that "a pointer to a structure intern

Re: [tcpdump-workers] Buffer overwrites with pcap_next_ex

2009-01-24 Thread Guy Harris
On Jan 24, 2009, at 6:36 AM, Andreas Rieke wrote: I have seen a strange behavior of pcap_next_ex where a buffer is overwritten. When pcap_next_ex has finished, it returns a buffer for the packet header and one for the packet data. No. pcap_next_ex() returns a pointer to a packet header an

[tcpdump-workers] Buffer overwrites with pcap_next_ex

2009-01-24 Thread Andreas Rieke
Hi, I have seen a strange behavior of pcap_next_ex where a buffer is overwritten. When pcap_next_ex has finished, it returns a buffer for the packet header and one for the packet data. When processing the packet data, I have often seen strange data. For that reason, I have changed my code to copy

[tcpdump-workers] libpcap build problem

2009-01-24 Thread Tron McConnell
When attempting to build libpcap 1.0.0 under Slackware 12.2, compilation of the file pcap-linux.c fails with a structure redefinition error. This occurs because pcap-linux.c includes the file /usr/include/net/if.h and then includes the file usr/include/linux/wireless.h, which, in turn, includes