Re: [tcpdump-workers] mmap in libpcap

2009-08-16 Thread Tao Yang
you can use the gcc -E option to check which part of which part of source code is compiled. Tao On Fri, Aug 14, 2009 at 10:02 AM, Sashan Govender < sashan.goven...@exinda.com> wrote: > Hi > > Will libpcap 1.0.0 use mmap packets if the linux kernel has > CONFIG_PACKET_MMAP > enabled? As far as

Re: [tcpdump-workers] mmap in libpcap

2009-08-16 Thread Guy Harris
On Aug 13, 2009, at 7:02 PM, Sashan Govender wrote: Will libpcap 1.0.0 use mmap packets if the linux kernel has CONFIG_PACKET_MMAP enabled? If it was built on the same version of the OS as the one on which it's running, yes; that should be the case, for example, with versions of libpcap

[tcpdump-workers] mmap in libpcap

2009-08-16 Thread Sashan Govender
Hi Will libpcap 1.0.0 use mmap packets if the linux kernel has CONFIG_PACKET_MMAP enabled? As far as I can tell, there's code in libpcap to use the mmaped sockets but it's not used unless HAVE_PACKET_RING is defined? Thanks - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to u