Please sign in to comment.
Fix configure-script discovery of VLAN acceleration support.
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. Reviewed-By: Guy Harris <email@example.com>
- Loading branch information...