tcpdump mailing list archives

Re: [PATCH] vlan: Fix Linux VLAN accel compile test under GCC 4.4


From: Guy Harris <guy () alum mit edu>
Date: Tue, 1 Feb 2011 12:21:39 -0800


On Jan 31, 2011, at 5:40 AM, Jesper Dangaard Brouer wrote:

VLAN acceleration support is broken, when using GCC compiler >= 4.4
(tested with gcc version 4.4.5 (Debian 4.4.5-4)), due to the configure
script.

GCC 4.4 does not indirectly include the type of u_int, which the
configure code choose to use for this test. Thus, the if_packet check
fails due to the error: 'u_int' undeclared, eventhough the header
file if_packet.h contains the correct structs.

Fix the AC_LBL_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI macro compile test,
by simply including <sys/types.h>.

A longer description is available on my blog here:
http://netoptimizer.blogspot.com/2010/09/tcpdump-vs-vlan-tags.html

Also fix the wrong AC_CACHE_VAL.

Checked into the trunk and 1.1 branches, and pushed.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: