tcpdump mailing list archives

Re: [PATCH]: libpcap: VLAN acceleration support


From: Guy Harris <guy () alum mit edu>
Date: Wed, 16 Jul 2008 16:25:16 -0700


On Jul 16, 2008, at 5:10 AM, Patrick McHardy wrote:

This patch adds support to libpcap to retrieve the tag from
the auxillary data and reconstruct the original VLAN header,
solving a major complaint about the way Linux handles VLAN
offloading.

Unfortunately both the website and CVS is down, so this patch
is against the current Debian version.

Debian etch appears to offer a choice of libpcap 0.7.2 or 0.9.5 (confusingly called "libpcap-0.8", perhaps trying to maintain their reputation as the proudly trailing-edge distribution :-)).

However, the current top of the CVS tree has significantly changed pcap-linux.c - it now supports memory-mapped access to PF_PACKET sockets. I can send you a tarball of that, so you can see what changes need to be made to the memory-mapped code path (your changes to the non-memory-mapped code path should also be made). From the "tpacket" in the "tpacket_auxdata" structure name, I suspect that there's a way to get at the auxiliary data from the memory-mapped interface.

(It's not as if I was going to be able to check your patch in any time soon; Michael, what's going on with {cvs,www}.tcpdump.org? The mailing list is working....)
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: