From: Victor Julien Date: Thu, 23 Feb 2012 15:29:41 +0000 (+0100) Subject: Misc afpacket changes. X-Git-Tag: suricata-1.3beta1~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=860971eca08d378293776ceba951e2c2761dd047;p=thirdparty%2Fsuricata.git Misc afpacket changes. --- diff --git a/configure.in b/configure.in index 1ca1a2072c..6253f3dccf 100644 --- a/configure.in +++ b/configure.in @@ -91,7 +91,7 @@ AC_INIT(configure.in) # Checks for header files. AC_CHECK_HEADERS([arpa/inet.h inttypes.h limits.h netdb.h poll.h signal.h stdint.h stdlib.h string.h syslog.h sys/ioctl.h sys/prctl.h sys/socket.h sys/syscall.h netinet/in.h sys/time.h unistd.h windows.h winsock2.h ws2tcpip.h]) - AC_CHECK_HEADERS([sys/socket.h net/if.h], [], [], + AC_CHECK_HEADERS([sys/socket.h net/if.h sys/mman.h], [], [], [[#ifdef HAVE_SYS_SOCKET_H #include #endif diff --git a/src/suricata.c b/src/suricata.c index e159987590..dc36d85760 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -533,6 +533,9 @@ void SCPrintBuildInfo(void) { #ifdef HAVE_AF_PACKET strlcat(features, "AF_PACKET ", sizeof(features)); #endif +#ifdef HAVE_PACKET_FANOUT + strlcat(features, "HAVE_PACKET_FANOUT ", sizeof(features)); +#endif #ifdef HAVE_DAG strlcat(features, "DAG ", sizeof(features)); #endif