tcpdump mailing list archives

pcap_setdirection and mmap access


From: Dragos Ilie <dragos.ilie () gmail com>
Date: Wed, 18 Nov 2009 09:18:19 +0100

Hi!

Could somebody please confirm if pcap_setdirection() works with Linux
memory-mapped access. My preliminary results indicate that it doesn't
(libpcap appears to capture all packets irrespective of the
direction). If my results are correct, is there a way to turn off mmap
access through the libpcap API? Currently, I disable mmap access by
making HAVE_PACKET_RING undefined in the libpcap source code.

Thanks,
Dragos
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: