tcpdump mailing list archives

Re: Libpcap reentrancy and PF_RING patch


From: Guy Harris <guy () alum mit edu>
Date: Mon, 31 Dec 2007 13:21:47 -0800

Luca Deri wrote:

My patch also adds support for PF_RING (http://www.ntop.org/PF_RING.html) that is a Linux packet acceleration technique that uses a shared ring buffer between the kernel and user-space. In addition to packet acceleration, it features also packet filtering and classification. As PF_RING code has been around for some years now and used by many users, if you include this patch into the mainstream code you will allow me to stop keeping a patched version of the library.

You might want to split the PF_RING support and the reentrancy changes into two patches.

As PF_RING is a kernel module, if the module is not present, the library will fallback to standard libpcap.

There is at least one place where the behavior of libpcap is modified at compile time with "#ifdef HAVE_PF_RING" - the code to get the packet statistics. If you install a libpcap with HAVE_PF_RING defined on a system that doesn't have the PF_RING module installed, that means that the statistics code's behavior will be changed - will that code still work on that system?
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: