]> git.ipfire.org Git - people/ms/suricata.git/commitdiff
af-packet: fix compilation on new systems.
authorEric Leblond <eric@regit.org>
Mon, 28 Nov 2011 17:01:14 +0000 (18:01 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 29 Nov 2011 10:30:49 +0000 (11:30 +0100)
Inclusion of if_packet.h was missing when the support of new options
related to packet fanout is present in the file.

src/source-af-packet.h

index b43396dd838808174af7fa7cf55eecf65ba1a470..93d3167509d2f37b9910ec7e3e3a876746cefc20 100644 (file)
@@ -34,6 +34,8 @@
 #define PACKET_FANOUT_CPU              2
 #define PACKET_FANOUT_FLAG_DEFRAG      0x8000
 
+#else /* HAVE_PACKET_FANOUT */
+#include <linux/if_packet.h>
 #endif /* HAVE_PACKET_FANOUT */
 
 #define AFP_FILE_MAX_PKTS 256