On Sun, Jul 29, 2001 at 12:22:41PM -0700, Guy Harris wrote:
> One potential problem with not using <netpacket/packet.h> is that if you
> have a Linux distribution that comes with libpcap, that has a version of
> glibc whose <netpacket/packet.h> defines PACKET_STATISTICS and "struct
> tpacket_stats", and that comes with a choice of 2.2[.x] and 2.4[.x]
> kernels, and the distribution binaries are built on a system with a
> 2.2[.x] kernel, the libpcap distributed with the system wouldn't use
> PACKET_STATISTICS if you have a 2.4[.x] kernel.
BTW: I was told by some Linux kernel guys that one should not include
any kernel header into a user space application but instead should have
a copy of the relevant parts of that kernel header included with the
application. I am looking into applying this to libpcap. I am on
vacation from today until Aug 16th though.
cu
Torsten
PGP signature